Skip to content

Instantly share code, notes, and snippets.

View marcwebbie's full-sized avatar

Marcwebbie marcwebbie

View GitHub Profile
(use-package elpy
:config
(progn (elpy-enable)
(defun elpy-nose-test-spec (module test)
(cond (test
(format "%s:%s" module test))
(module module)
(t "")))
(defun elpy-test-nose-pdb-runner (top file module test)
"Test the project using the nose test runner with the --pdb arg.
@marcwebbie
marcwebbie / python_two.py
Last active August 29, 2015 14:12
write-python3
from __future___ import print_function
try:
input = raw_input
str = unicode
range = xrange
except NameError:
pass
try:
@marcwebbie
marcwebbie / compile_emacs.sh
Last active August 4, 2017 06:17
Compile emacs 24 on Red Hat 6 workstations
# install needed libraries
sudo yum install texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel
# compile autoconf
cd /tmp
wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2
tar xjvf autoconf-2.68.tar.bz2
cd autoconf-2.68/
./configure && make && sudo make install
@marcwebbie
marcwebbie / .init.el
Last active August 29, 2015 13:57
Emacs on workstations
(add-to-list 'load-path "~/.emacs.d/")
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
(add-to-list 'package-archives
'("tromey" . "http://tromey.com/elpa/"))
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/"))
(package-initialize)
@marcwebbie
marcwebbie / test_list_filter.py
Last active December 27, 2015 08:29
testing performance of filtering list for best match
from timeit import timeit
from difflib import SequenceMatcher
import difflib
import re
word_list = ["balla", "baby"]
song_list = [
"Give Em Some Mo",
"Fall'n (Feat. G.I.B.)",
@marcwebbie
marcwebbie / command.txt
Created September 10, 2013 04:47 — forked from nrk/command.txt
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"