Ctrl+KB | toggle side bar |
Ctrl+Shift+P | command prompt |
Ctrl+` | python console |
Ctrl+N | new file |
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
module.exports = function (grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
less: { | |
all: { | |
src: '*.less', | |
dest: 'style.css' | |
} | |
}, |
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 |
Looking for a client side javascript developer who can use knockout.js to help build the front end of our application. To show off your skills, we would like the html/css and javascript components of Twitter's Bootstrap library turned into templates that would be useful with knockout.js. Things will get much more interesting after that.
Example alert:
<div data-bind="attr: { class: type }">
<button type="button" class="close" data-dismiss="alert">×</button>
<!-- ko data-bind="text: message" -->
<strong>Warning!</strong> Best check yo self, you're not looking too good.
<!-- /ko -->
</div>
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
// Sample grunt-jekyll grunt.js file | |
// https://github.com/dannygarcia/grunt-jekyll | |
/*global module:false*/ | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
jekyll: { |
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
/** | |
* Task: attach_heads | |
* Description: Set the heads for all themes declared in themes.json | |
*/ | |
module.exports = function(grunt) { | |
'use strict'; | |
var fs = require('fs'); | |
var path = require('path'); |
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
var helperList = ['a', 'b', 'c', 'd', 'e']; | |
var documentedList = ['a', 'c']; | |
var undocumentedList = []; | |
helperList.forEach(function(helper) { | |
if(_.contains(documentedList, helper) === false) { | |
undocumentedList.push(helper); | |
} | |
}); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
OlderNewer