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
using System; | |
using System.Diagnostics; | |
using System.Threading; | |
namespace ConcurrentTest | |
{ | |
class Program | |
{ | |
const int CONCURRENT = 100; | |
const int LOOP = 100000; |
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
@if(0)==(0) ECHO OFF | |
CScript.exe //NoLogo //E:JScript "%~f0" %* | |
GOTO :EOF | |
@end | |
// zip compress command in wsh. | |
// @see http://scripting.cocolog-nifty.com/blog/2008/06/zip_3cb0.html | |
// @see http://n-arai.cocolog-nifty.com/blog/2008/04/activeserverpag_d5bc.html | |
if (WScript.Arguments.Count() < 2) { |
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
package test01; | |
import java.text.MessageFormat; | |
import java.util.concurrent.atomic.AtomicInteger; | |
public class ConcurrentTest { | |
static final int CONCURRENT = 100; | |
static final int LOOP = 100000; | |
static int counter; | |
static AtomicInteger aCounter; |
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 Scrolloo | |
// @description Yet anther scrollbar and scroll utilities. | |
// @namespace http://www.hatena.ne.jp/miya2000/scrolloo | |
// @version 1.00 Beta | |
// @include * | |
// ==/UserScript== | |
//* | |
(function(f) { | |
//for debug. |
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 nicovideo - wnp (Ginza Preview) | |
// @description windowised nicovideo player. | |
// @author miya2000 | |
// @namespace http://d.hatena.ne.jp/miya2000/ | |
// @version Ginza Preview | |
// @include http://*.nicovideo.jp/* | |
// @exclude http://www.nicovideo.jp/watch/* | |
// @exclude http://*http* | |
// @exclude http://ads.nicovideo.jp/* |
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
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
namespace UnitTestProject1 | |
{ | |
[TestClass] | |
public class CsvConvertUsingAnonymousTypeTest |
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 jQuery2.0.0 for Opera10.10 | |
// @include * | |
// ==/UserScript== | |
(function() { | |
if (typeof Date.now == 'undefined') { | |
Date.now = function() { return new Date() }; | |
} | |
if (typeof Array.isArray == 'undefined') { | |
// https://developer.mozilla.org/ja/docs/JavaScript/Reference/Global_Objects/Array/isArray |
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
using System; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace QueryTest | |
{ | |
[TestClass] | |
public class QueryTest | |
{ | |
[TestMethod] | |
public void Test1() |
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 jQuery1.9.1 for Opera10.10 | |
// @include * | |
// ==/UserScript== | |
(function() { | |
opera.addEventListener('BeforeScript', function(e) { | |
// div#click is "undefined". a#click, input#click is "Function". | |
if (e.element.src == 'http://code.jquery.com/jquery-1.9.1.js') { | |
e.element.text = e.element.text.replace('div.cloneNode( true ).click();', ''); | |
} |
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 nicovideo - Q for Opera10.10 | |
// @include http://www.nicovideo.jp/watch/* | |
// ==/UserScript== | |
(function() { | |
opera.addEventListener('BeforeScript', function(e) { | |
if (/EmbededWatchData\.js/.test(e.element.src)) { | |
document.body.constructor = HTMLBodyElement; | |
} | |
}, false); |
NewerOlder