This file contains 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
# -*- coding: utf-8 -*- | |
from enum import Enum | |
import logging | |
logging.basicConfig(format='Enum: %(message)s', level=logging.DEBUG) | |
class ColorString(Enum): | |
""" Simple mapping""" |
This file contains 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/sh | |
# A git hook for including a commit message from | |
# the brilliant http://whatthecommit.com/ to your commit | |
# | |
# Usage: | |
# Put this script in $PROJECT/.git/hooks/prepare-commit-msg | |
# and set it to executable (u+x) | |
MSG=`curl -s http://whatthecommit.com/index.txt` | |
sed -i "1s/^/$MSG\n/" $1 |
This file contains 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 bash | |
if [ -z $1 ];then | |
echo "Usage: $0 DIR" | |
exit | |
fi | |
echo "Processing all files in $1" | |
cd $1 |
This file contains 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
function files = findRequiredFunctions(mainFun) | |
% FINDREQUIREDFUNCTIONS- solve file dependencies | |
% | |
% function files = findRequiredFunctions(mainFun) | |
% | |
% Find ALL files that are called by as function | |
% provided as MAINFUN, which are not part of the | |
% default Matlab installation. | |
% |
This file contains 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 | |
# | |
# DESCRIPTION | |
# | |
# Convert a(ny) file to a booklet for printing | |
# on an A4 duplex printer to save paper. | |
# By default the output is sent to the systems | |
# standard printer. | |
# | |
# Supports ps, pdf, dvi, and plain text. |