⌘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 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 express = require('express'); | |
var jade = require('jade'); | |
var app = express(); | |
var pub = __dirname + '/public'; | |
app.set('views', __dirname + '/views'); | |
app.set('view engine', 'jade'); | |
app.use(app.router); |
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
@mixin box-shadow($top, $left, $blur, $color, $inset: false) { | |
@if $inset { | |
-webkit-box-shadow:inset $top $left $blur $color; | |
-moz-box-shadow:inset $top $left $blur $color; | |
box-shadow:inset $top $left $blur $color; | |
} @else { | |
-webkit-box-shadow: $top $left $blur $color; | |
-moz-box-shadow: $top $left $blur $color; | |
box-shadow: $top $left $blur $color; | |
} |
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
What do you mean? An African or European swallow? | |
an african or an european swallow? | |
Butts | |
25 mph | |
Derp. African or European. Must specify and make entire new site. | |
42 | |
You have to know these things when you're a king, you know... | |
African, or European? | |
African or European? | |
100 petacoconuts/s |
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() { | |
var WAITFORIT; | |
// style objects for styles bc lazy | |
var divstyles = { | |
'width' : '300px', | |
'height' : '150px', | |
'backgroundColor' : '#fff', | |
'position' : 'fixed', |
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 maxheight = 0; | |
$.each($('#latest-carousel li'), function(i, val) { | |
maxheight = $(val).height() > maxheight ? $(val).height() : maxheight; | |
}); | |
$('#carousel-mask').css('height', maxheight); |
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
Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; SAMSUNG; SGH-i917) |
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
// test to see if the browser supports native html5 placeholders | |
jQuery.support.placeholder = (function(){ | |
var i = document.createElement('input'); | |
return 'placeholder' in i; | |
})(); | |
// if the browser doesn't support placeholders (IE9!!!!!!), do them manually | |
if (!$.support.placeholder) { | |
$("input").each(function(){ | |
var current = $(this); |
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
nav { | |
border: 4px solid #333; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
padding: 0 8px; | |
width: 100% | |
} |
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
li { | |
display: block; | |
height: 50px; | |
line-height: 50px; /* line-height is the same as the height of this element */ | |
text-align: center; | |
width: 140px; | |
} | |
li a { | |
display: block; /* fills the li */ |