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
/** | |
* | |
* Here's a thing that will look through all the text nodes of a document, and | |
* upon encountering an emoji codepoint, will replace it with an image. | |
* For now, those images are pulled from GitHub, which isn't very nice, so I | |
* need to find a more suitable host. | |
* | |
* Much of this code was gleaned from staring at the minified GitHub JS. | |
* | |
* Copyright (c) 2013 Mark Wunsch. Licensed under the MIT License. |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Monokai</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>name</key> |
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
function isFunction(fun){ | |
return typeof fun === 'function'; | |
} | |
function isObject(obj){ | |
return toString.apply(obj) == '[object Object]'; | |
} | |
function isString(str){ | |
return typeof str === 'string'; | |
} | |
function isNumeric(num){ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Show hidden characters
[ | |
{ "keys": ["alt+/"], "command": "auto_complete" }, | |
{ "keys": ["ctrl+shift+c"], "command": "toggle_side_bar" }, | |
{ "keys": ["ctrl+shift+g"], "command": "find_all_under" }, | |
{ "keys": ["ctrl+shift+x"], "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"} }, | |
{ "keys": ["ctrl+shift+s"], "command": "reveal_in_side_bar"}, | |
{ "keys": ["ctrl+shift+z" ], "command": "view_in_browser" }, | |
{ "keys": ["ctrl+shift+l"], "command": "next_view_in_stack" }, | |
{ "keys": ["ctrl+shift+h"], "command": "prev_view_in_stack" }, | |
{ "keys": ["alt+l"], "command": "focus_neighboring_group" }, |
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
{ | |
"auto_complete_commit_on_tab": false, | |
"auto_match_enabled": true, | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/Monokai (SL).tmTheme", | |
"copy_with_empty_selection": false, | |
"default_encoding": "UTF-8", | |
"detect_slow_plugins": false, | |
"drag_text": false, |
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
[ | |
{ "keys": ["alt+/"], "command": "auto_complete" }, | |
{ "keys": ["ctrl+shift+c"], "command": "toggle_side_bar" }, | |
{ "keys": ["ctrl+shift+g"], "command": "find_all_under" }, | |
{ "keys": ["ctrl+shift+x"], "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"} }, | |
{ "keys": ["ctrl+shift+s"], "command": "reveal_in_side_bar"}, | |
{ "keys": ["ctrl+shift+z" ], "command": "view_in_browser" }, | |
{ "keys": ["ctrl+shift+l"], "command": "next_view_in_stack" }, | |
{ "keys": ["ctrl+shift+h"], "command": "prev_view_in_stack" }, | |
{ "keys": ["alt+l"], "command": "focus_neighboring_group" }, |
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
"------default settings安装完就有放入设置--------------- | |
set nocompatible "关闭兼容模式 | |
"模仿win快捷键,如Ctrl+a 全选, Ctrl+c 复制 Ctrl + v 粘贴等 | |
source $VIMRUNTIME/vimrc_example.vim | |
source $VIMRUNTIME/mswin.vim | |
behave mswin | |
"设置无自动备份文件 如index.php~ | |
set nobackup |
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
<input type="button" id="button" value="点击弹出window.devicePixelRatio" /> | |
document.getElementById("button").onclick = function() { | |
alert(window.devicePixelRatio); | |
}; | |