Skip to content

Instantly share code, notes, and snippets.

Vic Ramon vicramon

Block or report user

Report or block vicramon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vicramon
vicramon / projections.json
Created Jul 7, 2014
Javascript Vim Projections for Ember JS
View projections.json
{
"app/assets/javascripts/router.js": {
"command": "jini"
},
"app/controllers/api/v1/*_controller.rb": {
"command": "apicontroller",
"alternate": "spec/controllers/api/v1/%s_controller_spec.rb",
"template": "class Api::V1::%SController < ApplicationController\n respond_to :json\nend"
},
"app/assets/javascripts/models/*.js": {
@vicramon
vicramon / projections
Last active May 26, 2016
CoffeeScript Vim Projections for Ember JS
View projections
{
"app/assets/javascripts/router.js.coffee": {
"command": "jini"
},
"app/controllers/api/v1/*_controller.rb": {
"command": "apicontroller",
"alternate": "spec/controllers/api/v1/%s_controller_spec.rb",
"template": "class Api::V1::%SController < ApplicationController\n respond_to :json\nend"
},
"app/assets/javascripts/models/*.js.coffee": {
@vicramon
vicramon / mux-init
Last active Jan 4, 2016
Initialize tmux with rails console and server
View mux-init
# ~/hashrocket/hr/share/mux-init
tmux \
split-window -h -t $name \; \
split-window -d -h -t $name \; \
select-layout -t $name main-horizontal &>/dev/null \; \
new-window -a -d -n server -t $name:0 \; \
split-window -d -h -t $name:server \; \
send-keys -t $name:0.2 'vim .' C-m \; \
send-keys -t $name:1.1 'rails s' C-m \; \
@vicramon
vicramon / gist:7696084
Created Nov 28, 2013
Vimium Detection
View gist:7696084
// Detect the Vimium Chrome extension by Evan Hahn (evanhahn.com)
;(function(doc) {
doc.hasVimium = function() {
return doc.getElementsByClassName('vimiumReset').length > 0;
};
doc.onDetectVimium = function(callback, scope) {
@vicramon
vicramon / .vimrc
Created Apr 29, 2013
Handy vimrc options
View .vimrc
set shiftwidth=2
set number
colorscheme molokai
set ignorecase
if version >= 700
au InsertEnter * hi StatusLine ctermfg=28 ctermbg=white
@vicramon
vicramon / application.css
Created Jun 6, 2014
Stylesheet for Vic Ramon's Ember Tutorial
View application.css
@import url(http://fonts.googleapis.com/css?family=Roboto:400,700,300,400italic);
@import url(http://fonts.googleapis.com/css?family=Maven+Pro:400,500,700);
ul, ol {
list-style: none;
}
h1, h2, h3, h4, h5, h6, pre, code {
font-size: 1em;
}
You can’t perform that action at this time.