Skip to content

Instantly share code, notes, and snippets.

View J-Gull's full-sized avatar

Jhanger Gul J-Gull

  • Lahore, Pakistan
View GitHub Profile
@J-Gull
J-Gull / gist:1124498
Created August 4, 2011 04:18
Mongo DB Rails 3.1
rails new appname --skip-active-record
gem 'mongo_mapper'
gem 'bson_ext'
$ bundle
[...]
$ rails g mongo_mapper:config
@J-Gull
J-Gull / gist:1061759
Created July 2, 2011 23:07
test code
#Purchase Invoice Program Code
#include "stdio.h"
#include "conio.h"
void main()
{
CompanyInformationStruct company_information;
CustomerInformationStruct customer_information;
InvoiceInformaionSturct invoice_inforamtion;
@J-Gull
J-Gull / gist:1060167
Created July 2, 2011 13:20
Configuring Resque Web Interface in Application
#The steps need to be performed to use resque-web with in your application
#In routes.rb
ApplicationName::Application.routes.draw do
resources :some_controller_name
mount Resque::Server, :at=> "/resque"
end
#That's it now you can access it from within your application i.e