Skip to content

Instantly share code, notes, and snippets.

View navidemad's full-sized avatar

Navid EMAD navidemad

  • Yespark
  • Paris
  • 23:36 (UTC +01:00)
View GitHub Profile
@navidemad
navidemad / rails-postgres-backbone-bootstrap-bootswatch
Created July 30, 2016 21:09 — forked from sionc/rails-postgres-backbone-bootstrap-bootswatch
Instructions on creating a new app using Ruby on Rails, Postgresql, Backbone.js, Twitter Boostrap, Bootstwatch
- Check rails version
$ rails -v
- To update rails
$ gem update rails
- Creating a new rails app using postgresql
$ mkdir rails_projects
$ cd rails_projects
$ rails new myapp --database=postgresql
@navidemad
navidemad / benchmark.rb
Last active October 2, 2023 21:57
Benchmark Rails methods
# frozen_string_literal: true
# Usage:
# bundle exec rails runner benchmark.rb
require "benchmark"
require "benchmark/ips"
require "objspace"
require "timecop"