name | memo |
---|---|
bitwise | ビット演算子を許可しない |
camelcase | CamelCaseとXXX_YYY_ZZZの形式を許可する |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% git grep --name-only 'Beatles' | xargs sed -i 's/Beatles/Who/g' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( | |
長い条件 | |
|| | |
長い条件 | |
) { | |
.... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var forEach = function(list, callback) { | |
if ( list instanceof Array ) { | |
var len = list.length; | |
for (var i=0; i<len; i++) { | |
callback.call(list[i], i, list[i]); | |
} | |
} else { | |
for (var key in list ) if ( list.hasOwnProperty(key) ) { | |
callback.call(list[key], key, list[key]); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!perl | |
use strict; | |
use warnings; | |
use 5.010; | |
use Data::Dumper; | |
use Sub::Rate; | |
use Sub::Rate::NoMaxRate; | |
use Data::WeightedRoundRobin; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var net = require('net'), | |
server = net.createServer(), | |
host = '127.0.0.1', | |
port = 11111; | |
server.on('connection', function(socket) { | |
console.log("server connection"); | |
server.close(); | |
socket.end(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ノードジェイエス大好き! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
APP=$1 | |
RUBY_VERSION='2.0.0-p0' | |
RAILS_VERSION='4.0.0.beta1' | |
echo "ruby version is $RUBY_VERSION" | |
echo "rails version is $RAILS_VERSION" | |
echo $RUBY_VERSION > .ruby-version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!perl | |
use Carp; | |
use Try::Lite; | |
use Exception::Tiny; | |
use 5.010; | |
my $code = sub { | |
try { | |
say "begin"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!node | |
/* | |
* grunt-watch-irc.js | |
* | |
* you can "grunt watch" operation by irc private message | |
* | |
* when you run this script, bot join on #grurt | |
* | |
* 1. run this script. bot join the #grunt. | |
* |