This file contains 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 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 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 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 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 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 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 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 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 run(input, parameters) { | |
// open iterm2 and retrieve session object | |
var iTerm = Application("iTerm2"); | |
var win = iTerm.createWindowWithDefaultProfile(); | |
var tab = win.currentTab(); | |
var ses = tab.currentSession(); | |
//run command in the session | |
ses.write({text: "echo yoyo"}); |
This file contains 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 |