⌘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
/** | |
* Path icon hover | |
* | |
* Example of the desired effect (hover over the user avatar) https://path.com/p/5Eplz | |
* | |
* Close, but annoying that the animation runs on page load. | |
* Possible solution could be to fade entire page content in while initial | |
* animation runs. | |
*/ | |
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
/** | |
* Path icon hover | |
* | |
* Example of the desired effect (hover over the user avatar) https://path.com/p/5Eplz | |
* | |
* Close, but annoying that the animation runs on page load. | |
* Possible solution could be to fade entire page content in while initial | |
* animation runs. | |
*/ | |
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
/** | |
* Move in a circle without wrapper elements | |
* Idea by Aryeh Gregor, simplified by Lea Verou | |
*/ | |
@keyframes rot { | |
from { | |
transform: rotate(0deg) | |
translate(-150px) | |
rotate(0deg); |
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
//include | |
var CSSLint = require("csslint").CSSLint; | |
/* | |
* Basic usage | |
* First argument is the CSS text. | |
* Second argument is the options object. Name is the ID of the rule (see wiki) set to | |
* either 1 for a warning or 2 for an error. | |
*/ | |
var result = CSSLint.verify(".foo { }", { "compatible-vendor-prefixes": 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
var HashMap = (function () { | |
var PROTO_SUPPORT = !Object.prototype.isPrototypeOf({__proto__ : null}), | |
OBJECT_CREATE = typeof Object.create != 'undefined', | |
DONT_ENUM_BUG = !{'toString' : true}.propertyIsEnumerable('toString'); | |
var hasOwnP = {}.hasOwnProperty, | |
dontEnums = []; | |
if (DONT_ENUM_BUG) { | |
dontEnums = [ |
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
/** | |
* Slider | |
*/ | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
html { |
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
/** | |
* Slider | |
*/ | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
html { |
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
/** | |
* Thumbnail attempt 1, taken from http://dribbble.com/shots/406640-Image-Thumbs-free-PSD- | |
*/ | |
body { padding: 10em 0; text-align: center; } | |
a { position: relative; display: inline-block; } | |
a img { display: block; margin: 0 auto; } | |
a:before { | |
content:""; | |
position: absolute; |
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
/** | |
* CSS Thumbnail, design taken from http://dribbble.com/shots/406640-Image-Thumbs-free-PSD- | |
*/ | |
body { padding: 10em 0; text-align: center; background: url(http://cl.ly/EOkc/farmer.png) } | |
a, span { position: relative; display: inline-block; } | |
img { display: block; } | |
span { overflow: hidden; } | |
span:after { | |
content: ""; |