Skip to content

Instantly share code, notes, and snippets.

Andy ivershuo

Block or report user

Report or block ivershuo

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
@ivershuo
ivershuo / node_fcgi.js
Last active Mar 9, 2016
FastCGI server for Node.js
View node_fcgi.js
var net = require('net'),
querystring = require('querystring');
var TYPES = {
FCGI_BEGIN_REQUEST : 1,
FCGI_ABORT_REQUEST : 2,
FCGI_END_REQUEST : 3,
FCGI_PARAMS : 4,
FCGI_STDIN : 5,
FCGI_STDOUT : 6,
View safari_reader.js
/*
* Copyright (c) 2010 Apple Inc. All rights reserved.
*/
function characterNeedsScoreMultiplier(e) {
if (!e || e.length === 0)
return !1;
var t = e.charCodeAt(0);
return t > 11904 && t < 12031?!0 : t > 12352 && t < 12543?!0 : t > 12736 && t < 19903?!0 : t > 19968 && t < 40959?!0 : t > 44032 && t < 55215?!0 : t > 63744 && t < 64255?!0 : t > 65072 && t < 65103?!0 : t > 131072 && t < 173791?!0 : t > 194560 && t < 195103?!0 : !1
}
function domDistance(e, t, n) {
View readerview_sdk.js
(function(){
"use strict";
/*Reader View插件id*/
const RV_EXT_ID = 'iibolhpkjjmoepndefdmdlmbpfhlgjpl';
const MSG_PRE = 'ReaderView.';
/**
* 插件与插件间、插件与插件页面脚本间数据通信
View quotations_of_chairman_mao.json
[{
"chapter": "一",
"title": " 共产党",
"content": [{
"words": "领导我们事业的核心力量是中国共产党。\n指导我们思想的理论基础是马克思列宁主义。",
"by": " 《中华人民共和国第一届全国人民代表大会第一次会议开幕词》(一九五四年九月十五日),一九五四年九月十六日《人民日报》"
}, {
"words": "既要革命,就要有一个革命的党。没有一个革命的党,没有一个按照马克思列宁主义的革命理论和革命风格建立起来的革命党,就不可能领导工人阶级和广大人民群众战胜帝国主义及其走狗。",
"by": "《全世界革命力量团结起来,反对帝国主义的侵略》(一九四八年十一月),《毛泽东选集》第四卷第一三六零页。"
}, {
You can’t perform that action at this time.