Skip to content

Instantly share code, notes, and snippets.

require 'rubygems'
require 'rubygems/package'
require 'zlib'
require 'fileutils'
module Util
module Tar
# Creates a tar file in memory recursively
# from the given path.
#
@jcreixell
jcreixell / gdoc.py
Created May 15, 2012 09:39
Google Doc pandas integration
import gspread
from pandas import *
import logging
class GDocError(Exception):
def __init__(self, value):
self.parameter = value
def __str__(self):
@jcreixell
jcreixell / solvedarts.py
Created May 15, 2012 07:41
Darts Game Solution
import itertools
for i in range(1,10):
for j in itertools.combinations_with_replacement([16,18,23,24,39,40], i):
if sum(j) == 100:
print j