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(){ | |
window.addEventListener("DOMContentLoaded", function(){ | |
var timers = {}; | |
document.body.addEventListener("keyup", function(ev){ | |
var e = ev.target; | |
if(e.tagName.toLowerCase() != "input" || e.getAttribute("type") != "text"){ | |
return; | |
} | |
if(typeof timers[e] == "number" && timers[e] != -1){ | |
clearTimeout(timers[e]); |
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 showns = []; | |
if(typeof showns.contains != "function"){ | |
if(typeof showns.indexOf == "function"){ | |
showns.contains = function(o){ | |
return 0 <= this.indexOf(o); | |
}; | |
} | |
else{ |
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 Font Style Disabler | |
// @namespace kobachi | |
// @include http://* | |
// @include https://* | |
// @version 1.0 | |
// @grant none | |
// ==/UserScript== | |
window.addEventListener("load", function(){ |
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
var wmi = GetObject("winmgmts:\\\\.\\root\\cimv2"); | |
var conf = wmi.ExecQuery("select * from Win32_NetworkAdapterConfiguration"); | |
var summary = new Object(); | |
for(var _c = new Enumerator(conf); !_c.atEnd(); _c.moveNext()){ | |
var c = _c.item(); | |
if(!c.IPEnabled){ | |
continue; | |
} | |
var ips = c.IPAddress.toArray(); | |
if(ips.length == 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
(function(){ | |
var undefined; | |
function Group(start, end, nest){ | |
this.start = start; | |
this.end = end; | |
this.nest = nest; | |
this.pattern = undefined; | |
} | |
Group.prototype.toString = function(){ | |
return this.pattern; |
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
<job> | |
<script language="JScript"> | |
(function(){ | |
var sh = WScript.CreateObject("WScript.Shell"); | |
var installedKBs = []; | |
var wmic = sh.Exec("wmic qfe"); | |
while(wmic.Status != 1){ |
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 addEventListener = Element.prototype.addEventListener; | |
var removeEventListener = Element.prototype.removeEventListener; | |
var eventHandlers = new Object(); | |
Element.prototype.addEventListener = function(){ | |
if(typeof eventHandlers[this] == "undefined"){ | |
eventHandlers[this] = {}; | |
} | |
var e = arguments[0].toLowerCase(); | |
if(typeof eventHandlers[this][e] == "undefined"){ |
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
//選択された範囲のテキストをJSONとして整形する秀丸エディタ用マクロ(要node.js 必要ならnode.exeをフルパスで指定すること。) | |
runex "node -e \"var data = '';process.stdin.setEncoding('utf8');process.stdin.on('data', function(d){data = data + d;});process.stdin.on('end', function(){console.log(JSON.stringify(JSON.parse(data), null, '\t'));});process.stdin.resume();\"", | |
1, | |
5, "", | |
6, "", | |
0, "", | |
4, "", | |
2, | |
1, | |
6; |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
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
FF01 ! 0021 ! | |
FF02 " 0022 " | |
FF03 # 0023 # | |
FF04 $ 0024 $ | |
FF05 % 0025 % | |
FF06 & 0026 & | |
FF07 ' 0027 ' | |
FF08 ( 0028 ( | |
FF09 ) 0029 ) | |
FF0A * 002A * |
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
@echo off | |
setlocal | |
title boot2docker-cli | |
if not exist "%USERPROFILE%\.boot2docker" mkdir "%USERPROFILE%\.boot2docker" | |
call :SETUP_PATH | |
call :VERSION_CHECK | |
if not exist "%USERPROFILE%\.boot2docker\boot2docker.exe" call :DOWNLOAD_CLI | |
if not exist "%USERPROFILE%\.boot2docker\boot2docker.iso" call :DOWNLOAD_ISO | |
call :LAUNCH | |
goto EOF |