Skip to content

Instantly share code, notes, and snippets.

View soichisumi's full-sized avatar
🔥
gRPC, Kubernetes, GCP, AWS, Azure, Firebase / Go, Javascript, Rust <- new!

Soichi Sumi soichisumi

🔥
gRPC, Kubernetes, GCP, AWS, Azure, Firebase / Go, Javascript, Rust <- new!
View GitHub Profile
@soichisumi
soichisumi / Investivate_CloudFunction
Last active September 12, 2018 08:08
investigate the behavior of cloud function
title
@soichisumi
soichisumi / Investivate_behavior_of_nodejs_require
Last active September 12, 2018 07:49
nodejs's require caches the module. the cached result is used for second call of require
title
@soichisumi
soichisumi / color-comparetor.js
Last active August 20, 2018 10:19
this script uses deltaE to compare the similarity of color. about deltaE: http://zschuessler.github.io/DeltaE/
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)
console.log('<yo#ooooo>'.replace(/#/g, 'eh'))
console.log('<yo#ooooo>'.replace(/#/g, 'eh'))
let humans = new Array()
humans.push({
name: "yoyo",
age: 26
})
humans.push({
name: "test",
age: 55
})
humans.push({
@soichisumi
soichisumi / zsh-colors.sh
Created July 23, 2018 08:49
zsh-colors.sh
for c in {000..255}; do echo -n "\e[38;5;${c}m $c" ; [ $(($c%16)) -eq 15 ] && echo;done;echo
@soichisumi
soichisumi / FastFile
Created May 21, 2018 09:53
FastFileの実験跡
default_platform(:ios)
platform :ios do
desc "test"
lane :testlane do
sh("ls")
end
@soichisumi
soichisumi / openIterm2.js
Created November 5, 2017 12:19
Script to open iTerm2 and
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"});