You must have the following gems installed:
- haml (or haml-rails)
- html2haml
- hpricot
- ruby_parser
import HmacSHA256 from 'crypto-js/hmac-sha256'; | |
import Base64 from 'crypto-js/enc-base64'; | |
import Utf8 from 'crypto-js/enc-utf8'; | |
const header = { | |
alg: 'HS256', | |
typ: 'JWT' | |
}; | |
const body = { foo: 'bar' }; |
// make all JSON content dark blue | |
.editor[data-grammar="source json"] { | |
color: @syntax-selection-color; | |
// make all strings pastel white | |
&> .string.quoted.json { | |
color: @syntax-text-color; | |
} | |
// make an exception for all .string keys whose immediate parent is .value |
Install Browser Sync with NPM | |
$ npm install -g browser-sync | |
Then start the Browser Sync server, point it to the proxy (the real server) and then the port option will be the one you use in the browser. The files argument are the files to watch. | |
$ browser-sync start --proxy "localhost:3000" --port 3003 --files "app/** | |
For more config options: http://www.browsersync.io/docs/command-line/ |
.fluid { | |
&:after { | |
content: ""; | |
clear: both; | |
display: block; | |
} | |
.item { | |
float: left; | |
} |
{ | |
// JSHint Default Configuration File (as on JSHint website) | |
// See http://jshint.com/docs/ for more details | |
"maxerr" : 50, // {int} Maximum error before stopping | |
// Enforcing | |
"bitwise" : false, // true: Prohibit bitwise operators (&, |, ^, etc.) | |
"camelcase" : false, // true: Identifiers must be in camelCase | |
"curly" : true, // true: Require {} for every new block or scope |
// Discovered here then refactored: http://davidwalsh.name/detect-scrollbar-width | |
var checkScrollbarWidth = function() { | |
var $body = $("body"), | |
$div = $('<div class="scrollbar-measure">'), | |
scrollbarWidth; | |
$div.appendTo( $body ); | |
scrollbarWidth = $div[0].offsetWidth - $div[0].clientWidth; | |
$div.remove(); |
alias ls='ls -G' | |
alias lsa='ls -la' | |
alias g='git' | |
alias gp="git pull" | |
alias gpu="git push" | |
alias gpt="git push --tags" | |
alias gpp="git pull && git push" | |
alias gc="git checkout" | |
alias gs="git status" |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'tpope/vim-rails' |
tabSize = 2 | |
softTabs = true | |
showInvisibles = true | |
include = "{.rvmrc,.rspec,.gitignore,.tm_properties,.htaccess}" | |
excludeInFileChooser = "{$excludeInFileChooser,log,vendor,tmp,.sass-cache,uploads}" | |
excludeInBrowser = "{$excludeInBrowser,log,vendor,tmp,.sass-cache,uploads}" | |
excludeInFolderSearch = "{$excludeInFolderSearch,log,vendor,tmp,.sass-cache,uploads}" |