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
| title |
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
| title |
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 d3 = require('d3-color') | |
| const deltaE = require('delta-e') | |
| // a, b ... color code without #. (ex: FFFFFF) | |
| function getDeltaE(a, b){ | |
| ar = a.substr(0, 2) | |
| ar = parseInt(ar, 16) | |
| ag = a.substr(2, 2) | |
| ag = parseInt(ag, 16) | |
| ab = a.substr(4, 2) |
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
| console.log('<yo#ooooo>'.replace(/#/g, 'eh')) |
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
| console.log('<yo#ooooo>'.replace(/#/g, 'eh')) |
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
| let humans = new Array() | |
| humans.push({ | |
| name: "yoyo", | |
| age: 26 | |
| }) | |
| humans.push({ | |
| name: "test", | |
| age: 55 | |
| }) | |
| humans.push({ |
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
| for c in {000..255}; do echo -n "\e[38;5;${c}m $c" ; [ $(($c%16)) -eq 15 ] && echo;done;echo |
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
| default_platform(:ios) | |
| platform :ios do | |
| desc "test" | |
| lane :testlane do | |
| sh("ls") | |
| end |
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
| title |
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
| on run {input, parameters} | |
| tell application "iTerm" | |
| activate | |
| create window with default profile | |
| set mySession to (current session of current tab of current window) | |
| tell mySession | |
| write text "echo yoyo" | |
| repeat while is processing of mySession is true | |
| delay 1 |