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
# Installing things takes a while. Skip if if nothing has changed. | |
# jenkins requires things to be html escaped to work properly, hence the weird command below | |
VENV_DIR=`md5sum requirements/* | md5sum 2>&1 | awk '{print $1}'` | |
if [ -e $VENV_DIR ]; then | |
. /tmp/$VENV_DIR/bin/activate | |
else | |
virtualenv --no-site-packages /tmp/$VENV_DIR | |
. /tmp/$VENV_DIR/bin/activate | |
pip install --download-cache /var/lib/jenkins/.pip_download_cache -r requirements/ci.txt | |
fi |
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
description "autoreply - twitter bot which redirects users to new acccount" | |
author "Justin Abrahms <justin@abrah.ms>" | |
start on (local-filesystems and net-device-up IFACE!=lo) | |
stop on runlevel [!2345] | |
respawn | |
env LOGFILE=/srv/justinlilly-autoreply/history.json | |
env ENV_ROOT=/srv/justinlilly-autoreply/env | |
env APP_ROOT=/srv/justinlilly-autoreply/autoreply |
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
Hey, | |
I just want to say thanks so much for getting in touch. While I'm not | |
looking for work directly at this moment, I do think a partnership | |
could be possible. Have you seen https://sprint.ly/ ? Its a really | |
great, next-gen project management tool that helps connect business | |
users to developers in ways that make sense to both sides. Maybe your | |
company or a company you know might be able to make use of it? There | |
are a great number of companies already shipping great software with | |
it and there is a 30 day free trial, no questions asked. |
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
[{ | |
"environment": "staging", | |
"items": [{ | |
"status": "completed", | |
"product": { | |
"archived": false, | |
"id": 1, | |
"name": "sprint.ly" | |
}, | |
"description": "http://support.sprint.ly/discussions/problems/222-not-sure-what-some-things-mean", |
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
{ | |
"environment": "staging", | |
"items": [{ | |
"status": "completed", | |
"product": { | |
"archived": false, | |
"id": 1, | |
"name": "sprint.ly" | |
}, | |
"description": "http://support.sprint.ly/discussions/problems/222-not-sure-what-some-things-mean", |
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
(defun jump-to-next-char (c &optional count) | |
"Jump forward or backward to a specific character. With a | |
count, move that many copies of the character." | |
(interactive "cchar: \np") | |
(when (string= (string c) (buffer-substring (point) (+ 1 (point)))) | |
(setq count (+ 1 count))) | |
(and | |
(search-forward (string c) nil t count) | |
(> count 0) |
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
// Make a single api call to meetup.com and grab event info for all (11) PyLadies locations. Create individual objects for each so that meetups can be added to each pyladies group's div on pyladies.com/locations page. | |
//helper function to discover event urls and make active links | |
//credit to http://www.sencha.com/forum/archive/index.php/t-12379.html for code this is based on | |
function create_urls(input) { | |
return input | |
.replace(/(ftp|http|https|file):\/\/[\S]+(\b|$)/gim, '"$&" target="_blank"') | |
.replace(/([^\/])(www[\S]+(\b|$))/gim, '"http://$2" target="_blank"'); | |
} //end url parsing helper function |
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
class Parent(Model): | |
model_type = StringType(required=True) | |
class Person(Parent): | |
name = StringType() | |
class Item(Parent): | |
description = StringType() | |
class Container(Model): |
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
class ActivityCollector(object): | |
""" | |
The goal of this class is to take Activity objects and output a data | |
structure like this: | |
{ | |
'people': { | |
'justinabrahms': { | |
'orphan_events': [ | |
'WatchEvent': [..watches..], |
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
class UserLog(object): | |
""" | |
Simple log that will output specially formatted user id for logging | |
purposes. | |
-1 is used as a sentinal value to mean "no user". Otherwise, the user's `pk` | |
attribute is logged instead. | |
An explicit decision was made not to use a LoggerAdapter with a custom | |
format string because if we attach it to something that isn't the logger |