Skip to content

Instantly share code, notes, and snippets.

View main-nascenia's full-sized avatar

main-nascenia

  • Nascenia
View GitHub Profile
@main-nascenia
main-nascenia / rails_resources.md
Last active August 29, 2015 14:17 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • 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
@main-nascenia
main-nascenia / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
def sanitize_results(auto_europe_response)
offer_array = auto_europe_response['RentalCarResponse']['offers']['offer'] if offer_valid?(auto_europe_response)
offer_array = making_array(offer_array)
if offer_array
offer_array.map do |offer|
{
name: offer['name'],
doors: offer['doors'],
passengers: offer['passenger'],
image_url: offer['image'],
def sanitize_results(auto_europe_response)
offer_array = auto_europe_response['RentalCarResponse']['offers']['offer'] if offer_valid?(auto_europe_response)
offer_array = making_array(offer_array)
if offer_array
offer_array.map do |offer|
{
name: offer['name'],
doors: offer['doors'],
passengers: offer['passenger'],
image_url: offer['image'],
def sanitize_results(auto_europe_response)
offer_array = auto_europe_response['RentalCarResponse']['offers']['offer'] if offer_valid?(auto_europe_response)
offer_array = making_array(offer_array)
if offer_array
offer_array.map do |offer|
{
name: offer['name'],
doors: offer['doors'],
passengers: offer['passenger'],
image_url: offer['image'],