Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am entyo on github.
  • I am e_ntyo (https://keybase.io/e_ntyo) on keybase.
  • I have a public key whose fingerprint is 8D45 11F1 B472 A4FC C646 3AE4 4E64 918E B22C 41FA

To claim this, I am signing this object:

@entyo
entyo / bosyu.md
Last active July 1, 2019 13:45
TypeScriptを書くので、茨城県つくば市周辺に住まわせてください!!!

tl; dr

私をプログラマとしてこき使う代わりに、つくば市周辺の居住地を提供してくれる企業様を募集いたします。

なぜ?

来年度から茨城県つくば市の大学に通う予定のためです。

だれ?

-- Use analog synth & pico s mainly, high BPS, cool beat
bps(140/60)
let inverse 1 = 0
inverse 0 = 1
in
do
let pat = "[1 0 0 1 0 0 1 0]"
d1 $ gain pat # s "super808:3"
d2 $ gain (inverse <$> pat) # s "superclap"
Pbind(
\instrument, \kick2,
\amp, 0.7,
\dur, Pseq([0.5].collect(adjustDur), KICK2_NOTES_N)
).play;
Pbind(
\instrument, \snare,
\out, 0,
\freq, 1000,
@entyo
entyo / .zprofile
Last active October 1, 2017 08:41
if [[ -z "$LANG" ]]; then
export LANG='en_US.UTF-8'
fi
#
# Paths
#
# Ensure path arrays do not contain duplicates.
typeset -gU cdpath fpath mailpath path
@entyo
entyo / splat.js
Last active September 23, 2017 03:27
JavaScriptで学ぶ関数型プログラミング
function splat(fn) {
return array => {
return fn.apply(null, array);
};
}
const addArrayElements = splat((x, y) => x + y);
// returns 3
addArrayElements([1, 2]);
@entyo
entyo / Dockerfile
Last active September 16, 2017 08:33
angular-cliをやっていきするためのDockerfile
FROM node:latest
# prepare a user which runs everything locally! - required in child images!
RUN useradd --user-group --create-home --shell /bin/false app
ENV HOME=/home/app
WORKDIR $HOME
RUN npm install -g yarn@1.0.2 && yarn global add @angular/cli@latest && yarn cache clean
@entyo
entyo / install_firacode.sh
Created August 19, 2017 05:22
Firacode install script
mkdir -p ~/.local/share/fonts
for type in Bold Light Medium Regular Retina; do
wget -O ~/.local/share/fonts/FiraCode-${type}.ttf \
"https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-${type}.ttf?raw=true";
done
fc-cache -f
@entyo
entyo / shit.go
Created March 12, 2017 04:11
http.Responseのbodyを見たいとき
// bodyの確認
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Fatalln(err)
}
fmt.Printf("body: " + string(body) + "\n")