Skip to content

Instantly share code, notes, and snippets.

@vhata
vhata / scaleconf.py
Last active December 16, 2015 12:19 — forked from imsickofmaps/scaleconf.py
def join_channel(self, message):
yield self.redis.sadd(self.members_key, message.user())
yield self.reply_to(
message, 'You have joined Smitter! SMS "-" to leave, \
"? <num>" to invite, "@" to ask locations, \
"# <topic>" to broadcast subject')
def leave_channel(self, message):
yield self.redis.srem(self.members_key, message.user())
yield self.reply_to(
@vhata
vhata / sc-dl.js
Last active December 11, 2015 11:28 — forked from duncanbeevers/sc-dl-min.js
var $sounds = $(".sound");
var clientId = require("config").get("client_id");
var oauthToken = require("lib/connect").getAuthToken();
var conversionHelper = require("lib/helpers/conversion-helper");
var $downloadButton, size;
var params, downloadUrl, onSuccess;
for (i = $sounds.length - 1; i >= 0; i--) {
$sound = $($sounds[i]);
@vhata
vhata / gist:1186461
Created September 1, 2011 15:47 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away

Day job:

I am Operations Team Leader at Yola.com. We are a small team of four guys who are currently doing a complete re-platform to get rid of all the technical debt that has built up in the last three years. We're moving our code from svn to git, using chef on all our machines, and re-architecting all the services, and it's pretty exciting.

Favorite Python project:

Currently celery, the Distributed Task Queue (http://ask.github.com/celery/index.html). I'm replacing a lot of old crufty ways of running periodic jobs and getting background tasks done (sending to SQS, and then having a cron job sit and munch through the queue, for example) with a simple system of celery tasks. This way, each of our services can fire off a request to any one of the others that will get queued and dealt with at the target service's leisure, but we can also bring up a cluster of generic workers that can handle all of our other task requirements. I might be a little too starry-eyed about it