Skip to content

Instantly share code, notes, and snippets.

View rupakg's full-sized avatar
😎
drinking from the firehose...

Rupak Ganguly rupakg

😎
drinking from the firehose...
View GitHub Profile
@rupakg
rupakg / Technology Stack for Rails.textile
Created October 19, 2010 06:38
Various technologies that I have narrowed down for use in my Rails apps.

Technology Stack for Rails

Core

  • Rails 3.0.1
  • Ruby 1.9.2 (use RVM for mgmt.)

Development

  • Bundler – manage gem dependencies
@rupakg
rupakg / irbrc.txt
Last active August 30, 2015 02:54
IRBRC settings
.irbrc for Win32
Create a file called anything you like (e.g. “_irbrc” or “irb.rc”) and place it anywhere you like (say C:\Documents and Settings\), and set that full path to the ENV variable IRBRC, e.g. C:\Documents and Settings\\_irbrc
## Libraries
require 'rubygems'
require 'irb/completion'
require 'map_by_method'
require 'what_methods'
require 'pp'
@rupakg
rupakg / gradiantfill.rb
Created March 11, 2009 03:33
Create images using Magick
require 'RMagick'
include magick
# Demonstrate the GradientFill class
Rows = 100
Cols = 300
Start = "#900"
End = "#000"
@rupakg
rupakg / text2img.rb
Created March 11, 2009 01:12
convert text to image
require "mini_magick"
image = MiniMagick::Image.from_file("c:\\test.jpg")
image.resize "100x100"
image.write("c:\\output.jpg")