⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
input { | |
height: 34px; | |
width: 100%; | |
border-radius: 3px; | |
border: 1px solid transparent; | |
border-top: none; | |
border-bottom: 1px solid #DDD; | |
box-shadow: inset 0 1px 2px rgba(0,0,0,.39), 0 -1px 1px #FFF, 0 1px 0 #FFF; | |
} |
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
# Determine details about a deleted file | |
git log -1 -- <file> |
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
/* Text smoothing */ | |
body { | |
font-family: Camphor, Open Sans, Segoe UI, sans-serif; | |
text-rendering: optimizeLegibility; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
/* Nice hover effect | |
button:hover { |
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
function doStuff() { return false; } | |
(function loopFunc() { | |
doStuff(); | |
//setTimeout(arguments.callee, 100); // callee is deprecated | |
setTimeout(loopFunc, 100); | |
})() |
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
/* function parseURLParams | |
* Accepts a http parameter string or grabs the one from the current URL | |
* Returns a dictionary | |
* Ex: '?api_key=XYZ&version=2' => { api_key: 'XYZ', version: 2} | |
* | |
* query: string | undefined | |
*/ | |
function parseURLParams (query) { | |
if(!query) |
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
set telemetry_inversion=on | |
set small_angle=180 | |
save |
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
// uses jquery, but could be rewritten without | |
$(data).find('track').each(function (i, e) { | |
// console.log(e); | |
var tmp; | |
var loc = (tmp = e.getElementsByTagName('location')[0]) ? tmp.innerHTML : ""; | |
var img = (tmp = e.getElementsByTagName('image')[0]) ? tmp.innerHTML : ""; | |
var inf = (tmp = e.getElementsByTagName('info')[0]) ? tmp.innerHTML : ""; | |
var buy = (tmp = e.getElementsByTagName('buy')[0]) ? tmp.innerHTML : ""; | |
var fav = (tmp = e.getElementsByTagName('favorite')[0]) ? tmp.innerHTML : ""; | |
var tid = (tmp = e.getElementsByTagName('id')[0]) ? tmp.innerHTML : ""; |
NewerOlder