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
# 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 |
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
# 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 |
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
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) |
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
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)): |
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/python | |
### | |
### START - SETUP RAPIDSMS ENVIRONMENT | |
### | |
import sys, os | |
from os import path | |
# figure out where all the extra libs (rapidsms and contribs) are |
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
// 1: how could you rewrite the following to make it shorter? | |
if (foo) { | |
bar.doSomething(el); | |
} else { | |
bar.doSomethingElse(el); | |
} | |
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
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 |
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
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 |
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
--- | |
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. |
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
!------------------------------------------------------------------------------- | |
! Xft settings | |
!------------------------------------------------------------------------------- | |
Xft.dpi: 96 | |
Xft.antialias: false | |
Xft.rgba: rgb | |
Xft.hinting: true | |
Xft.hintstyle: hintslight |
OlderNewer