⌘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
if(window.addEventListener) { // correlates with media query support | |
var timer = false | |
, resize_monitor = function() { | |
if(timer) { | |
clearTimeout(timer); | |
} | |
timer = setTimeout(function() { _gaq.push(['_trackEvent', 'Resize', 'Resize', 'Resized']); }, 100); | |
// or log a pageview on a non-existant page if you prefer |
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
$ echo '@media screen {@media (min-width: 200px) {a: b}}' | scss | |
@media screen and (min-width: 200px) { | |
a: b; } |
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 rgbaa($args...) { | |
// rgbaa(#FFF, .5) | |
@if length($args) == 2 { | |
$hex: nth($args, 1); | |
$alpha: nth($args, 2); | |
@if $oldIE == 1 { | |
@return rgb(red($hex), green($hex), blue($hex)); | |
} @else { | |
@return rgba(red($hex), green($hex), blue($hex), $alpha); |
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
Show hidden characters
[ | |
{ "keys": ["ctrl+alt+f"], "command": "use_it" }, | |
{ "keys": ["ctrl+tab"], "command": "prev_view_in_stack" }, | |
{ "keys": ["ctrl+shift+tab"], "command": "next_view_in_stack" }, | |
{ "keys": ["ctrl+shift+j"], "command": "js_run" }, | |
// Paste and indent | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, |
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
%debug | |
background-color: pink !important |
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
/* ---------------------------------------------------------- */ | |
/* */ | |
/* A media query that captures: */ | |
/* */ | |
/* - Retina iOS devices */ | |
/* - Retina Macs running Safari */ | |
/* - High DPI Windows PCs running IE 8 and above */ | |
/* - Low DPI Windows PCs running IE, zoomed in */ | |
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
/* - Android hdpi devices and above */ |
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
<?php | |
$filename = isset($argv[1]) ? realpath($argv[1]) : null; | |
$mixin = isset($argv[2]) ? $argv[2] : 'sprite-mixin'; | |
$retina = isset($argv[3]) ? true : false; | |
if (!$filename) { | |
echo "fail", PHP_EOL; | |
exit(1); | |
} |
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
//==== Simple SCSS mixin to create CSS triangles | |
//==== Example: @include css-triangle ("up", 10px, #fff); | |
@mixin css-triangle ($direction: "down", $size: 20px, $color: #000) { | |
width: 0; | |
height: 0; | |
border-left: $size solid #{setTriangleColor($direction, "left", $color)}; | |
border-right: $size solid #{setTriangleColor($direction, "right", $color)}; | |
border-bottom: $size solid #{setTriangleColor($direction, "bottom", $color)}; | |
border-top: $size solid #{setTriangleColor($direction, "top", $color)}; | |
} |