Skip to content

Instantly share code, notes, and snippets.

Suppose you have a Ruby on Rails application in /somewhere. Add a server block
to your Nginx configuration file, set its root to /somewhere/public, and set
'passenger_enabled on', like this:
server {
listen 80;
server_name www.yourhost.com;
root /somewhere/public; # <--- be sure to point to 'public'!
passenger_enabled on;
}
orders = fileOps.openCsv1("cases.csv")
values = []
similarOrders = {}
custID = raw_input('__Enter customer ID:')
for key,val in orders.iteritems():
if custID == key:
values = val
for key,val in orders.iteritems():
if custID != key:
### Keybase proof
I hereby claim:
* I am fmd on github.
* I am fmd (https://keybase.io/fmd) on keybase.
* I have a public key whose fingerprint is EC28 939D 5345 BC7D B6CF 027D 15DD C87F 4F33 33FA
To claim this, I am signing this object:
@fmd
fmd / game.txt
Created June 17, 2018 03:15
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[7,"d",2,"0",17,"d",6,"3",128,"2",8,"d",1,"0",18,"d",5,"3",128,"2",9,"d",1,"0",17,"d",5,"3",128,"2",10,"d",1,"0",16,"d",5,"3",128,"2",11,"d",1,"0",14,"d",6,"3",41,"2",10,"0",77,"2",25,"d",7,"3",37,"2",3,"0",6,"5",6,"0",10,"2",2,"0",8,"5",9,"0",47,"2",19,"d",1,"0",6,"d",6,"3",32,"2",6,"0",12,"5",3,"0",8,"2",2,"0",15,"5",4,"0",46,"2",26,"d",6,"3",31,"2",3,"0",17,"5",3,"0",6,"2",2,"0",16,"5",2,"b",2,"0",46,"2",25,"d",6,"3",32,"2",2,"0",18,"5",1,"b",1,"5",2,"0",5,"2",1,"0",16,"5",4,"b",1,"0",2,"2",6,"0",2,"2",15,"0",21,"2",25,"d",1,"3",12,"0",16,"2",5,"0",4,"2",2,"0",17,"5",3,"b",1,"5",1,"0",5,"2",18,"5",3,"b",1,"0",1,"2",4,"0",2,"b",5,"0",6,"5",7,"b",1,"0",20,"2",23,"d",4,"0",3,"5",3,"b",5,"5",1,"0",3,"2",5,"0",6,"2",7,"0",3,"2",2,"0",9,"5",2,"0",6,"5",3,"b",1,"5",2,"0",3,"2",1,"0",7,"5",2,"0",9,"5",3,"b",1,"0",1,"2",3,"0",4,"b",2,"0",7,"5",9,"b",20,"2",22,"d",3,"0",4,"5",7,"b",3,"5",2,"2",2,"0",3,"5",2,"0",5,"2",2,"0",3,"5",2,"0",3,"2",2,"0",7,"5",5,"0",1,"2",1,"0",4
@fmd
fmd / game.txt
Created June 17, 2018 03:16
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[7,"d",2,"0",17,"d",6,"3",128,"2",8,"d",1,"0",18,"d",5,"3",128,"2",9,"d",1,"0",17,"d",5,"3",128,"2",10,"d",1,"0",16,"d",5,"3",128,"2",11,"d",1,"0",14,"d",6,"3",41,"2",10,"0",77,"2",25,"d",7,"3",37,"2",3,"0",6,"5",6,"0",10,"2",2,"0",8,"5",9,"0",47,"2",19,"d",1,"0",6,"d",6,"3",32,"2",6,"0",12,"5",3,"0",8,"2",2,"0",15,"5",4,"0",46,"2",26,"d",6,"3",31,"2",3,"0",17,"5",3,"0",6,"2",2,"0",16,"5",2,"b",2,"0",46,"2",25,"d",6,"3",32,"2",2,"0",18,"5",1,"b",1,"5",2,"0",5,"2",1,"0",16,"5",4,"b",1,"0",2,"2",6,"0",2,"2",15,"0",21,"2",25,"d",1,"3",12,"0",16,"2",5,"0",4,"2",2,"0",17,"5",3,"b",1,"5",1,"0",5,"2",18,"5",3,"b",1,"0",1,"2",4,"0",2,"b",5,"0",6,"5",7,"b",1,"0",20,"2",23,"d",4,"0",3,"5",3,"b",5,"5",1,"0",3,"2",5,"0",6,"2",7,"0",3,"2",2,"0",9,"5",2,"0",6,"5",3,"b",1,"5",2,"0",3,"2",1,"0",7,"5",2,"0",9,"5",3,"b",1,"0",1,"2",3,"0",4,"b",2,"0",7,"5",9,"b",20,"2",22,"d",3,"0",4,"5",7,"b",3,"5",2,"2",2,"0",3,"5",2,"0",5,"2",2,"0",3,"5",2,"0",3,"2",2,"0",7,"5",5,"0",1,"2",1,"0",4