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
# Maintainer: Daniel Nagy <danielnagy at gmx de> | |
_hkgname=json | |
pkgname=haskell-json | |
pkgver=0.9.1 | |
pkgrel=1 | |
pkgdesc="Support for serialising Haskell to and from JSON" | |
url="http://hackage.haskell.org/package/${_hkgname}" | |
license=(custom:BSD3) | |
arch=('i686' 'x86_64') |
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 | |
lines = open("data.txt").readlines() | |
total = 0 | |
cnt = 1 | |
print '{\n "values": {' | |
for marker in lines[1].split(): | |
name = lines[0][total:total + len(marker)].strip() | |
val = lines[2][total:total + len(marker)].strip() | |
print ' "%s": %2.2f,' % (name, float(val)) |
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
import SCons.Defaults | |
import SCons.Builder | |
OriginalShared = SCons.Defaults.SharedObjectEmitter | |
OriginalStatic = SCons.Defaults.StaticObjectEmitter | |
def DoLint(env, source): | |
for s in source: | |
env.Lint(s.srcnode().path + ".lint", s) |
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 | |
exec scala -deprecation -savecompiled "$0" "$@" | |
!# | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.FileReader; | |
import java.io.InputStream; | |
import java.io.IOException; | |
import java.net.URL; | |
import java.util.regex.Pattern; |
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 | |
# script to download mp3s from podiobooks.com | |
wget $1 -O index.html | |
awk '/http:\/\/.*mp3/ {print}' index.html | sed 's%.*\(http://.*\.mp3\).*%\1%g' |\ | |
while read line | |
do | |
filename=$(basename $line) |
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
# Eclipse CDT 5.0 generator for Waf http://code.google.com/p/waf/ | |
# New BSD License | |
import sys | |
import os | |
import Utils | |
import Logs | |
from Constants import APPNAME | |
from xml.dom.minidom import Document | |
import Options |
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
# http://henrik.nyh.se/2008/12/git-dirty-prompt | |
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
# username@Machine ~/dev/dir[master]$ # clean working directory | |
# username@Machine ~/dev/dir[master*]$ # dirty working directory | |
function parse_git_dirty { | |
git diff --quiet HEAD &>/dev/null | |
[[ $? == 1 ]] && echo "*" | |
} | |
function parse_git_branch { |