- Install Xcode (Avaliable on the Mac App Store)
- Install Xcode Command Line Tools (Preferences > Downloads)
- Install depot_tools
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
$ nano ~/.zshrc
- Add
path=('/path/to/depot_tools' $path)
- Modify index.txt with your output path and proxy info
- Use Text Builder to build configuration for Surge:
$ text-builder -index /path/to/index.txt
Or run$ sh build-all
to build all your index files. - Import configuration via AirDrop/iTunes/Dropbox/iCloud
本人不提供任何保证和技术支持,使用者自负风险。
There are no guarantees, no any support. Use it at your own risk.
This file contains hidden or 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
/** | |
* requesteAnimationFrame 兼容支持 | |
* @reference | |
* http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
* @return {undefined} | |
*/ | |
(function() { | |
var lastTime = 0; | |
var vendors = ['webkit', 'moz']; | |
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { |
This file contains hidden or 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
Y = function(lep) { | |
return (function (f) { | |
return f(f); | |
})(function(f){ | |
return lep(function(x){ | |
return f(f)(x); | |
}); | |
}); | |
} |
This is installation documentation for installing Koel on Debian 8.
Most packages can be installed via apt-get.
user@debian:~/$ sudo apt-get install -y apache2 mysql-server php5 php5-mysql g++ git curl
The driver situation with Apple Bluetooth wireless keyboards and Windows 10 is horrible, even with the latest BootCamp drivers. Fortunately, a workaround is available, if you're patient.
- Turn on the keyboard.
- Press and hold
Command + w
until the keyboard light begins blinking, indicating the keyboard is ready to pair. - Use Windows Bluetooth settings to pair the keyboard, entering the same code (e.g.
123456 Enter
) on both internal and external keyboards.
Pairing the keyboard is very trial and error. 9/10 times, Windows will complain that the keyboard is not available for pairing. Just keep trying.
This file contains hidden or 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
App({ | |
/** | |
* [request description] | |
* @param {[type]} method [description] | |
* @param {[type]} url [description] | |
* @param {[type]} data [description] | |
* @param {[type]} header [description] | |
* @return {[type]} [description] | |
*/ |
This file contains hidden or 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
#!/bin/bash | |
################################ | |
# OS X Install ISO Creater # | |
# # | |
# Author: shela # | |
################################ | |
####################################### | |
# Declarations |
This file contains hidden or 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
#If you don't have colorize gem, do install it via 'gem install colorize' | |
#Update | |
#Add cache categories function | |
require 'csv' | |
require 'readline' | |
require 'colorize' | |
require 'json' | |
CACHED_CATEGORIES_FILE = "cache_categories.json" | |
cache_categories = JSON.parse(File.open(CACHED_CATEGORIES_FILE).read) rescue {} |