⌘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
<!-- http://jsfiddle.net/hM3s8/2/ --> | |
<html> | |
<head> | |
<title>Checkbox</title> | |
<style> | |
input[type=checkbox] { | |
display:none; | |
} | |
input[type=checkbox] + label |
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
// ---- | |
// Sass (v3.3.0.rc.5) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
/* PIXELS to EM */ | |
// eg. for a relational value of 12px write em(12) when the parent is 16px | |
// if the parent is another value say 24px write em(12, 24) | |
// @include em(12); |
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
addedPhones = $('.added_phone'); | |
addedPhones.each( function(i) { | |
var tag = $(this).children("label").text(); | |
var value = $(this).children("input").val(); | |
phoneObjs = $(this).map(function(i,el) { | |
var $el = $(el); | |
return { | |
label: value, | |
tag: tag |
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
/* RESPONSIVE MEDIA QUERIES | |
==================================================== | |
==================================================== */ | |
/* 1600 | |
==================================================== */ | |
@media all and (max-width: 1600px) { | |
} | |
/* 1400 |
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
// load the express package and create our app | |
// CALL THE PACKAGES -------------------- | |
var express = require('express'); // call express | |
var app = express(); // define our app using express | |
var bodyParser = require('body-parser'); // get body-parser | |
var morgan = require('morgan'); // used to see requests | |
var mongoose = require('mongoose'); // for working w/ our database | |
var port = process.env.PORT || 8615; // set the port for our app | |
// BASE SETUP |
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[ | |
var express = require('express'), | |
app = express(); | |
app.get('/', function(req, res) { | |
res.sendfile(__dirname + '/client/views/index.html'); | |
}) | |
app.listen(${1:this}, function() { |
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
@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 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
// jQuery button click bind | |
$('').unbind('click').bind('click', function (event) { | |
}); |
OlderNewer