This file contains 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
/* Usage | |
function * gene() { | |
console.log("iter"); | |
yield 1; | |
console.log("iter"); | |
yield 2; | |
console.log("iter"); | |
yield 3; | |
} | |
var result = gene |
This file contains 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
' ="SELECT ..... FROM ... WHERE column_A in ("&join(A1:A10,",","'")&")" などと式に使うことを想定 | |
' SQLインジェクション可能だが知らん。 | |
Function join(r As Range, Optional delimiter As String = ",", Optional wrap As String = "'") As String | |
Dim i As Integer | |
Dim result = As String | |
result = wrap & r.Cells(1, 1).Value & wrap | |
For i = 2 To r.rows.Count |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Serial Experimental proceed</title> | |
<style> | |
#out { line-height: 1.5; } | |
#out > p { margin: 0; } | |
</style> | |
</head> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>__proto__ test</title> | |
</head> | |
<body> | |
<h1>__proto__ test</h1> | |
<div id="out"></div> |
This file contains 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
/** | |
* Vimperator-Plugin | |
* @desc page feeder of completion list | |
* @author teramako <teramako@gmail.com> | |
*/ | |
mappings.add([modes.COMMAND_LINE], ["<C-f>"], "Down page of completions", | |
function () { pagingCompletion(options.maxitems); }); | |
mappings.add([modes.COMMAND_LINE], ["<C-b>"], "Up page of completions", |
This file contains 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
commands.get("tabopen").action = function (args) { | |
let special = args.bang; | |
args = args.string; | |
if (options.get("activate").has("all", "tabopen")) | |
special = !special; | |
let where = special ? liberator.NEW_TAB : liberator.NEW_BACKGROUND_TAB; | |
if (buffer.URL === "about:blank" || |
This file contains 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
#!/usr/bin/perl | |
=head1 chperm_maker.pl | |
与えられたファイルリストのパーミッションを | |
変更するスクリプトを生成する | |
=head1 例 | |
$ find . -exec ls -d {} + | perl <this script path> |
This file contains 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
/* | |
* @example 1 | |
* Promise.when( | |
* asyncFunc1(), | |
* asyncFunc2() | |
* ).then( | |
* function done (p1, p2){ console.log("resolved: ", p1.isResolved, p2.isResolved); }, | |
* function reject(p1, p2){ console.log("rejected: ", p2.isRejected, p2.isRejected); } | |
* ); | |
* function asycFunc1 () { |
This file contains 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
/** | |
* @see https://mail.mozilla.org/pipermail/es-discuss/2013-March/029259.html | |
* | |
* @name Object.setPrototypeOf | |
* @function | |
* @param {Object} aTarget | |
* @param {Object} aPrototype | |
*/ | |
(function() { | |
var protoDesc = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__"); |