Skip to content

Instantly share code, notes, and snippets.

@elyase
elyase / output
Created May 5, 2012 20:00
boost install fails
This file has been truncated, but you can view the full file.
Last login: Sat May 5 19:00:44 on ttys000
imac:~ yaser$ brew uninstall boost
Error: No such keg: /usr/local/Cellar/boost
imac:~ yaser$ brew install boost -v
==> Downloading http://downloads.sourceforge.net/project/boost/boost/1.49.0/boost_1_49_0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/boost-1.49.0.tar.bz2
/usr/bin/tar xf /Library/Caches/Homebrew/boost-1.49.0.tar.bz2
==> ./bootstrap.sh --prefix=/usr/local/Cellar/boost/1.49.0 --libdir=/usr/local/Cellar/boost/1.49.0/lib
./bootstrap.sh --prefix=/usr/local/Cellar/boost/1.49.0 --libdir=/usr/local/Cellar/boost/1.49.0/lib
-n Building Boost.Build engine with toolset darwin...
@elyase
elyase / how_to.md
Last active December 14, 2015 04:49

This should automatically install QSTK with all dependencies in a self contained Python folder in a Mac(tested on Mountain Lion 10.8.2). In a terminal run:

curl -L https://gist.github.com/elyase/5031291/raw/74d44cbb4c7af2cc98111dc8e4afa135627a49e7/install_QSTK.sh | bash

Whenever you want to start working with QSTK, run in a terminal:

pythonbrew venv use QSTK

or simply use the alias:

@elyase
elyase / gist:5079601
Last active December 14, 2015 11:29
iPython notebook for QSTK Tutorial 1 see at: http://nbviewer.ipython.org/5079601
{
"metadata": {
"name": "Tutorial1"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{

Deploy Python app using Pandas on Heroku

2012-09-08

This document explains how to deploy a Python app that uses the Pandas library on Heroku.

Heroku builds Numpy (one of Pandas' requirements) fine. However, when trying to deploy an app with both numpy and pandas in its requirements.txt file (or even just pandas), for some reason it fails

@elyase
elyase / gist:5152586
Last active December 14, 2015 21:40
Numpy Challenge Benchmarks
{
"metadata": {
"name": "NumPy Programming Challenge"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "Luis"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
2011-01-10 16:00:00,1000000.0
2011-01-11 16:00:00,1000000.0
2011-01-12 16:00:00,1000000.0
2011-01-13 16:00:00,1004815.0
2011-01-14 16:00:00,1004815.0
2011-01-18 16:00:00,1004815.0
2011-01-19 16:00:00,1004815.0
2011-01-20 16:00:00,1004815.0
2011-01-21 16:00:00,1004815.0
2011-01-24 16:00:00,1004815.0
@elyase
elyase / gist:5337846
Created April 8, 2013 15:48
Finance Programming Challenge
{
"metadata": {
"name": "Finance Programming Challenge"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "Finance Programming Challenge"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
examp1 <- "When discussing performance with colleagues, teaching, sending a bug report or searching for guidance on mailing lists and here on SO, a reproducible example is often asked and always helpful. What are your tips for creating an excellent example? How do you paste data structures from r in a text format? What other information should you include? Are there other tricks in addition to using dput(), dump() or structure()? When should you include library() or require() statements? Which reserved words should one avoid, in addition to c, df, data, etc? How does one make a great r reproducible example?"
examp2 <- "Sometimes the problem really isn't reproducible with a smaller piece of data, no matter how hard you try, and doesn't happen with synthetic data (although it's useful to show how you produced synthetic data sets that did not reproduce the problem, because it rules out some hypotheses). Posting the data to the web somewhere and providing a URL may be necessary. If the data can't be released to t