Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
Open 'System Preferences' | |
Select 'Keyboard' | |
Select tab 'Keyboard Shortcuts' | |
Select 'Application Shortcuts' from the left listbox | |
Click '+' below right listbox | |
Select 'All Applications' for 'Application' input box | |
Type 'Paste and Match Style' into the 'Menu Title' input box |
#!/usr/bin/env bash | |
uninstall() { | |
list=`gem list --no-versions` | |
for gem in $list; do | |
gem uninstall $gem -aIx | |
done | |
gem list | |
gem install bundler | |
} |
# A class-based template for jQuery plugins in Coffeescript | |
# | |
# $('.target').myPlugin({ paramA: 'not-foo' }); | |
# $('.target').myPlugin('myMethod', 'Hello, world'); | |
# | |
# Check out Alan Hogan's original jQuery plugin template: | |
# https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template | |
# | |
(($, window) -> |
require 'net/http' | |
require 'json' | |
require 'uri' | |
@token = '' | |
def list_files | |
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
params = { | |
token: @token, |
namespace :haml do | |
desc "Convert HAML templates to ERB" | |
task :convert_to_erb do | |
# Assumes you have faraday in your Gemfile | |
conn = Faraday.new(url: "https://haml2erb.org") do |f| | |
f.request :json | |
f.response :json | |
end | |
haml_filenames = Dir["app/views/**/*.haml"] |