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
{ | |
"!name": "fetch", | |
"Headers": { | |
"!type": "fn(init?: object)", | |
"!doc": "Represents response/request headers, allowing you to query them and take different actions depending on the results.", | |
"!url": "https://developer.mozilla.org/en-US/docs/Web/API/Headers", | |
"prototype": { | |
"append": { | |
"!type": "fn(name: string, value: string)", | |
"!url": "https://developer.mozilla.org/en-US/docs/Web/API/Headers/append", |
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 decode = ProtoBuf.Reflect.Message.Field.prototype.decode; | |
ProtoBuf.Reflect.Message.Field.prototype.decode = function () { | |
var value = decode.apply(this, arguments); | |
if (ProtoBuf.TYPES["enum"] === this.type) { | |
var values = this.resolvedType.children; | |
for (var i=0; i<values.length; i++){ | |
if (values[i].id == value){ | |
return values[i].name; |
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
int i = 0 | |
if (i == 0) { | |
// blah... | |
} | |
for (i = 0;i < 10;i++) { | |
if (i == 0) i++; | |
// do something same as blah... | |
} |
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
http://www.boardgamer.org/product_info.php?products_id=2886 |
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 moveLast(target) { | |
if (target.nodeName.toLowerCase() != 'input' || target.type != 'text') return false; | |
var pos = target.value.length; | |
target.focus(); | |
if (target.createTextRange) { | |
var range = target.createTextRange(); | |
range.move("character", pos); | |
range.select(); | |
} else if (target.setSelectionRange) { | |
target.setSelectionRange(pos, pos); |
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 Plurk and :w | |
// @fullname Plurk and :w | |
// @author othree | |
// @version 2009-09-09 | |
// @licence (CC) by | |
// @namespace http://othree.net/userscript/plurk/1 | |
// @description strip :w for plurk | |
// @include http://wwww.plurk.com/* | |
// ==/UserScript== |
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 form = document.getElementById('add-murmur'); | |
form.onsubmit = function (evt) { | |
var target = form.getElementsByTagName('input')[0]; | |
var text = target.value; | |
target.value = text.replace(/\s*:w$/, ""); | |
return true; | |
} |
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 Js_css_compress () | |
let cwd = expand('<afile>:p:h') | |
let nam = expand('<afile>:t:r') | |
let ext = expand('<afile>:e') | |
if -1 == match(nam, "[\._]src$") | |
let minfname = nam.".min.".ext | |
else | |
let minfname = substitute(nam, "[\._]src$", "", "g").".".ext | |
endif | |
if ext == 'less' |
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
" Screen fix | |
if &term =~ '^screen' | |
set t_k1=^[[11~ | |
set t_k2=^[[12~ | |
set t_k3=^[[13~ | |
set t_k4=^[[14~ | |
endif |
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
小梅「支倉老師、有件事想跟您商量一下」 | |
支倉「好啊、有什麼事請指教小梅老師(*゜ー゜) 」 | |
小梅「是關於諾兒菈的事……」 | |
支倉「請說(*゜ー゜) 」 | |
小梅「把她畫得稍微情色一點可以嗎?」 | |
支倉「……(*゜ー゜) 」 | |
支倉「是怎樣的情色法呢?(*゜ー゜) 」 | |
小梅「有點快壞掉的那種感覺」 | |
支倉「快....壞掉是嗎(*゜ー゜) 」 | |
小梅「是的.快壞掉。果然這樣畫不太好?」 |