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 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
<?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 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
{ | |
"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 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
/** | |
* 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); |
(Also see [remarkable][], the markdown parser created by the author of this cheatsheet)
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Build HTML from templates and data
assemble: {
options: {
flatten: true,
assets: 'dist/assets',
partials: ['templates/includes/*.hbs'],
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
/** | |
* Handlebars Helpers for Pattern Lab | |
* Copyright (c) 2014 Jon Schlinkert | |
* Licensed under the MIT License (MIT). | |
*/ | |
'use strict'; | |
var path = require('path'); | |
var file = require('fs-utils'); | |
var _ = require('lodash'); |