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
// Save to ~/Library/KeyBindings/DefaultKeyBinding.dict | |
{ | |
"\UF729" = moveToBeginningOfParagraph:; // home | |
"\UF72B" = moveToEndOfParagraph:; // end | |
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home | |
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end | |
"^\UF729" = moveToBeginningOfDocument:; // ctrl-home | |
"^\UF72B" = moveToEndOfDocument:; // ctrl-end | |
"^$\UF729" = moveToBeginningOfDocumentAndModifySelection:; // ctrl-shift-home |
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
[Rule] | |
IP-CIDR,127.0.0.0/8,DIRECT | |
IP-CIDR,172.16.0.0/12,DIRECT | |
IP-CIDR,10.0.0.0/8,DIRECT | |
IP-CIDR,192.168.0.0/16,DIRECT | |
DOMAIN-SUFFIX,oa.com,DIRECT | |
DOMAIN-SUFFIX,qq.com,DIRECT | |
DOMAIN-SUFFIX,cn,DIRECT | |
DOMAIN-SUFFIX,mzstatic.com,DIRECT | |
DOMAIN-SUFFIX,phobos.apple.com,DIRECT |
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
Process: GitHub [7276] | |
Path: /Applications/GitHub.app/Contents/MacOS/GitHub | |
Identifier: com.github.GitHub | |
Version: The Sum of All Feels (208) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: GitHub [7276] | |
User ID: 501 | |
Date/Time: 2015-07-13 22:38:01.213 +0800 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf8"> | |
<title>Float Label Pattern</title> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
<style type="text/css" media="screen"> | |
.row { | |
/*position: relative;*/ | |
padding-top: 24px; |
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
# Client side should check the activation status of current account. | |
# If not you should popup an input dialog for the user to enter their activation code. | |
# | |
# CLIENT SIDE CODE SAMPLE | |
def login(user_id, password) | |
user = User.validate_login_from_server(user_id, password) | |
if user.nil? | |
# provided user_id or password is incorrect. | |
# show an error message on client |
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
var i = "initialized"; | |
function test() { | |
var i = 0; | |
for (i in [1, 2, 3]) { console.log(i) }; | |
} | |
test(); | |
console.log(i); |