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
xhr = new XMLHttpRequest() | |
# 进度 | |
xhr.upload.addEventListener "progress", uploadProgress, false | |
# 完成 | |
xhr.addEventListener "load", uploadComplete, false | |
xhr.addEventListener "error", console.log, false | |
xhr.addEventListener "abort", console.log, false |
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
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport en0 prefs DisconnectOnLogout=NO |
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
# Define database connection | |
Discover.define 'repo', | |
name: 'default' | |
provider: | |
type: 'mysql' | |
options: | |
host: 'localhost' | |
port: 3306 | |
password: '123123' | |
user: 'root' |