MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to: Sublime Text
Make it executable with: chmod u+x Sublime\ Text
function requestMultiUrls(urlArray) { | |
"use strict"; | |
var config = { | |
limit: 6 | |
}; // Each send request limit | |
var limit = config.limit, | |
cursor = 0, | |
index = 0; | |
function toRequest(urls, len) { | |
if (len) limit = len; |
var throttle = function(fn, wait) { | |
var start = 0, remain = 0; | |
return function() { | |
var self = this, args = arguments; | |
remain = Date.now() - start; | |
if (remain >= wait) { | |
start = Date.now(); | |
setTimeout(function() { | |
fn.apply(self, args); |
var Dispatcher = require('the-dispatcher'), | |
Immutable = require('immutable'), | |
NotificationConstants = require('../constants/notification_constants'), | |
UserConstants = require('../constants/user_constants'), | |
UploadConstants = require('../constants/upload_constants'), | |
StylesheetConstants = require('../constants/stylesheet_constants'), | |
makeStore = require('makestore'); | |
/** | |
* The Notification Store does nothing but store recent actions |
[General] | |
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local | |
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114 | |
loglevel = notify | |
[Proxy] | |
Proxy = custom | |
[Rule] |
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
I use the first | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 |
#!/bin/sh | |
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$") | |
if [[ "$STAGED_FILES" = "" ]]; then | |
exit 0 | |
fi | |
PASS=true |
const crypto = require('crypto'); | |
const debug = require('debug')('wxcrypto'); | |
/** | |
* 微信公众号消息加密解密,支持 node > 8.0 | |
* | |
* var WXCrypto = require('this module'); | |
* var wx = new WXCrypto(token, aesKey, appid); | |
* | |
* var [err, encryptedXML] = wx.encrypt(xml, timestamp, nonce); |