This file contains 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
gem_group :assets do | |
gem 'haml_coffee_assets' | |
gem 'execjs' | |
gem 'i18n-js' | |
end | |
gem_group :assets, :development do | |
gem 'rails-backbone' | |
end | |
gem 'haml-rails' | |
gem_group :test, :development do |
This file contains 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
gem_group :assets do | |
gem 'haml_coffee_assets' | |
gem 'execjs' | |
gem 'i18n-js' | |
end | |
gem_group :assets, :development do | |
gem 'rails-backbone' | |
end | |
gem 'haml-rails' | |
gem_group :test, :development do |
This file contains 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
#!/usr/bin/ruby | |
require 'net/http' | |
require 'net/https' | |
require 'base64' | |
require 'uri' | |
require 'yaml' | |
require 'cgi' | |
module Configuration | |
def config_file |
This file contains 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
gem_group :assets do | |
gem 'haml_coffee_assets' | |
end | |
gem_group :assets, :development do | |
gem 'rails-backbone' | |
end | |
gem 'haml-rails' | |
gem 'draper' | |
gem_group :test, :development do | |
gem 'konacha' |
This file contains 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
## keybindings | |
unbind C-b | |
unbind C-a | |
unbind % | |
unbind , | |
unbind . | |
unbind n | |
unbind p | |
unbind [ | |
unbind '"' |
This file contains 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
#!/usr/bin/ruby | |
require 'net/http' | |
require 'net/https' | |
require 'base64' | |
require 'uri' | |
require 'yaml' | |
require 'cgi' | |
class Net::HTTP | |
alias_method :old_initialize, :initialize |
This file contains 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
window.App = | |
Models: {} | |
Collections: {} | |
Routers: {} | |
Views: {} | |
DebugInstances: {} | |
context_manager: null | |
init: -> | |
@context_manager = new App.Views.ContextManager |
This file contains 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
" convert javascript to coffeescript | |
command! ConvertJs :call ConvertJs() | |
function! ConvertJs() | |
:norm =G | |
:silent :%s/;$//e | |
:silent :%s/var //ge | |
:silent :g/^\s\+})$/d | |
:silent :%s/function() {/->/ge |
This file contains 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
# src_files | |
# | |
# Return an array of filepaths relative to src_dir to include before jasmine specs. | |
# Default: [] | |
# | |
# EXAMPLE: | |
# | |
# src_files: | |
# - lib/source1.js | |
# - lib/source2.js |
This file contains 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
def find_positions_for_split(text, width) | |
if space = text[0..width].rindex(" ") | |
[space-1, space+1] | |
else | |
[width-1, width] | |
end | |
end | |
def wrap(text, width) |