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
| // fade out | |
| function fade(el) { | |
| var op = 1; | |
| var timer = setInterval(function () { | |
| if (op <= 0.1){ | |
| clearInterval(timer); | |
| el.style.display = 'none'; | |
| } | |
| el.style.opacity = op; |
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
| echo off | |
| for %%a in ("./source/*.mp4") do ffmpeg -i "%%a" -b:a 320K -vn "./output/%%a.mp3" | |
| pause |
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
| import { makeRequestWhile } from './make-request-while' | |
| const MOCKED_API = { | |
| PENDING: 'https://www.mocky.io/v2/5d4db060330000254b33796a', | |
| SUCCESS: 'https://www.mocky.io/v2/5d4db057330000d43f337969', | |
| ERROR: 'https://www.mocky.io/v2/5d4db0463300004b44337968', | |
| } | |
| const STATUSES = { | |
| PENDING: 1, |
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
| // Phaser.Scene context | |
| const keys = new Set(); | |
| this.input.keyboard.on('keydown', (event) => { | |
| if (keys.has(event.code)) { | |
| return | |
| } | |
| keys.add(event.code); |
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
| git rev-list --all | ( | |
| while read revision; do | |
| git grep -F 'phrase' $revision | |
| done | |
| ) |
OlderNewer