From 58bf14d039f3782fbc0626ac17d2a76df6a8fe05 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Thu, 15 Nov 2018 15:04:51 -0600 Subject: [PATCH] Add Get Random Images From Unsplash as an internet til --- README.md | 3 ++- internet/get-random-images-from-unsplash.md | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 internet/get-random-images-from-unsplash.md diff --git a/README.md b/README.md index c530141..81a8839 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_719 TILs and counting..._ +_720 TILs and counting..._ --- @@ -229,6 +229,7 @@ _719 TILs and counting..._ - [Add Emoji To GitHub Repository Description](internet/add-emoji-to-github-repository-description.md) - [Exclude Whitespace Changes From GitHub Diffs](internet/exclude-whitespace-changes-from-github-diffs.md) - [Focus The URL Bar](internet/focus-the-url-bar.md) +- [Get Random Images From Unsplash](internet/get-random-images-from-unsplash.md) - [Search Tweets By Author](internet/search-tweets-by-author.md) - [Show All Pivotal Stories With Blockers](internet/show-all-pivotal-stories-with-blockers.md) diff --git a/internet/get-random-images-from-unsplash.md b/internet/get-random-images-from-unsplash.md new file mode 100644 index 0000000..646ceea --- /dev/null +++ b/internet/get-random-images-from-unsplash.md @@ -0,0 +1,16 @@ +# Get Random Images From Unsplash + +Here is an image from [unsplash.com](https://unsplash.com). + +![random images](http://source.unsplash.com/random/1200x600) + +I don't know what image I am showing you though. That's because the URL +being sourced for the above image is +`http://source.unsplash.com/random/1200x600`. This tells unsplash to +randomly serve us a `1200x600` image. Try refreshing the page and you'll see +that it is different each time. Cool! + +This is a bit of a novelty, but could be useful on occasion. The +[Gatsby](https://www.gatsbyjs.org/) docs use it to great effect in a +tutorial so as to not get caught up with the details of serving a specific +image.