Skip to content

Instantly share code, notes, and snippets.

View ukanga's full-sized avatar

Ukang'a Dickson ukanga

View GitHub Profile
# RapidSMS configuration file.
# -- RAPIDSMS
#
# The main configuration of the RapidSMS server. It contains a list of
# apps and backends to run, which can be names of app classes, or (in the
# case of multiple apps or backends of the same type) names for apps of
# the same type (see APPS and BACKENDS sections below).
#
# apps=[app1,app2,app3,...] * comma-separated list of apps to load
@ukanga
ukanga / install.ini
Created November 10, 2009 18:12 — forked from rgaudin/install.ini
# Example setup configuration file
[main]
url=git://github.com/mvpdev/rapidsms.git
name=sms
rev=HEAD
[rapidsms]
url=git://github.com/rapidsms/rapidsms.git
name=rapidsms-git
diff --git a/CMYKProjectManager/CMYKProjectManager.py b/CMYKProjectManager/CMYKProjectManager.py
index a3bdc0c..0cd5a20 100644
--- a/CMYKProjectManager/CMYKProjectManager.py
+++ b/CMYKProjectManager/CMYKProjectManager.py
@@ -119,7 +119,7 @@ class CMYKProjectManager:
self.getProjectsList()
def set_model(self):
- self.tree_parser.ls.set_sort_func(0, self.tree_parser.sort_tree)
+ #self.tree_parser.ls.set_sort_func(0, self.tree_parser.sort_tree)
diff --git a/CMYKProjectManager/simple_tree_parser.py b/CMYKProjectManager/simple_tree_parser.py
index 74ed815..d171627 100644
--- a/CMYKProjectManager/simple_tree_parser.py
+++ b/CMYKProjectManager/simple_tree_parser.py
@@ -34,7 +34,7 @@ class TreeParser():
def scanPath(path,c_iter):
if(path == ''): return False
- for infile in os.listdir(path):
+ for infile in sorted(os.listdir(path)):
#!/usr/bin/python
###
### START - SETUP RAPIDSMS ENVIRONMENT
###
import sys, os
from os import path
# figure out where all the extra libs (rapidsms and contribs) are
// 1: how could you rewrite the following to make it shorter?
if (foo) {
bar.doSomething(el);
} else {
bar.doSomethingElse(el);
}
@ukanga
ukanga / countryinfo.py
Created October 7, 2011 18:35 — forked from pamelafox/countryinfo.py
Python list of country codes, names, continents, capitals, and pytz timezones
countries = [
{'timezones': ['Europe/Andorra'], 'code': 'AD', 'continent': 'Europe', 'name': 'Andorra', 'capital': 'Andorra la Vella'},
{'timezones': ['Asia/Kabul'], 'code': 'AF', 'continent': 'Asia', 'name': 'Afghanistan', 'capital': 'Kabul'},
{'timezones': ['America/Antigua'], 'code': 'AG', 'continent': 'North America', 'name': 'Antigua and Barbuda', 'capital': "St. John's"},
{'timezones': ['Europe/Tirane'], 'code': 'AL', 'continent': 'Europe', 'name': 'Albania', 'capital': 'Tirana'},
{'timezones': ['Asia/Yerevan'], 'code': 'AM', 'continent': 'Asia', 'name': 'Armenia', 'capital': 'Yerevan'},
{'timezones': ['Africa/Luanda'], 'code': 'AO', 'continent': 'Africa', 'name': 'Angola', 'capital': 'Luanda'},
{'timezones': ['America/Argentina/Buenos_Aires', 'America/Argentina/Cordoba', 'America/Argentina/Jujuy', 'America/Argentina/Tucuman', 'America/Argentina/Catamarca', 'America/Argentina/La_Rioja', 'America/Argentina/San_Juan', 'America/Argentina/Mendoza', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Ushuai
@ukanga
ukanga / ssh-copy-id
Created February 23, 2012 19:02 — forked from ambethia/ssh-copy-id
`ssh-copy-id` on OS X
sudo curl "http://gist.github.com/raw/372696/bffde4ea5cf23eebd8b0f4ee15708a0a9d0af7f5/ssh-copy-id" -o /usr/local/sbin/ssh-copy-id
sudo chmod +x /usr/local/sbin/ssh-copy-id
---
title: "Example of using Ona.R"
author: Ukang'a Dickson
date: "`r format(Sys.time(), '%B %d, %Y')`"
output: html_document
---
An example of using ona.R.
Load ona.R library.
@ukanga
ukanga / .Xdefaults
Created September 18, 2016 18:35 — forked from yevgenko/.Xdefaults
URxvt settings with solarized theme
!-------------------------------------------------------------------------------
! Xft settings
!-------------------------------------------------------------------------------
Xft.dpi: 96
Xft.antialias: false
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight