Skip to content

Instantly share code, notes, and snippets.

View sotarok's full-sized avatar
🍺
developing Crowi and beer

Sotaro Karasawa sotarok

🍺
developing Crowi and beer
View GitHub Profile
@akiraak
akiraak / gist:b7c112e46b79dacfabf1
Created September 4, 2014 08:15
ingress glyph hack list
!shapers/play/calvinball
accept/human/weak
advance/civilization/pursue/shapers/path
advance/civilization/pursue/shapers/truth
advance/civilization/repeat/failure
advance/enlightenment
advance/future/not/war
advance/human/enlightenment
advance/human/resistance
/*
PC Emulator
Copyright (c) 2011 Fabrice Bellard
Redistribution or commercial use is prohibited without the author's
permission.
*/
"use strict";
var aa;
var ba = [1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1,
0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0,
@riywo
riywo / gist:870515
Created March 15, 2011 09:46
GNU parallel使って並列でrsyncする&ちゃんとmkdirする
find /path/to/dir/ -type f | time parallel --eta 'rsync -aRz --compress-level=1 {} remote:/'
javascript:(function(d,g,r,o,l,x,y,u,z,t,a,b,n,m,s,i,f){n=d.createElement("pre");n.setAttribute("style","z-index:100;font-weight:bold;position:absolute;left:0px;top:0px;background:black;color:white");s=new Array(o+1).join(" ");for(i=0;i<l;i++)n.appendChild(m=r[i]=d.createTextNode(s)),n.appendChild(d.createTextNode("\n"));function p(x,y,c,_){if(x>=0)with(r[y])nodeValue=nodeValue.substring(0,x)+c+nodeValue.substring(x+c.length)}function h(){t.push({x:0,y:8,s:"Python",c:0,m:function(){with(this)x+=c>40?-3:1,y+=c>40?1:0,c++;return this.c<40||this.x>3&&this.y<l}})}a=x,b=y,f=0,setInterval(function(i,j,k,e){Math.random()>.97?h():0;for(i=0;++i<4;)p(0,l-i,s);p(x,y," ");for(i=0;i<3;++i)for(k=g[i].length,j=0;j<o;j+=k)p(j,l-i-1,o-j<k?g[i].substr(f,o-j):g[i].substr(f,k)+g[i].substr(0,f));f=(--f+k)%k;for(i=u.length;--i>=0;)with(u[i])p(x--,y," "),x>0?p(x,y,"-"):u.splice(i,1);x=a,y=b,p(x,y,"<?php");for(i=t.length;--i>=0;)e=t[i],p(e.x,e.y,s.substr(0,e.s.length)),e.m()?p(e.x,e.y,e.s):t.splice(i,1)},50);d.onkeydown=function