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() { | |
var max = 10000; | |
var pi = Math.PI; | |
(function() { | |
var a = new Array(max); | |
console.time('native'); | |
for (var i = 0, len = a.length; i < len; i++) { | |
a[i] = pi; |
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
// strict check | |
// | |
function strict() { | |
'use strict'; | |
var isStrict = (function(){return !this}()); | |
console.log(isStrict); | |
} | |
function nonStrict() { |
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
/* UserStyleSheet for Google Chrome */ | |
body.user-style-negipo, | |
body.user-style-hitode909{ | |
background-image: none !important; | |
} | |
article.twitter/* TweetDeck */, | |
#doc .stream-item/* Twitter web */ { | |
overflow:hidden; | |
} |
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
$ rvm ruby-1.9.2 | |
$ ruby -e "print nil" | |
$ rvm ree | |
$ ruby -e "print nil" | |
nil% | |
$ ruby -e "print nil.to_s" | |
$ |
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
// ==UserScript== | |
// @name LDRize | |
// @namespace http://white.s151.xrea.com/ | |
// @description j,k,v,p,o,:,f,? + l,s,i | |
// @include http://* | |
// @include https://* | |
// @include file:///* | |
// ==/UserScript== | |
const SCRIPT_VERSION = "2010.10.27 mod/2011.01.30" |
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
// ==UserScript== | |
// @name Minibuffer | |
// @namespace http://white.s151.xrea.com/ | |
// @description Minibuffer | |
// @include * | |
// ==/UserScript== | |
var VERSION = "2009.12.06 mod/2011.01.30"; | |
var Class = function(){return function(){this.initialize.apply(this,arguments)}}; |
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
// ==UserScript== | |
// @name mouseover eijirox | |
// @description mouseover dictionary, require EijiroX and NinjaKit extensions. | |
// @namespace http://ss-o.net/ | |
// @include http* | |
// ==/UserScript== | |
(function () { | |
var d = document.createElement('dl'); | |
d.id = 'eijirox-box'; | |
d.style.cssText = 'min-width:200px;min-height:100px;position:absolute!important;background:rgba(255,255,255,0.8)!important;color:#000!important;font-size:11px!important;border-radius:10px!important;padding:10px!important;margin:0px!important;text-align:left!important;line-height:1.2!important;z-index:10000000!important;border:2px solid #456!important;'; |
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 EXArray() { | |
var result = []; | |
result.__proto__ = EXArray.prototype; | |
for (var i = 0, len = arguments.length; i < len; ++i) { | |
result[i] = arguments[i]; | |
} | |
return result; | |
} | |
// どうせなら仕様の範囲内で |
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> | |
<title>game</title> | |
<style> | |
#C{ | |
position:relative; | |
} | |
.cell{ |
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 re_http = '(?:https?://\\S+)', | |
re_user = '(?:[@][0-9A-Za-z_]{1,15})', | |
re_hashtag = '(?:[#]\\S+)', | |
re_tweet = new RegExp( | |
'('+[re_http, re_user, re_hashtag].join('|')+'|\\S+)', 'g' | |
); | |
var make_link = function(href, txt) { | |
var a = document.createElement('a'); | |
a.href = href; |
NewerOlder