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 | |
# -*- coding: utf-8 -*- | |
# vim: ai ts=4 sts=4 et sw=4 nu | |
import os | |
import sys | |
import subprocess | |
VOLUME_SRC = os.getcwd() # "~/src/gutenberg" | |
VOLUME_DST = "/data" |
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/sh | |
### | |
# kiwix-serve helper for Cybook Odyssey | |
# | |
# launch upon mount/unmount event of the SD card and at boot time. | |
# - tries to kill a runnning kiwix-serve | |
# - tries to launch kiwix-serve if a library file is present | |
# | |
### |
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
From 768f7cfd8af94dfdad250ef1ecbd0f57b389c360 Mon Sep 17 00:00:00 2001 | |
From: renaud gaudin <[email protected]> | |
Date: Fri, 9 Aug 2013 13:02:21 +0800 | |
Subject: [PATCH] minor patch to allow autogen to work on OSX (requires | |
glibtoolize instead of libtoolize) | |
--- | |
zimlib/autogen.sh | 9 ++++++++- | |
1 file changed, 8 insertions(+), 1 deletion(-) |
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 | |
# -*- coding: utf-8 -*- | |
# vim: ai ts=4 sts=4 et sw=4 nu | |
''' Example Kannel Service Gateway for use with Formhub | |
This gateway will receive a message from Kannel and forward it to | |
the Formhub SMS API. | |
The Formhub SMS API will reply with a status for the submission and | |
a text message for the end user. |
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 | |
# -*- coding: utf-8 -*- | |
# vim: ai ts=4 sts=4 et sw=4 nu | |
''' Example RapidSMS Handler for use with Formhub | |
This handler will receive a message from RapidSMS and forward it to | |
the Formhub SMS API. | |
The Formhub SMS API will reply with a status for the submission and | |
a text message for the end user. |
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 | |
# -*- coding: utf-8 -*- | |
# vim: ai ts=4 sts=4 et sw=4 nu | |
import uuid | |
import csv | |
import codecs | |
import cStringIO |
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 | |
# -*- coding: utf-8 -*- | |
# vim: ai ts=4 sts=4 et sw=4 nu | |
from microsite.formhub import (submit_xml_forms_formhub_raw, | |
ErrorUploadingDataToFormhub, | |
ErrorMultipleUploadingDataToFormhub) | |
submission_target_user = 'reg' | |
submission_url = 'http://formhub.org/%s/submission' % submission_target_user |
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 | |
# -*- coding: utf-8 -*- | |
# vim: ai ts=4 sts=4 et sw=4 nu | |
import uuid | |
import copy | |
from collections import OrderedDict | |
import pandas as pd |
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 sys | |
import tempfile | |
import datetime | |
os.environ['DJANGO_SETTINGS_MODULE'] = os.environ.get('DJANGO_SETTINGS_MODULE', | |
'settings') |
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 random | |
CHARS = "abcdefghijklmnopqrstuvwxyz12345679ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
SPID_LEN = 6 | |
def generate_spid(country_code='US'): | |
''' Generate a SPID_LEN random string prefix with XX- with XX as country ''' |