Skip to content

Instantly share code, notes, and snippets.

View hrickards's full-sized avatar

Harry Rickards hrickards

View GitHub Profile
@Jasmeet107
Jasmeet107 / card_game.py
Last active December 16, 2015 02:16
9.66 Project
import numpy as np
import scipy as sp
from scipy import misc
from scipy import stats
from scipy import special
import random
import matplotlib.pyplot as plt
#The card set consists of one of each value card. Ace is given the value 11, but will be changed to 1 if/when it benefits the player.
card_set = {'a':11, '2':2, '3':3, '4':4, '5':5, '6':6, '7':7, '8':8, '9':9, '10':10, 'j':10, 'q':10, 'k':10}
@eric1234
eric1234 / 0_instructions.txt
Created April 9, 2011 01:12
Using Sprockets 2 in Rails 3.0.x with CoffeeScript & SASS
UPDATE: Please see some of the forks for an updated version of this guide. I
myself have moved onto the Rails 3.1 betas to get the asset pipeline. But if
you want to stay on stable there are other folks who are keeping this guide
relevant despite the changes constantly occurring on Sprockets 2. The comments
on this gist will lead you to the right forks. :)
Some brief instructions on how to use Sprocket 2 in Rails to get CoffeeScript
powered JS and SASS powered CSS with YUI compression all via the magic of rack.
This stuff will be native in Rails 3.1 and the layout of the files on the