As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/bash | |
| # Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04 | |
| # Inspired from https://gist.github.com/faleev/3435377 | |
| # Remove any existing packages: | |
| sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev | |
| # Get the dependencies (Ubuntu Server or headless users): | |
| sudo apt-get update |
| #! /bin/bash | |
| sudo yum install -y gcc g++ gtk+-devel libjpeg-devel libtiff-devel jasper-devel libpng-devel zlib-devel cmake unzip sqlite-devel readline-devel bzip2-devel openssl-devel ncurses-devel | |
| sudo yum install -y yum-priorities | |
| sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| sudo yum install -y eigen3-devel --enablerepo=epel | |
| su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm' | |
| sudo yum install -y ffmpeg-devel | |
| export PYTHON_PREFIX=/usr/local/python-2.7.7 |
| # (C) Mathieu Blondel, November 2013 | |
| # License: BSD 3 clause | |
| import numpy as np | |
| def ranking_precision_score(y_true, y_score, k=10): | |
| """Precision at rank k | |
| Parameters |
| #!/bin/bash | |
| # hook into inotify to watch a file, and generate | |
| # diffs for changes in real-time | |
| # | |
| # requires inotify-tools (apt-get install inotify-tools) | |
| # | |
| # @author Filipe Dobreira <[email protected]> | |
| usage() { | |
| echo "Usage:" | |
| echo " in-diff <file>|help" |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| /* | |
| * object.watch polyfill | |
| * | |
| * 2012-04-03 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public Domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ |