⌘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
<snippet> | |
<content><![CDATA[function() { | |
${1:} | |
}]]></content> | |
<tabTrigger>func</tabTrigger> | |
<scope>source.js</scope> | |
<description>function(){}</description> | |
</snippet> |
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
<script> | |
function addClass(el, cl) { | |
el.className += ' ' + cl; | |
} | |
function supportsSVG() { | |
return !!document.createElementNS && !!document.createElementNS('http://www.w3.org/2000/svg', "svg").createSVGRect; | |
} | |
if(supportsSVG) { |
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
// copy-paste into console | |
fetch('https://api.github.com/gists', { | |
method: 'post', | |
headers: { | |
'Accept': 'application/json', | |
'Content-Type': 'application/json' | |
}, | |
body: JSON.stringify({ | |
name: 'Hubot', | |
login: 'hubot', |
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
<!DOCTYPE html> | |
<head> | |
<title>4sq image request</title> | |
<script type="text/javascript" src="jquery-1.6.2.js"></script> | |
<script type="text/javascript"> | |
// set the following appropriately | |
var testUrl4sq = "XXX", | |
bitlyUsername = "XXX", | |
bitlyApiKey = "XXX", |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Kafka</title> | |
</head> | |
<body> | |
<div><p>Jemand mußte Josef K. verleumdet haben, denn ohne daß er etwas | |
Böses getan hätte, wurde er eines Morgens verhaftet. Die Köchin der | |
Frau Grubach, seiner Zimmervermieterin, die ihm jeden Tag gegen |
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
import datetime | |
from south.db import db | |
from south.v2 import SchemaMigration | |
from django.db import models | |
class Migration(SchemaMigration): | |
def forwards(self, orm): | |
# Adding field 'Epub.date_published' |
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
var start = new Date(); | |
for (var i=0; i < 10; i++) { | |
// the action | |
}; | |
diff = new Date() - start; | |
console.log(diff); |
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
<snippet> | |
<content><![CDATA[console.dir(${1:});]]></content> | |
<tabTrigger>dir</tabTrigger> | |
<scope>source.js</scope> | |
<description>console.dir()</description> | |
</snippet> |
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
-webkit-overflow-scrolling: touch; |
OlderNewer