Angelo Blacksmith
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function curry (f) { | |
| return function next (a) { | |
| return function (b) { | |
| if (b) { | |
| return next(f(a, b)) | |
| } | |
| return a | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "id": 1, | |
| "name": "Everlog Journal", | |
| "short": "A Modern Journal", | |
| "description": "A modern journal app with a focus on simplicity.", | |
| "logo": "https://i.ibb.co/6XV3bP8/logo.png", | |
| "screenshots": [ | |
| "https://i.ibb.co/JRNqskX/3.png", | |
| "https://i.ibb.co/PMy5sLD/1.png", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyPromise { | |
| constructor(executor) { | |
| if (typeof executor !== 'function') { | |
| throw new Error('Executor must be a function'); | |
| } | |
| // Internal state. `$state` is the state of the promise, and `$chained` is | |
| // an array of the functions we need to call once this promise is settled. | |
| this.$state = 'PENDING'; | |
| this.$chained = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const assert = (v, err) => { | |
| if (!v) { | |
| throw err; | |
| } | |
| }; | |
| let counter = 0; | |
| class Promise { | |
| constructor(executor) { |
- Save the
index.htmlfile - Use live-server to open it (http protocol)
- Open file manager and open the file with Chrome or any browser (file protocol)
Why the two renderings http and file are so different?
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function makeChange(x, coinSet) { | |
| const mem = [] | |
| const getChangeCoins = (value) => { | |
| if (!value) { | |
| return [] | |
| } | |
| if (mem[value]) { | |
| return mem[value] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "data": [ | |
| { | |
| "id": "1120951317", | |
| "title": "Aahista Aahista", | |
| "artist": "Udit Narayan & Sadhana Sargam", | |
| "album": "Swades (Original Motion Picture Soundtrack)", | |
| "albumLink": "https://geo.music.apple.com/in/album/aahista-aahista/1120951279?app=music&at=11lt62&ct=tracklink", | |
| "isrc": "INS180461167", | |
| "duration": "408", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * CSS Properties | |
| * http://ref.openweb.io/CSS/ | |
| **/ | |
| .properties { | |
| align-content: value; | |
| align-items: value; | |
| align-self: value; |