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 | |
develop-eggs | |
.installed.cfg | |
.mr.developer.cfg | |
*.egg-info | |
*.pyc | |
parts |
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 | |
develop-eggs | |
.installed.cfg | |
.mr.developer.cfg | |
*.egg-info | |
*.pyc | |
parts |
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 | |
# -*- coding: utf-8 -*- | |
__docformat__ = 'restructuredtext en' | |
from datetime import datetime | |
class Foo(object): | |
def test(self): | |
print repr(datetime) | |
# vim:set et sts=4 ts=4 tw=80: |
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 | |
URL="$1" | |
extract() { | |
local url=$1 | |
python << EOF | |
import urlparse | |
u = '$url' | |
pu = urlparse.urlparse(u) | |
netloc = pu.netloc |
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 | |
# -*- coding: utf-8 -*- | |
__docformat__ = 'restructuredtext en' | |
import spynner | |
import os | |
import sys | |
class CSCCAuthenticationError(Exception):pass | |
timeout=60 |
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 | |
cd ecws || exit -1 | |
out=../out | |
warp() { | |
echo gdalwarp $WRAP_OPTS -s_srs EPSG:2154 -of "$1" "$2" "$3" | |
gdalwarp $WRAP_OPTS -s_srs EPSG:2154 -of "$1" "$2" "$3" | |
if [[ $? != 0 ]];then exit -1;fi | |
} | |
translate() { | |
echo gdal_translate $TRANSLATE_OPTS -of "$1" "$2" "$3" |
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
from collections import OrderedDict | |
import itertools | |
from random import shuffle, randint | |
import re | |
from sets import Set | |
def f1(seq): # Raymond Hettinger | |
# not order preserving | |
set = {} | |
map(set.__setitem__, seq, []) |
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 | |
''' | |
calculate from 1 minion to NB_MINIONS the time | |
to parse the output states dictionnary results | |
python -m cProfile -o outfile.stat ./saltperf.py;pyprof2calltree -i outfile.stat -o outfile.pstat | |
''' | |
from __future__ import (absolute_import, division, |
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
#include <netdb.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#define CANARY "in_the_coal_mine" | |
struct { | |
char buffer[1024]; |
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 subprocess | |
class ProcessError(IOError): | |
pass | |
def cmdrun(cli, | |
debug=False, | |
shell=True, |
OlderNewer