Skip to content

Instantly share code, notes, and snippets.

import Data.Csv
import qualified Data.ByteString.Lazy as BL
import qualified Data.ByteString.Char8 as C
import Numeric.LinearAlgebra.HMatrix (Matrix, fromRows, Vector, size)
import qualified Data.Vector as V
import qualified Data.Vector.Storable as VS
loadData :: BL.ByteString -> [Vector Double]
import os
import requests
import itertools
from StringIO import StringIO
import lxml.html as html
import Image
import scipy
import scipy.misc
import scipy.cluster
import numpy as np
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
@DbIHbKA
DbIHbKA / python_resources.md
Created January 20, 2014 15:43 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@DbIHbKA
DbIHbKA / 0_reuse_code.js
Created January 20, 2014 15:42
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console