Skip to content

Instantly share code, notes, and snippets.

var foo = "";
foo ||= "hogehoge";//hogehoge
foo ||= "ababa";//hogehoge
var count:uint = 10;
while (count --> 0) {
trace(count);
}
:nnoremap <Space><Space> :so hoge.vim<Enter>
node.*.(name().localName.match(/regex/));
var foo = [0, 1, 2, 3, 4, 5];
function reverse(array) {
var length = array.length;
var result = [];
(function () {
if (result.length < length) {
result.unshift(array.shift());
arguments.callee.call();
}
})();
"aiueo".split("").reverse().join("");
" Name: AutomaticallySetIndentStyle
" Version: 0.1
" Author: tanabe
" NOTE: this is experimental script
function! AutomaticallySetIndentStyle()
let l:max_lines = 100
let l:total_lines = line("$")
let l:tab_indented_lines = 0
let l:space_indented_lines = 0
let l:index = 0
cd /d %~dp0
start uninstall_flash_player.exe /clean
svn st | grep '^!' | awk '{print $2}' | xargs svn del
#from ustream.tv badwords
ass
14 words
5 words
anal
anal sex
arse
arsehole
asses
asshole