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
### Keybase proof | |
I hereby claim: | |
* I am rudigiesler on github. | |
* I am rudigiesler (https://keybase.io/rudigiesler) on keybase. | |
* I have a public key ASCEgcMpBfidxz6hljuQPjQkN93h_PGlDMG-dL75FjLq7Ao | |
To claim this, I am signing this object: |
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 codecs | |
import locale | |
import sys | |
from twython import TwythonStreamer | |
TWITTER_APP_KEY = 'UGNwrWwBnxyBQSNC4qvWEr1rh' | |
TWITTER_APP_KEY_SECRET = 'lcanUrMAoSjFEu0zii8Pcp7z2J6ksmlhESKqhOwcvpkf7ypADq' | |
TWITTER_ACCESS_TOKEN = '2858511651-eOJXOAH6tnGh0TvfX1WbABK3QScUhtMNywWgzDg' | |
TWITTER_ACCESS_TOKEN_SECRET = 'jO0NUs8zeTv00Nq4qCF7YIJ08u2c3wboj3aofFS5FtRVj' |
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 docker run -it -p 8123:8123 -p 8124:8124 debian:wheezy /bin/bash | |
apt-get update | |
apt-get install redis-server rabbitmq-server python python-dev python-setuptools libffi-dev | |
easy_install pip virtualenv | |
virtualenv ve | |
source ve/bin/activate | |
pip install junebug | |
service redis-server start | |
service rabbitmq-server start | |
jb -i 0.0.0.0 -p 8123 |
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/package.json b/package.json | |
index 69c2a4e..87e5cd8 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -2,7 +2,7 @@ | |
"name": "go-jsbox-ona", | |
"version": "0.0.2a", | |
"description": "A vumi jsbox helper library for interacting with Ona", | |
- "main": "lib/index.js", | |
+ "main": "src/index.js", |
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
+ it('should fire the metrics for each new user', function() { | |
+ return tester | |
+ .inputs( | |
+ {from_addr: '+271234', content: null}, | |
+ {from_addr: '+274321', content: null}) | |
+ .check(function(api, im , app) { | |
+ metrics = api.metrics | |
+ .stores['metricsHelper-tester'].uniqueUsers; | |
+ assert.deepEqual( | |
+ metrics, {agg: 'sum', values: [1]}); |
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
[ | |
{ | |
"en": "Broken toilet", | |
"zh": "Aphukileyo indlu yangasese", | |
"value": "broken_toilet" | |
}, | |
{ | |
"en": "Broken sink", | |
"zh": "Aphukileyo isitya", | |
"value": "broken_sink" |
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
max_contacts_per_page: 5 | |
max_groups_per_page: 5 | |
riak_manager: {bucket_prefix: test} |
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/go_contacts/backends/groups.py b/go_contacts/backends/groups.py | |
index bf8638a..cc431b1 100644 | |
--- a/go_contacts/backends/groups.py | |
+++ b/go_contacts/backends/groups.py | |
@@ -147,6 +147,7 @@ class RiakGroupsCollection(object): | |
max_results = max_results or float('inf') | |
max_results = min(max_results, self.max_groups_per_page) | |
+ # Encoding and decoding are the same operation | |
cursor = self._encode_cursor(cursor) |
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
$ git checkout develop | |
$ git tag | |
go-contacts-0.1.0a | |
go-contacts-0.1.1 | |
go-contacts-0.1.2 | |
$ SERIES=0.1.x | |
$ VER=0.1.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
diff --git a/modules/vumigo/files/dialogue_application.yaml b/modules/vumigo/files/dialogue_application.yaml | |
index 1e47823..c635a57 100644 | |
--- a/modules/vumigo/files/dialogue_application.yaml | |
+++ b/modules/vumigo/files/dialogue_application.yaml | |
@@ -12,7 +12,7 @@ riak_manager: &RIAK | |
env: | |
NODE_PATH: "/usr/lib/node_modules:/usr/local/lib/node_modules" | |
-app_context: "{require: function(m) { if (['moment', 'url', 'querystring', 'crypto', 'lodash', 'q', 'jed', 'libxmljs', 'zlib', 'vumigo_v01', 'vumigo_v02'].indexOf(m) >= 0) return require(m); return null; }, Buffer: Buffer}" | |
+app_context: "{require: function(m) { if (['moment', 'url', 'querystring', 'crypto', 'lodash', 'q', 'jed', 'libxmljs', 'zlib', 'vumigo_v01', 'vumigo_v02', 'go-jsbox-location'].indexOf(m) >= 0) return require(m); return null; }, Buffer: Buffer}" |
NewerOlder