⌘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
.square(50px); |
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
/*! | |
An experiment in getting accurate visible viewport dimensions across devices | |
(c) 2012 Scott Jehl. | |
MIT/GPLv2 Licence | |
*/ | |
function viewportSize(){ | |
var test = document.createElement( "div" ); | |
test.style.cssText = "position: fixed;top: 0;left: 0;bottom: 0;right: 0;"; |
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
if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/iPad/i)) { | |
$(document).ready(function () { | |
$('label[for]').click(function () { | |
var el = $(this).attr('for'); | |
if ($('#' + el + '[type=radio], #' + el + '[type=checkbox]').attr('selected', !$('#' + el).attr('selected'))) { | |
return; | |
} else { | |
$('#' + el)[0].focus(); | |
} | |
}); |
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
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller | |
// fixes from Paul Irish and Tino Zijdel | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; | |
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { |
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
/** //@ sourceMappingURL=app.min.js.map | |
*/ | |
console.log('foo');console.log('bar'); |
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
livereload: { | |
options: { livereload: true }, | |
files: [ | |
// When these files are changed, livereload is triggered | |
// Make sure this directory is the same as the one your site points to | |
'resources/css/styles.css' | |
] | |
} |
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
[ | |
{ "keys": ["alt+up"], "command": "inc_dec_value", "args": { "action": "inc_min" } }, | |
{ "keys": ["alt+down"], "command": "inc_dec_value", "args": { "action": "dec_min" } }, | |
{ "keys": ["super+up"], "command": "inc_dec_value", "args": { "action": "inc_max" } }, | |
{ "keys": ["super+down"], "command": "inc_dec_value", "args": { "action": "dec_max" } }, | |
{ "keys": ["super+alt+up"], "command": "inc_dec_value", "args": { "action": "inc_all" } }, | |
{ "keys": ["super+alt+down"], "command": "inc_dec_value", "args": { "action": "dec_all" } } | |
] |
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
<!--[if lte IE 8]> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="/js/libs/jquery.min.js"><\/script>')</script> | |
<![endif]--> | |
<!--[if gt IE 8]><!--> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="/js/libs/jquery.2.min.js"><\/script>')</script> | |
<!--<![endif]--> |
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
/* jshint jquery:true */ | |
/* Author: Dave Rupert | |
* License: WTFPL | |
----------------------*/ | |
(function($){ | |
'use strict'; | |
$.fn.dataCodeBlock = function(){ | |