- Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
- rabl - General ruby templating with json, bson, xml, plist and msgpack support
- Thin - Very fast and lightweight Ruby web server
- Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
- SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
- Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
- [factory_girl](h
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
.pagination{ | |
float:right; | |
margin-top: 7px; | |
height: 22px; | |
line-height: 22px; | |
span, a, em{ | |
text-decoration:none; | |
padding: 4px 7px; | |
border-top: 1px solid #E2E2E2; | |
border-left: 1px solid #C9C9C9; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
class Progress | |
def initialize(msg, total, &context) | |
@total = total | |
@context = context | |
end | |
def update(progress) | |
puts(progress) | |
end |
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
module Plugins | |
def self.included(base) | |
base.class_eval do | |
include Plugin1 | |
# include IdealPlugin doesn't work | |
# ... | |
hello("from plugins") | |
end | |
end | |
end |
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
module Plugin1 | |
hello("hello") | |
end | |
module PluginContainer | |
def self.included(base) | |
base.extend(ClassMethods) | |
end | |
module ClassMethods | |
include Plugin1 |
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 with_spinner | |
finished = false | |
working = Mutex.new | |
spinner = Thread.new do | |
loop do | |
break if working.synchronize {finished} | |
["|","/","-","\\"].each do |glyph| | |
print "\r#{glyph}" | |
sleep 0.07 | |
print "\b" |
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/env ruby | |
# Install: | |
# $ cat heroku_logstalgia_formatter.rb > ~/bin/heroku_logstalgia_formatter | |
# $ chmod +x ~/bin/heroku_logstalgia_formatter | |
# Usage: | |
# $ heroku logs -t --app {app} | heroku_logstalgia_formatter | logstalgia - | |
require 'optparse' |
Interactive version: http://bl.ocks.org/4545199
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 'devise' | |
gem 'omniauth-facebook' |
OlderNewer