This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import re | |
import os | |
import sys | |
file_delimiter_regex = re.compile('.*?\=\=\> (.*?) \<\=\=\n') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import subprocess | |
DIRS_TO_SKIP = ['.fseventsd', '.Spotlight-V100'] | |
for (dirpath, dirnames, filenames) in os.walk(os.getcwd()): | |
should_skip = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PyPDF2==1.24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, argparse, itertools | |
operators = [ | |
('x', lambda x, y: x * y), | |
('+', lambda x, y: x + y), | |
('-', lambda x, y: x - y)] | |
def calculords_recurse(card, numbers, stack): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
libs=( "/usr/local/lib/libmacfuse_i32.2.dylib" \ | |
"/usr/local/lib/libosxfuse_i32.2.dylib" \ | |
"/usr/local/lib/libosxfuse_i64.2.dylib" \ | |
"/usr/local/lib/libmacfuse_i64.2.dylib" \ | |
"/usr/local/lib/libosxfuse_i32.la" \ | |
"/usr/local/lib/libosxfuse_i64.la" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
the three a's of awesome | |
the three a's of marriage | |
the three a's in a relationship | |
the three b's of baseball | |
the three c's of life | |
the three c's of a relationship | |
the three e's of sustainable development | |
the three e's of fire prevention | |
the three e's of leadership | |
the three f's of life |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -ne 2 ] | |
then | |
echo "Usage: sfq.sh <enable|disable> <device>" | |
exit 1 | |
fi | |
COMMAND=$1 | |
DEVICE=$2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from PIL import Image | |
import sys | |
im = Image.open(sys.argv[1]) | |
def scale_to_width(dimensions, width): | |
height = (width * dimensions[1]) / dimensions[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Allow breaking at both hyphens and spaces | |
\usepackage[hyphens,spaces]{url} | |
% A sequence of BigBreaks will be treated as one break, so it will only be able to break after :// | |
\renewcommand{\UrlBigBreaks}{\do\:\do\/} | |
% (Less aggressive) Treat both / and - as breakable characters (don't know why this does something different than hyphens in the package declaration, but it does) | |
\renewcommand{\UrlBreaks}{\do\/\do\-} | |
% (More aggressive) Any letter and / are treated as breakable characters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
int main(int argc, char **argv) { | |
sync(); | |
int fd = open("/proc/sys/vm/drop_caches", O_WRONLY); |