1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-17 14:08:01 +00:00

Compare commits

...

4 Commits

Author SHA1 Message Date
nick-w-nick
9d386d68d3 Merge 295fe153ad into 33c5cd748f 2024-10-15 16:18:16 -04:00
jbranchaud
33c5cd748f Fix codeblock example in latest TIL 2024-10-15 15:07:55 -05:00
jbranchaud
ff515c8d6a Add Get URL For GitHub User Profile Photo as a Workflow TIL 2024-10-15 15:07:19 -05:00
nick-w-nick
295fe153ad added mention of ES6 compatibility
Hello, I've added a small blockquote below the description to indicate that this method of accessing an indefinite number of function arguments has been superseded by the use of the spread operator via rest parameters for ES6+ compatibility.
2022-01-06 11:39:04 -05:00
4 changed files with 32 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
_1469 TILs and counting..._
_1470 TILs and counting..._
---
@@ -1707,6 +1707,7 @@ _1469 TILs and counting..._
- [Create A Public URL For A Local Server](workflow/create-a-public-url-for-a-local-server.md)
- [Enable Dev Tools For Safari](workflow/enable-dev-tools-for-safari.md)
- [Forward Stripe Events To Local Server](workflow/forward-stripe-events-to-local-server.md)
- [Get URL For GitHub User Profile Photo](workflow/get-url-for-github-user-profile-photo.md)
- [Get Your Public IP Address](workflow/get-your-public-ip-address.md)
- [Import A Github Project Into CodeSandbox](workflow/import-a-github-project-into-codesandbox.md)
- [Interactively Kill A Process With fkill](workflow/interactively-kill-a-process-with-fkill.md)

View File

@@ -18,7 +18,7 @@ At some point I added it to my repo's `.git/info/exclude` file. The `-v` flag
How about these pesky `.DS_Store` directories? How are those being ignored?
```bash
git check-ignore .DS_Store -v
$ git check-ignore -v .DS_Store
/Users/jbranchaud/.gitignore:3:.DS_Store .DS_Store
```

View File

@@ -5,6 +5,8 @@ an array-like object with all of the arguments to the function. Even if not
all of the arguments are referenced in the function signature, they can
still be accessed via the `arguments` object.
> For ES6+ compatibility, the `spread` operator used via [rest parameters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters) is preferred over the `arugments` object when accessing an abritrary number of function arguments.
```javascript
function argTest(one) {
console.log(one);

View File

@@ -0,0 +1,27 @@
# Get URL For GitHub User Profile Photo
You can access your (or really any user's) profile photo by visiting the GitHub
profile URL with `.png` added on to the end.
So, my GitHub profile URL is:
```
https://github.com/jbranchaud
```
If I were to add `.png` on to that and visit it in my browser:
```
https://github.com/jbranchaud.png
```
I'd be redirected to the following URL:
```
https://avatars.githubusercontent.com/u/694063?v=4
```
This is the stable URL for my GitHub avatar. In the browser I will see the full
resolution image which I can download as needed.
[source](https://dev.to/10xlearner/how-to-get-the-profile-picture-of-a-github-account-1d82)