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
| /* | |
| * for Ubiquity 0.5 | |
| */ | |
| CmdUtils.CreateCommand({ | |
| names: ["alc"], | |
| icon: "http://www.alc.co.jp/favicon.ico", | |
| homepage: "http://d.hatena.ne.jp/bellbind/", | |
| author: {name: "bellbind", email: "bellbind@gmail.com"}, | |
| license: "GPL", | |
| description: [ |
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
| // ==UserScript== | |
| // @name pixiv remove user | |
| // @namespace http://d.hatena.ne.jp/monjudoh/ | |
| // @include http://www.pixiv.net/member.php?id=* | |
| // @require http://dl.dropbox.com/u/612874/jquery-1.4.2_patch_applied_for_GM.js | |
| // ==/UserScript== | |
| (function(){ | |
| $('<div/>',{ | |
| html : $('<a/>',{ |
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
| // ==UserScript== | |
| // @name newmouse | |
| // @namespace http://www.hatena.ne.jp/hitode909 | |
| // @include * | |
| // ==UserScript== | |
| var Nears = function(x, y) { | |
| this.centerX = x; | |
| this.centerY = y; | |
| this.i = 0; |
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
| use JSTAPd::Suite; | |
| sub tests { 11 } | |
| sub include { | |
| ( | |
| # /Users/monjudoh/Sites/callendar-demo/js/config-require.js | |
| '/js/config-require.js', | |
| '/js/allplugins-require.js', | |
| ); | |
| } |
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(){ | |
| var domManip = jQuery.fn.domManip; | |
| jQuery.fn.domManip = function(){ | |
| if(!jQuery.isReady && !!this.closest('body').size() ) { | |
| var msg = printStackTrace().join('\n'); | |
| alert(msg); | |
| throw new Error(); | |
| } | |
| return domManip.apply(this,arguments); | |
| } |
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
| /* | |
| * Underscore.js plugin | |
| * http://documentcloud.github.com/underscore/ | |
| */ | |
| (function(){ | |
| var root = this; | |
| var console = root.console; | |
| var optionsTable = {}; | |
| var setResultTable = {}; | |
| var lib = {}; |
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 stringToNSString(str) { | |
| return ['@"',str,'"'].join(''); | |
| } | |
| function numberToNSNumber(num) { | |
| return ['[NSNumber numberWithLong:',num,']'].join(''); | |
| } | |
| function booleanToNSNumber(bool) { | |
| return ['[NSNumber numberWithBool:',(bool ? 'YES' : 'NO'),']'].join(''); | |
| } |
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
| <html> | |
| <body> | |
| <canvas id="test" width="320" height="320"></canvas> | |
| <script type="text/javascript"> | |
| (function() { | |
| var proto = document.createElement('canvas').getContext('2d').constructor.prototype; | |
| var x = proto.fillText; | |
| proto.fillText = function fillText(text) { | |
| if (proto.fillText !== fillText) { | |
| proto.fillText = fillText; |
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
| Array.apply(null,new Array(101)) | |
| .map(function(n,i){ return '';}) | |
| .map(function(n,i){ return n+(i % 3 ? '' : 'Fizz');}) | |
| .map(function(n,i){ return n+(i % 5 ? '' : 'Buzz');}) | |
| .map(function(n,i){ return n ? n : i;}) | |
| .slice(1,101) |
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
| fizzArray = []; | |
| buzzArray = []; | |
| new Array(101).join('a').replace(/a/g,function(n,i){ | |
| fizzArray = fizzArray.concat(['','','Fizz']); | |
| buzzArray = buzzArray.concat(['','','','','Buzz']); | |
| var result = (fizzArray[i]+buzzArray[i]).replace(/^$/,i + 1); | |
| return result + '\n'; | |
| }); |