naoya_itoの火を噴いたシェルtips
http://togetter.com/li/652438
カーソル移動やバックスペースで文字を消すのが速くなります。
var fs = require('fs'); | |
var buffer = ''; | |
var out = fs.createWriteStream('test.txt', { | |
encoding: 'utf8', | |
mode: 0644, | |
}); | |
process.stdin.resume(); | |
process.stdin.setEncoding('utf8'); |
/dist |
naoya_itoの火を噴いたシェルtips
http://togetter.com/li/652438
カーソル移動やバックスペースで文字を消すのが速くなります。
node_modules |
'use strict'; | |
var fs = require('fs'); | |
console.log('start'); | |
fs.readFile('./a.txt', function(err, data) { | |
console.log('readFile'); | |
process.nextTick(function() { | |
console.log('readFile -> nextTick'); |
function fibonacci1(x) { | |
if (x < 2) { | |
return 1; | |
} | |
return fibonacci1(x - 1) + fibonacci1(x - 2); | |
} | |
var fibonacci2 = (function() { | |
var cache = {}; |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use feature qw(say); | |
say 'say!'; |
require 'formula' | |
class MacvimKaoriya < Formula | |
homepage 'http://code.google.com/p/macvim-kaoriya/' | |
head 'https://github.com/splhack/macvim.git' | |
depends_on 'cmigemo-mk' => :build | |
depends_on 'ctags-objc-ja' => :build | |
depends_on 'gettext-mk' => :build |
perl -MTime::Piece -lane 'print localtime(gmtime($F[0]/1000)->epoch)."\t$F[1]"' hoge.log |
ack -f lib | xargs perl -i -pe 's#\*/\n#*/\n\n/*jshint unused: false */\n# if $. < 7; close ARGV if eof;' |