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
var parent = {}; | |
var obj = Object.create(parent); | |
Object.defineProperties(parent, { | |
'parent2': { value: 'p2', enumerable: false }, | |
'parent1': { value: 'p1', enumerable: true }, | |
}); | |
Object.defineProperties(obj, { | |
'self2': { value: 's2', enumerable: false }, | |
'self1': { value: 's1', enumerable: true }, | |
}); |
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
[HowToUse] | |
Check=http://www.enthumble.com/keylist | |
Name=enthumble version 2.7 | |
[KEY] | |
Space={Enter} | |
Muhenkan={vkF2sc070B} | |
;IME ON | |
Henkan={vkF2sc070B}{vkF3sc029} | |
;IME OFF |
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
function constant(key, value){ | |
defProp(window, key, value, 1); | |
return value; | |
} | |
constant('FOO_BAR', 'foo bar') //=> 'foo bar' | |
FOO_BAR //=> 'foo bar' | |
FOO_BAR = 'baz' //=> 'baz' | |
FOO_BAR //=> 'foo bar' | |
(function(){ 'use strict'; FOO_BAR = 'baz' })() //~> TypeError: "FOO_BAR" is read-only |
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
"5foo".to_i #=> 5 | |
"foo5".to_i #=> 0 | |
Integer "5foo" #~> invalid value for Integer(): "5foo" (ArgumentError) |
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
From 685f09c16147d7d44d0f5f392b78af4e33f0a955 Mon Sep 17 00:00:00 2001 | |
From: anonymous <anonymous@2ch.net> | |
Date: Tue, 9 Sep 2014 11:08:33 +0900 | |
Subject: [PATCH] =?UTF-8?q?[804.zip]=20=E9=81=8E=E5=8E=BB=E3=83=AD?= | |
=?UTF-8?q?=E3=82=B0=E5=80=89=E5=BA=AB=EF=BC=A0=E3=81=84=E3=82=8D=E3=81=84?= | |
=?UTF-8?q?=E3=82=8D=20=E3=81=AE=E3=83=91=E3=83=83=E3=83=81=E9=81=A9?= | |
=?UTF-8?q?=E7=94=A8?= | |
MIME-Version: 1.0 | |
Content-Type: text/plain; charset=UTF-8 | |
Content-Transfer-Encoding: 8bit |
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
'foo'.contains('o'); //=> true | |
'foo'.contains(/o/); //=> true |
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
http_get('http://www.example.org/index.html') #=> #<Net::HTTPOK 200 OK> | |
http_get(uri) | |
http_post(uri, {'foo'=> 0, 'bar'=> 1}) | |
http_get(uri, {'foo'=> 0, 'bar'=> 1}) | |
http_get(uri, 'foo=0&bar=1') |
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
var xhr = new XMLHttpRequest(); | |
xhr.onreadystatechange = function(){ | |
if(xhr.readyState === 4 && xhr.status === 200){ | |
console.log(xhr.response); | |
} | |
} | |
xhr.open('GET', '/path/to/file', true); | |
xhr.send(); |
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
Fix:バグ修正 | |
Add:機能追加 | |
Modify:機能修正 | |
Change:仕様変更 | |
Clean:整理(リファクタリング) | |
Remove:削除 | |
Upgrade:バージョンアップ | |
Revert:変更取り消し |
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
var enums = {}; | |
enums.keyboard = { | |
BACKSPACE: 8, | |
TAB: 9, | |
ENTER: 13, | |
SHIFT: 16, | |
CTRL: 17, | |
ALT: 18, | |
PAUSE: 19, | |
CAPS_LOCK: 20, |
OlderNewer