Skip to content

Commit

Permalink
Add images to snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
Chalarangelo committed Jun 8, 2022
1 parent 53ee27c commit 5f1880e
Show file tree
Hide file tree
Showing 74 changed files with 74 additions and 0 deletions.
1 change: 1 addition & 0 deletions snippets/HSBToRGB.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: HSB to RGB
tags: math
expertise: intermediate
cover: blog_images/houses-rock-sea.jpg
firstSeen: 2020-09-18T14:25:07+03:00
lastUpdated: 2020-09-18T14:25:07+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/RGBToHSL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: RGB to HSL
tags: math
expertise: intermediate
cover: blog_images/planning.jpg
firstSeen: 2020-10-01T23:16:30+03:00
lastUpdated: 2020-10-04T11:25:12+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/attempt.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Attempt invoking a function
tags: function
expertise: intermediate
cover: blog_images/spanish-resort.jpg
firstSeen: 2018-01-28T14:44:40+02:00
lastUpdated: 2020-10-18T20:24:28+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/binomialCoefficient.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Binomial coefficient
tags: math,algorithm
expertise: beginner
cover: blog_images/blue-red-mountain.jpg
firstSeen: 2018-02-14T12:34:02+02:00
lastUpdated: 2020-12-28T13:49:24+02:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/btoa.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Encode string to Base64
tags: node,string
expertise: beginner
cover: blog_images/laptop-journey.jpg
firstSeen: 2018-01-17T21:43:21+02:00
lastUpdated: 2020-09-15T16:28:04+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/byteSize.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Byte size of string
tags: string
expertise: beginner
cover: blog_images/mountain-lake-cottage-2.jpg
firstSeen: 2017-12-29T14:30:34+02:00
lastUpdated: 2020-10-18T23:04:45+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/callOrReturn.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Call or return
tags: function
expertise: beginner
author: chalarangelo
cover: blog_images/cows.jpg
firstSeen: 2022-04-04T05:00:00-04:00
---

Expand Down
1 change: 1 addition & 0 deletions snippets/capitalizeEveryWord.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Capitalize every word
tags: string,regexp
expertise: intermediate
cover: blog_images/laptop-plants.jpg
firstSeen: 2017-12-17T17:55:51+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/checkProp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Check property
tags: function,object
expertise: intermediate
cover: blog_images/white-tablet-2.jpg
firstSeen: 2019-03-17T03:53:00+02:00
lastUpdated: 2020-11-01T20:50:57+02:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/coalesceFactory.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Argument coalescing factory
tags: function,type
expertise: intermediate
cover: blog_images/coffee-phone-tray.jpg
firstSeen: 2017-12-18T12:15:36+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/collectInto.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Convert function to variadic
tags: function,array
expertise: intermediate
cover: blog_images/polar-bear.jpg
firstSeen: 2017-12-22T05:08:36+02:00
lastUpdated: 2021-06-13T13:50:25+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/containsWhitespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Check if string contains whitespace
tags: string,regexp
expertise: beginner
author: chalarangelo
cover: blog_images/bag-waiting.jpg
firstSeen: 2020-03-25T12:37:13+02:00
lastUpdated: 2020-10-18T23:04:45+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/currentURL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Current URL
tags: browser
expertise: beginner
cover: blog_images/tropical-bike.jpg
firstSeen: 2017-12-18T11:05:03+02:00
lastUpdated: 2020-10-20T11:46:23+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/curry.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Curry function
tags: function,recursion
expertise: advanced
cover: blog_images/rocky-beach-2.jpg
firstSeen: 2017-12-10T15:21:35+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/daysInMonth.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Number of days in month
tags: date
expertise: beginner
cover: blog_images/laptop-plants-2.jpg
firstSeen: 2021-06-13T05:00:00-04:00
---

