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 | |
dur=$1 | |
if [ "$dur" = "" -o ! -e "$dur" ]; then | |
echo "no package supplied" 1>&2 | |
exit 1 | |
fi | |
leadsize=96 | |
o=`expr $leadsize + 8` | |
set `od -j $o -N 8 -t u1 $dur` | |
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` |
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 python | |
get_lenlist = lambda input_data: dict([(key,max([len(str(key))]+[len(str(i[key])) for i in input_data])) for key in input_data[0].keys()]) | |
get_rowformat = lambda length_data: " | ".join('%%-%ss' % max_length for key, max_length in length_data.iteritems()) | |
get_divider = lambda length_data: "-|-".join("-"*max_length for key, max_length in length_data.iteritems()) | |
get_header = lambda length_data: get_rowformat(length_data) % tuple(length_data.keys()) | |
records = [ | |
{ 'name':'Billy Bob', 'Hobby': 'Guns'}, |
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
require 'formula' | |
class Weechat < Formula | |
homepage 'http://www.weechat.org' | |
url 'http://www.weechat.net/files/src/weechat-0.4.1.tar.bz2' | |
sha1 'a5185d6b8a2b330713ea354f06601a205270e3a2' | |
depends_on 'cmake' => :build | |
depends_on 'gnutls' | |
depends_on 'libgcrypt' |
NewerOlder