Skip to content

Instantly share code, notes, and snippets.

to

Block or report user

Report or block to

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View withContext.js
'use strict';
var context = {a : 1, b : 2};
withContext(context, () => {
console.log(a); // 1
});
function withContext(context, func){
eval(
View Normalization.js
var Normalization = {
conds : [
['\u3099', 78, '\u3094\u30F4'],
['\u3099', 1, 'がぎぐげござじずぜぞだぢづでどばびぶべぼガギグゲゴザジズゼゾダヂヅデドバビブベボ'],
['\u309A', 2, 'ぱぴぷぺぽパピプペポ']
]
,
decompress : function(text){
// 濁音/半濁音を分離する
Normalization.conds.forEach(function(cond){
@to
to / logicalCompare.js
Last active Jan 2, 2018
Windowsのエクスプローラーの名前順ソートロジック
View logicalCompare.js
var expects = [
'!aa-a',
'_______z',
'___a',
'__a',
'_1',
'_a',
'_aa-a',
'1-a',
'a',
View gist:5a198ebb99eed563a4a1
// ==UserScript==
// @name iTS - Protect Auto Launch
// @include https://itunes.apple.com/*
// @run-at document-end
// ==/UserScript==
document.body.onload = function(){};
View gist:7284466
if(!Array.slice)
Array.slice = Function.prototype.call.bind(Array.prototype.slice);
View gist:6870406
<body onkeydown="alert(event.key)"></body>
View ldr-fixunmatchedprint.user.js
// ==UserScript==
// @name LDR - Fix Unmatched Print
// @include http://reader.livedoor.com/reader/
// ==/UserScript==
with(unsafeWindow){
addAround(API.prototype, 'post', function(proceed, args, target, name){
switch(target.ap){
case '/api/unread':
case '/api/all':
View g-lii.user.js
// ==UserScript==
// @name Gigazine - Load Image Immediately
// @include http://gigazine.net/*
// ==/UserScript==
Array.forEach(document.querySelectorAll('.lazy'), function(img){
img.src = img.dataset.original;
});
@to
to / gist:4748997
Created Feb 10, 2013
iOSで以下ファイルをホーム画面にアプリとして置き開くと、テキストのスタイルがリンクのように下線が付き青色になる。中のテキストを0、10、20など以外に変えると発生しない。また30や0を削り3つにしても発生しない。Safariで普通に開くと装飾なしのテキストが表示される。
View gist:4748997
<!doctype html>
<html>
<head>
<meta name="apple-mobile-web-app-capable" content="yes">
</head>
<body>
<div style="display: inline-block;">0</div><div style="display: inline-block;">10</div><div style="display: inline-block;">20</div><div style="display: inline-block;">30</div>
</body>
</html>
@to
to / Default.ahk
Created Sep 14, 2012
Windows 7 - キーボード設定
View Default.ahk
;; #InstallKeybdHook
/*
^ Ctrl
+ Shift
! Alt
# Win
<! 左Alt
>! 右Alt
*/
You can’t perform that action at this time.