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 a = ['a', 'b', 'c']; | |
var b = ['x', 'y', 'z']; | |
var c = a.concdat(b,true); | |
a.push('d'); | |
var c = a.join(''); | |
var a = ['a', 'b', 'c']; | |
var c = a.pop(); |
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
Function.prototype.method = function (name, func) { | |
if (!this.prototype[name]) { | |
this.prototype[name] = func; | |
return this; | |
} | |
}; | |
Array.method('reduce', function (f, value) { | |
var i; | |
for (i = 0; i < this.length; i+= 1) { |
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
// Merged to master | |
// https://github.com/NeoCat/twicli/commit/24f73ae0ea054a33ed3e5ff83da28aaab641a061 |
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
powershell.exe -Command "& {Get-ChildItem|Where-Object{$_.Name -notmatch '^\.hg'}|Remove-Item -Recurse}" |
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
[merge-tools] | |
gvimdiff.executable = gvim | |
gvimdiff.diffargs = -d $parent $child | |
gvimdiff.diff3args = -d $parent1 $child $parent2 | |
gvimdiff.gui = True |
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
exe 'g/\/CropBox\s*\[\s*\zs\([0-9.]\+\s*\)\{4}\]/norm /'.nr2char(13).'30'.nr2char(1).'W30'.nr2char(1).'W30'.nr2char(24).'W30'.nr2char(24) |
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
@echo off | |
setlocal | |
set target=vimexe | |
set vim=vim | |
if exist %target% ( | |
echo %target% is already exist. | |
goto end | |
) | |
if exist %target%.zip ( | |
echo %target%.zip is already exist. |
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
" msysGit | |
if executable($ProgramFiles . '\Git\bin\git.exe') | |
let g:VCSCommandGitExec= $ProgramFiles . '\Git\bin\git.exe' | |
endif | |
" TortoiseHg for Windows | |
if executable($ProgramFiles . '\TortoiseHg\hg.exe') | |
let g:VCSCommandHGExec= $ProgramFiles . '\TortoiseHg\hg.exe' | |
endif |
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
xds.retry = 1; | |
xds.load_default = function(url, callback, old, callback_key) { | |
this.abort(old); | |
return this.load(url, callback, twFail, this.retry, callback_key); | |
}; | |
xds.load_for_tab = function(url, callback, callback_key) { // タブ切替時に自動abort | |
var ifr_tab = this.ifr_tab; | |
var fr = [this.load(url, | |
function() { callback.apply(this,arguments); try { ifr_tab.remove(fr[0]); } catch(e) {} }, | |
function() { twFail(); try { ifr_tab.remove(fr[0]); } catch(e) {} }, |
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
geo::{return (g=this.geo)&&Math.floor(g.coordinates[0]*10)==349&&Math.floor(g.coordinates[1]*10)==1383}:0 |