Skip to content

Instantly share code, notes, and snippets.

View Who8MyLunch's full-sized avatar

Pierre V. Villeneuve Who8MyLunch

View GitHub Profile
@ssokolow
ssokolow / winenv.py
Created June 5, 2011 21:55
Helpers for permanent modifications to the Windows environment
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Helpers for automating the process of setting up ported Linux/UNIX
applications which were designed with expectations like being in $PATH.
@note: Basic functionality requires only the Python standard library.
Some functions and methods also require the PyWin32 package.
@note: A much more verbose "sudo for Windows" implementation (BSD-licensed)
@rmcgibbo
rmcgibbo / install.sh
Last active October 9, 2015 03:48
Install Python / numpy / scipy / ipython / matplotlib / umfpack / pytables from source
#!/bin/bash
# =================================================================
# Install a full scientific python stack from source, for Ubuntu, with
# python 2.7.3 (tested on a totally fresh Ubuntu12.04-amd64). Requires
# sudo for apt-getting dependencies like libatlas, Tk, etc
# =================================================================
# packages pulled from PyPI are currently
# scipy 0.10.1
@elsonidoq
elsonidoq / gist:4230222
Created December 7, 2012 02:21
Python implementation of mutual information for continuous variables
from math import log
log2= lambda x:log(x,2)
from scipy import histogram, digitize, stats, mean, std
from collections import defaultdict
def mutual_information(x,y):
return entropy(y) - conditional_entropy(x,y)
def conditional_entropy(x, y):
"""
@branquito
branquito / .bashrc
Created January 18, 2013 19:07
BASH -- .bashrc-msysgit-windows
## source .bashrc ##
alias reload='. .bashrc'
## handy shortcuts ##
alias h='history'
alias h.20='history 20'
## create a new set of commands ##
alias path='echo -e ${PATH//:/\\n}'
alias now='date +"%T"'
@JosefJezek
JosefJezek / how-to-use-pelican.md
Last active November 15, 2024 07:58
How to use Pelican on GitHub Pages
@kylemanna
kylemanna / connmanctl.md
Last active June 27, 2023 23:12
Connmanctl Cheat Sheet
@rossant
rossant / handsondataframe.ipynb
Created March 10, 2014 12:08
Excel-like data grid editor for Pandas in the IPython notebook with Handsontable
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taoyuan
taoyuan / pigpiod.service
Created June 21, 2017 05:53
pigpiod systemd script
[Unit]
Description=Gpio daemon
[Service]
ExecStart=/usr/local/bin/pigpiod
Type=forking
[Install]
WantedBy=multi-user.target