Skip to content

Instantly share code, notes, and snippets.

View makenowjust's full-sized avatar
㊗️
The IDOLM@STER MILLION LIVE THE ANIMATION

Hiroya Fujinami makenowjust

㊗️
The IDOLM@STER MILLION LIVE THE ANIMATION
View GitHub Profile
@makenowjust
makenowjust / quine.node.js
Created May 2, 2015 02:24
Quine in Node.js
console.log((arguments.callee+'').replace(/^.+?{ |\s+}$/g,''))
@makenowjust
makenowjust / quine.js
Created May 16, 2015 04:46
A simple Quine program in JavaScript
var s = ";\nconsole.log('var s = ' + JSON.stringify(s) + s);\nconsole.log(s);";
s = 'var s = ' + JSON.stringify(s) + s;
console.log(s);
@makenowjust
makenowjust / aiueo_0.1_Droid Sans_false.json
Created May 28, 2015 02:42
node script/train-db.js 0.1 "Droid Sans" aiueo no
[["あ",[0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,0,0,0,0,1,1,1,1
@makenowjust
makenowjust / pantheon-terminal-color.rb
Created July 12, 2015 15:01
islenauts color scheme for pantheon-terminal
#
# _
# o | |
# , | | _ _ _ __, _|_ ,
# | / \_|/ |/ / |/ | / | | | | / \_
# |_/ \/ |__/|__/ | |_/\_/|_/ \_/|_/|_/ \/
#
# $ dconf write /org/pantheon/terminal/settings/palette (ruby pantheon-terminal-color.rb ./islenauts/palette.toml)
palette = File.read(ARGV[0])
@makenowjust
makenowjust / index.html
Last active August 29, 2015 14:25
線密度イコライゼーション
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>線密度イコライゼーション</title>
</head>
<body>
<h1>equalization</h2>
<section>
@makenowjust
makenowjust / policy.md
Created July 23, 2015 14:28
crystal-jpの運営方針(Draft)

運営方針(Draft)

目的

Crystalに関する意見や質問、議論などを 日本語 で行なえる場を提供する。

issuesの使い方について

どんなときにissueを作るのか

@makenowjust
makenowjust / bench.bash
Created August 3, 2015 09:25
Crystal compiler compile benchmark
#!/bin/bash
set -e
rm -rf ./.crystal ./.build
git checkout master
echo "1st Build"
./bin/crystal --version
make release=1
@makenowjust
makenowjust / bench-bind.js
Created September 8, 2015 12:50
benchmark Function#bind vs prototype
function X(x, y) {
this.x = x;
this.y = y;
if (process.env.BIND) {
this.n = this.n.bind(this);
}
}
X.prototype.n = function n() {
@makenowjust
makenowjust / pack-quine.js
Last active September 25, 2015 16:51
Packed Quine in JavaScript
eval(s=`
C=(s,u)=>{
p={};
for(j=2;j<=s.length/2;j++)
with(s)
for(k=0,q=p[r=slice(0,j)]=[];k=indexOf(r,j+k),~k;)
q.push(k);
r=(k=Object.keys(p))[(d=k.map(r=>(r.length-1)*(p[r].length-1)-1)).indexOf(v=Math.max.apply(1,d))];
if(v<3)return{t:s,c:''};
for(j=126;u.has(c=String.fromCharCode(j));j--);
// this example dosen't work.
{foo, bar} = {foo: 1, bar: 2}
// $ babel-node object-destructuring-starts-a-line.js
// SyntaxError: object-destructuring-starts-a-line.js: Unexpected token (1:11)
// > 1 | {foo, bar} = {foo: 1, bar: 2}
// | ^