Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcwebbie marcwebbie

View GitHub Profile
View elpy-test-pdb-config.el
(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.
View python_two.py
from __future___ import print_function
try:
input = raw_input
str = unicode
range = xrange
except NameError:
pass
try:
@marcwebbie
marcwebbie / compile_emacs.sh
Last active Aug 4, 2017
Compile emacs 24 on Red Hat 6 workstations
View compile_emacs.sh
# 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 Aug 29, 2015
Emacs on workstations
View .init.el
(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 Dec 27, 2015
testing performance of filtering list for best match
View test_list_filter.py
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.)",
View command.txt
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"