:! # run as shell command
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
| March 2014 | |
| Promises/RSVP - Dan | |
| Ember + Bootstrap Components - Brett/Mark | |
| Lightening Round? - Anyone | |
| Future | |
| Containers | |
| Computed Macros (custom) |
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
| // Update LinkView to allow data attributes | |
| Em.LinkView.reopen({ | |
| init: function() { | |
| this._super(); | |
| var self = this; | |
| Em.keys(this).forEach(function(key) { | |
| if (key.substr(0, 5) === 'data-') { | |
| self.get('attributeBindings').pushObject(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
| # rails plugin new my_lti_app -T --mountable --dummy-path=spec/test_app -m URL_TO_THIS_RAW_GIST | |
| def ask_wizard(question) | |
| ask "\033[1m\033[30m\033[46m" + "prompt".rjust(10) + "\033[0m\033[36m" + " #{question}\033[0m" | |
| end | |
| def yes_wizard?(question) | |
| answer = ask_wizard(question + " \033[33m(y/n)\033[0m") | |
| case answer.downcase | |
| when "yes", "y" |
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
| color codeschool | |
| set guifont=Source\ Code\ Pro\ Light:h14 | |
| let g:NERDTreeWinPos = "right" | |
| set guioptions-=T " Removes top toolbar | |
| set guioptions-=r " Removes right hand scroll bar | |
| set go-=L " Removes left hand scroll bar | |
| autocmd User Rails let b:surround_{char2nr('-')} = "<% \r %>" " displays <% %> correctly | |
| :set cpoptions+=$ " puts a $ marker for the end of words/lines in cw/c$ commands |
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
| http = require 'http' | |
| https = require 'https' | |
| fs = require 'fs' | |
| path = require 'path' | |
| {spawn, exec} = require 'child_process' | |
| semver = require 'semver' | |
| AdmZip = require('adm-zip') | |
| GitHubApi = require 'github' | |
| canned = require 'canned' |
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
| cannedServer = (fakeServerDir) -> | |
| canPort = 3000 | |
| can = canned(fakeServerDir, { cors: true, logger: process.stdout }) | |
| http.createServer(can).listen(canPort) | |
| console.log 'Canned listening at port ' + canPort | |
| task 'server', 'start the brunch server in development', (options) -> | |
| # ... | |
| cannedServer 'cans' |
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
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#rc() | |
| " Let Vundle manage Vundle | |
| Bundle 'gmarik/vundle' | |
| " Define bundles via Github repos |
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
| " Leader | |
| " let mapleader = " " | |
| set backspace=2 " Backspace deletes like most programs in insert mode | |
| set nocompatible " Use Vim settings, rather then Vi settings | |
| set nobackup | |
| set nowritebackup | |
| set noswapfile " http://robots.thoughtbot.com/post/18739402579/global-gitignore#comment-458413287 | |
| set history=50 | |
| set ruler " show the cursor position all the time |
Cheat sheet extracted from https://www.youtube.com/watch?v=2zmUSoVMyRU by That JS Dude.
If you pass any of the CSS selectors to $(<identifier>) you get the first element.
> $('a')