内容来自 https://github.com/Dreamacro/clash/wiki/configuration 。
proxy-prodiver 可以是完整的 clash 配置,clash 只会读取里面的 proxies
内容,其他会忽略,非常合适用来覆盖机场的配置。
// create a <link> with specific URL | |
var addLink = function(url){ | |
var link = document.createElement('link'); | |
link.src = url; | |
link.rel = 'stylesheet'; | |
link.type = 'text/css'; // no need for HTML5 | |
document.getElementsByTagName('head')[0].appendChild(link); // for IE6 | |
}; | |
// create a style that can append CSS rules to <head> |
内容来自 https://github.com/Dreamacro/clash/wiki/configuration 。
proxy-prodiver 可以是完整的 clash 配置,clash 只会读取里面的 proxies
内容,其他会忽略,非常合适用来覆盖机场的配置。
127.0.0.1, anrdoezrs.net, *.anrdoezrs.net, w3ctech.com, *.w3ctech.com, hdtdxp.com, *.hdtdxp.com, uuzuonline.com, *.uuzuonline.com, luzhou.net, *.luzhou.net, cjphr.com, *.cjphr.com, fridaying.com, *.fridaying.com, bjokli.com, *.bjokli.com, 93txt.com, *.93txt.com, robotplayer.com, *.robotplayer.com, upai99.com, *.upai99.com, gemsky.net, *.gemsky.net, 00base.com, *.00base.com, mebi9t.com, *.mebi9t.com, is686.com, *.is686.com, cdncache.org, *.cdncache.org, sucaitianxia.com, *.sucaitianxia.com, 89178.com, *.89178.com, 5dmail.net, *.5dmail.net, oy66.com, *.oy66.com, shanghaining.com, *.shanghaining.com, book118.com, *.book118.com, zsbeike.com, *.zsbeike.com, hunantv.com, *.hunantv.com, ylunion.com, *.ylunion.com, mysilu.com, *.mysilu.com, 0737mp.com, *.0737mp.com, 37cu.com, *.37cu.com, longre.com, *.longre.com, yanzheng.com, *.yanzheng.com, lifeyoyo.com, *.lifeyoyo.com, wulinyingxiong.net, *.wulinyingxiong.net, yong9.net, *.yong9.net, communicatte.com, *.communicatte.com, ok92.net, *.ok92.net, junshishu.com, *.juns |
function auto_nvm () { | |
if command -v nvm >/dev/null && [[ -a .nvmrc ]]; then | |
nvm use | |
fi | |
} | |
chpwd_functions=(${chpwd_functions[@]} "auto_nvm") | |
auto_nvm |
If you encounter errors like this configure: error: C compiler cannot create executables
, try this command on Terminal:
sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain
You should change XcodeDefault.xctoolchain
and OSX10.10.xctoolchain
tu suit your case.
window.onload = function(){ | |
var doc = document | |
, img = doc.createElement('img') | |
, div = doc.createElement('div') | |
, body = doc.getElementsByTagName('body')[0]; | |
img.className = 'preload'; | |
img.style.cssText = ';position:absolute;top:-999em;left:-999em;width:0;height:0;visibility:hidden;'; | |
// ajax loaded or predefined img list | |
var arr = imgList | |
, str |
'use strict' | |
console.log('Using node %s', process.versions.node) | |
function p () { | |
return Promise.resolve('hello').then(s => `${s} world`) | |
} | |
const a = async function () { | |
await p() |
'use strict' | |
const crypto = require('crypto') | |
const key = 'salt_from_the_user_document' | |
const plaintext = '56d008a27c36552a0f97b291' | |
const cipher = crypto.createCipher('aes-256-cbc', key) | |
const decipher = crypto.createDecipher('aes-256-cbc', key) | |
let encryptedPassword = cipher.update(plaintext, 'utf8', 'base64') | |
encryptedPassword += cipher.final('base64') |
# Aria2 configuration | |
# RPC Setting | |
enable-rpc=true | |
rpc-listen-all=true | |
rpc-allow-origin-all=true | |
rpc-listen-port=6800 | |
rpc-secret=aria2_secret | |
# General Setting |
[{"name":"Angular","slug":"angular~2_typescript","type":"angular","links":{"home":"https://angular.io/","code":"https://github.com/angular/angular"},"version":"2 TypeScript","release":"2.4.7","mtime":1487432703,"db_size":3380979},{"name":"Angular","slug":"angular~2_dart","type":"angular","links":{"home":"https://angular.io/","code":"https://github.com/angular/angular"},"version":"2 Dart","release":"2.2.4","mtime":1480870302,"db_size":3538959},{"name":"Angular.js","slug":"angularjs~1.6","type":"angularjs","version":"1.6","release":"1.6.3","mtime":1489347998,"db_size":1698263},{"name":"Angular.js","slug":"angularjs~1.5","type":"angularjs","version":"1.5","release":"1.5.11","mtime":1487432576,"db_size":1668313},{"name":"Angular.js","slug":"angularjs~1.4","type":"angularjs","version":"1.4","release":"1.4.14","mtime":1476633905,"db_size":1444683},{"name":"Angular.js","slug":"angularjs~1.3","type":"angularjs","version":"1.3","release":"1.3.20","mtime":1469290315,"db_size":1313532},{"name":"Angular.js","slug":"angul |