ctrl+T | go to file |
ctrl+⌃P | go to project |
ctrl+R | go to methods |
⌃G | go to line |
ctrl+KB | toggle side bar |
ctrl+shift+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
/* Inside grunt.js file (don't forget to add "growl" as a project dependency) */ | |
grunt.utils.hooker.hook(grunt.fail, "warn", function(opt) { | |
require('growl')(opt.name, { | |
title: opt.message, | |
image: 'Console' | |
}); | |
}); | |
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
Directory structure | |
SubModule/ | |
css/ | |
... | |
js/ | |
... | |
images/ | |
... |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Monokai Soda</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
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
{ | |
"compile": false, | |
"compress": false, | |
"noIDs": true, | |
"noJSPrefix": true, | |
"noOverqualifying": true, | |
"noUnderscores": true, | |
"noUniversalSelectors": true, | |
"zeroUnits": true, | |
"strictPropertyOrder": true, |
We can move those options into an external JSON file, .recessrc
, like this:
{
"compile": true,
"compress": false,
"noIDs": true,
"noJSPrefix": true,
"noOverqualifying": true,
"noUnderscores": true,
"noUniversalSelectors": true,
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
/** | |
* Relative path | |
* Returns the derived relative path from one to the other. | |
* | |
* Usage: | |
* {{relative from to}} | |
*/ | |
Handlebars.registerHelper('relative', function(from, to) { | |
var relativePath = path.relative(from, to); |
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
/** | |
* See https://github.com/sellside/pre | |
*/ | |
/** | |
* References/todos: | |
* http://www.lemoda.net/javascript/dump-dom/dump-dom.html | |
* http://www.howtocreate.co.uk/tutorials/javascript/dombasics | |
* Use treewalker or nodefilter?? | |
* https://developer.mozilla.org/en-US/docs/DOM/NodeFilter |
This guide shows you how to get up and running with breakdance, a HTML-to-markdown converter written in javascript for node.js.
Within 2-3 minutes you'll be converting HTML to markdown like a pro!
- visit the breakdance documtentation
- visit the breakdance GitHub repository
You can also follow @breakdancejs on twitter