Expand Down
1 change: 1 addition & 0 deletions snippets/debounce.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Debounce function
tags: function
expertise: intermediate
cover: blog_images/solitude-beach.jpg
firstSeen: 2018-01-28T15:18:26+02:00
lastUpdated: 2021-10-13T19:29:39+02:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/divmod.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Quotient and module of division
tags: math
expertise: beginner
author: maciv
cover: blog_images/italian-horizon.jpg
firstSeen: 2020-10-07T23:59:13+03:00
lastUpdated: 2020-10-07T23:59:13+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/escapeRegExp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Escape RegExp
tags: string,regexp
expertise: intermediate
cover: blog_images/frog-blue-flower.jpg
firstSeen: 2017-12-17T17:55:51+02:00
lastUpdated: 2020-09-15T16:28:04+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/expandTabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Expand tabs into spaces
tags: string,regexp
expertise: beginner
author: chalarangelo
cover: blog_images/houses-rock-sea.jpg
firstSeen: 2020-06-01T17:05:39+03:00
lastUpdated: 2020-09-15T16:28:04+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/factorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Factorial of number
tags: math,algorithm,recursion
expertise: beginner
cover: blog_images/flower-vase.jpg
firstSeen: 2017-12-07T14:41:33+02:00
lastUpdated: 2020-12-28T13:49:24+02:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/findClosestMatchingNode.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Find closest matching node
tags: browser
expertise: intermediate
author: chalarangelo
cover: blog_images/flowering-hills.jpg
firstSeen: 2021-04-22T08:45:39+03:00
lastUpdated: 2021-04-22T08:45:39+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/formatNumber.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Format number
tags: string,math
expertise: beginner
cover: blog_images/laptop-plants.jpg
firstSeen: 2020-07-30T11:38:51+03:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/fromCamelCase.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: String from camelcase
tags: string
expertise: intermediate
cover: blog_images/mountain-lake-cottage.jpg
firstSeen: 2017-12-17T17:55:51+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/fromTimestamp.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Date from Unix timestamp
tags: date
expertise: beginner
author: maciv
cover: blog_images/number-2.jpg
firstSeen: 2020-10-15T21:57:17+03:00
lastUpdated: 2020-10-15T21:57:17+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/getDaysDiffBetweenDates.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Date difference in days
tags: date
expertise: intermediate
cover: blog_images/spanish-resort.jpg
firstSeen: 2017-12-17T17:55:51+02:00
lastUpdated: 2021-04-24T12:42:47+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/getHoursDiffBetweenDates.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Date difference in hours
tags: date
expertise: beginner
author: maciv
cover: blog_images/tram-car-2.jpg
firstSeen: 2021-04-24T12:56:21+03:00
lastUpdated: 2021-04-24T12:56:21+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/getMinutesDiffBetweenDates.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Date difference in minutes
tags: date
expertise: beginner
author: maciv
cover: blog_images/flower-vase.jpg
firstSeen: 2021-04-24T12:48:49+03:00
lastUpdated: 2021-04-24T12:48:49+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/getScrollPosition.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Scroll position
tags: browser
expertise: intermediate
cover: blog_images/tranquil-lake.jpg
firstSeen: 2017-12-17T17:55:51+02:00
lastUpdated: 2020-10-19T22:49:51+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/getSecondsDiffBetweenDates.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Date difference in seconds
tags: date
expertise: beginner
cover: blog_images/laptop-journey.jpg
firstSeen: 2021-04-24T12:39:48+03:00
lastUpdated: 2021-04-24T12:39:48+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/getSelectedText.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Get selected text
tags: browser
expertise: beginner
author: chalarangelo
cover: blog_images/white-tablet-2.jpg
firstSeen: 2020-08-07T15:34:53+03:00
lastUpdated: 2020-10-19T22:49:51+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/getStyle.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Get style for element
tags: browser,css
expertise: beginner
cover: blog_images/frog-blue-flower.jpg
firstSeen: 2017-12-29T00:08:17+02:00
lastUpdated: 2020-10-19T22:49:51+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/getVerticalOffset.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Vertical offset of element
tags: browser
expertise: beginner
author: chalarangelo
cover: blog_images/waves-from-above-2.jpg
firstSeen: 2021-01-05T22:41:09+02:00
lastUpdated: 2021-01-05T22:41:09+02:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/hasFlags.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Check if process arguments contain flags
tags: node
expertise: intermediate
cover: blog_images/white-tablet.jpg
firstSeen: 2018-01-01T18:24:43+02:00
lastUpdated: 2020-10-22T20:23:47+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/indentString.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Indent string
tags: string
expertise: beginner
cover: blog_images/clutter.jpg
firstSeen: 2018-09-24T22:14:27+03:00
lastUpdated: 2020-11-01T20:50:57+02:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/initial.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Array without last element
tags: array
expertise: beginner
cover: blog_images/red-light.jpg
firstSeen: 2017-12-17T16:41:31+02:00
lastUpdated: 2020-11-03T21:46:13+02:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/is.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Check if value is of type
tags: type,array
expertise: intermediate
cover: blog_images/coffee-phone-tray.jpg
firstSeen: 2018-01-17T21:23:46+02:00
lastUpdated: 2020-10-20T23:02:01+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/isAbsoluteURL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Check if absolute URL
tags: string,browser,regexp
expertise: intermediate
cover: blog_images/coffee-phone-tray-2.jpg
firstSeen: 2017-12-31T14:42:45+02:00
lastUpdated: 2020-10-20T23:02:01+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/isAlpha.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: String is alpha
tags: string,regexp
expertise: beginner
cover: blog_images/coffee-phone-tray-3.jpg
firstSeen: 2020-12-31T14:01:42+02:00
lastUpdated: 2020-12-31T14:01:42+02:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/isAlphaNumeric.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: String is alphanumeric
tags: string,regexp
expertise: beginner
cover: blog_images/mountain-lake-cottage-2.jpg
firstSeen: 2020-09-06T07:59:16+03:00
lastUpdated: 2020-10-20T23:02:01+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/isLeapYear.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Check for leap year
tags: date
expertise: beginner
cover: blog_images/flowering-hills.jpg
firstSeen: 2020-02-05T14:00:03+02:00
lastUpdated: 2020-10-20T23:02:01+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/isSorted.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Array is sorted
tags: array
expertise: intermediate
cover: blog_images/italian-horizon.jpg
firstSeen: 2018-01-01T19:30:14+02:00
lastUpdated: 2020-10-20T23:02:01+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/isStream.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Value is stream
tags: node,type
expertise: intermediate
cover: blog_images/mountain-lake-cottage-2.jpg
firstSeen: 2018-10-01T20:12:19+03:00
lastUpdated: 2020-10-20T23:02:01+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/isValidJSON.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: String is valid JSON
tags: type
expertise: intermediate
cover: blog_images/italian-horizon.jpg
firstSeen: 2017-12-31T14:53:01+02:00
lastUpdated: 2020-10-18T13:49:49+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/isWeekday.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Date is weekday
tags: date
expertise: beginner
cover: blog_images/typewriter.jpg
firstSeen: 2019-07-19T12:12:09+03:00
lastUpdated: 2020-10-20T23:02:01+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/isWeekend.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Date is weekend
tags: date
expertise: beginner
cover: blog_images/tropical-bike.jpg
firstSeen: 2019-07-19T17:07:02+03:00
lastUpdated: 2020-10-20T23:02:01+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/last.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Last array element
tags: array
expertise: beginner
cover: blog_images/white-laptop.jpg
firstSeen: 2017-12-17T17:55:51+02:00
lastUpdated: 2020-10-20T23:02:01+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/lastDateOfMonth.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Last date of month
tags: date
expertise: intermediate
cover: blog_images/polar-bear.jpg
firstSeen: 2020-10-09T20:36:54+03:00
lastUpdated: 2020-10-09T22:01:42+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/mapNumRange.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Map number to range
tags: math
expertise: beginner
cover: blog_images/clutter.jpg
firstSeen: 2019-02-23T12:38:16+02:00
lastUpdated: 2020-10-21T21:54:53+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/mask.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Mask a value
tags: string
expertise: intermediate
cover: blog_images/rocky-beach-3.jpg
firstSeen: 2018-01-01T13:02:59+02:00
lastUpdated: 2020-10-21T21:54:53+03:00
---
Expand Down
1 change: 1 addition & 0 deletions snippets/normalizeLineEndings.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Normalize line endings
tags: string,regexp
expertise: intermediate
author: chalarangelo
cover: blog_images/red-light.jpg
firstSeen: 2020-05-04T12:33:13+03:00
lastUpdated: 2020-10-21T21:54:53+03:00
---
Expand Down
Loading

0 comments on commit 5f1880e

Please sign in to comment.