Skip to content

Instantly share code, notes, and snippets.

View selenamarie's full-sized avatar

Selena Deckelmann selenamarie

View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>GeoJSON to Google Maps</title>
<style type="text/css">
#left{
width: 100%;
height: 500px;
float:left;
}
@selenamarie
selenamarie / imdb_data_has_no_api.py
Created March 20, 2011 05:40
and is formatted like crap. also, other things that suck.
#!/usr/bin/python -u
"""
Quickie demo of FTS - looking for instances of monkey and friend in the IMDB titles list
Have INSERT and COPY subroutines. Timing only for FTS portion of demo.
"""
import re
import psycopg2
@selenamarie
selenamarie / simpletree
Created May 26, 2011 17:05
simple binary tree implementation
class Tree:
def __init__(self):
self.left = None
self.right = None
self.operator = None
def to_array(self):
new_array = []
new_array.append(self.operator)
for node in [self.left, self.right]:
if isinstance(node, Tree):
@selenamarie
selenamarie / gist:993700
Created May 26, 2011 18:22
Setup for pgopen repo
Install easy_install from setuptools somewhow :)
Then:
# virtualenv ~/ENV/pgopen
# source ~/ENV/pgopen/bin/activate
# pip install -r pgopen/requirements/project.txt
... wait for a while ...
# easy_install pil
@selenamarie
selenamarie / todo.txt
Created June 4, 2011 22:47
pycon app refactor todos
event/templates/site_base.html - need to add EVENT_NAME and EVENT_YEAR to templates
event/templates/speakers/speaker_create_token.html - EVENT_NAME needed
event/templates/sponsors/index.html - EVENT_NAME needed
event/templates/emails/speaker_invite/message.html - fix
event/templates/emails/speaker_invite/subject.txt - fix
event/templates/emails/speaker_no_profile/message.html -fix
event/templates/emails/speaker_no_profile/subject.txt -fix
event/templates/emails/speaker_addition/message.html - refactor later
event/templates/emails/speaker_addition/subject.txt - model change
@selenamarie
selenamarie / gist:1148082
Created August 15, 2011 22:47
DBD::Oracle setup
Installed 64-bit Oracle client files including "base", "sqlplus" and "sdk" files from http://www.oracle.com/technetwork/database/features/instant-client/intel-macsoft-096467.html
Added to sudoers file:
Defaults env_keep += "ORACLE_HOME DYLD_LIBRARY_PATH"
Set these in ~/.bashrc and sourced it:
export ORACLE_HOME=/usr/local/instantclient_10_2
export DYLD_LIBRARY_PATH=/usr/local/instantclient_10_2:$DYLD_LIBRARY_PATH
Hacked up DBD::Oracle per http://blacka.com/david/2008/11/12/how-to-install-dbdoracle-on-mac-os-x/
@selenamarie
selenamarie / accepted_proposals
Created August 7, 2012 18:32
Accepted proposals chunk of code
from django.core.management.base import BaseCommand
from django.db import connections
from review.models import ProposalResult, promote_proposal
class Command(BaseCommand):
def handle(self, *args, **options):
accepted_proposals = ProposalResult.objects.filter(accepted=True)
@selenamarie
selenamarie / new_django.sh
Created August 11, 2012 17:48
create a new django project
# Setting up a new django project
PROJECT='newproject'
PROJECTDBUSER='newproject_www'
NEWAPP='newapp'
virtualenv ~/venv/$PROJECT
source ~/venv/$PROJECT/bin/activate
pip install django
@selenamarie
selenamarie / gist:3355230
Created August 15, 2012 02:51 — forked from garann/gist:3353532
Crowdsourced career mentorship for female developers

I was inspired by Selena Deckelmann's list of Career Resources for Women (http://www.chesnok.com/daily/career-resources-for-women/), but couldn't think of much to contribute. So I thought maybe those of us already in the field and in a position to mentor could work on creating more. Please fork or comment and add your own!

Applying for jobs

Interviewing

Professional behavior

@selenamarie
selenamarie / conf_org_handbook_list.txt
Created November 27, 2012 21:21
Conference organizer handbooks
Handbooks:
http://www.quirksmode.org/coh/
https://github.com/jnoller/conference
http://www.ieee.org/conferences_events/conferences/organizers/organizers_manual.html
http://www.ted.com/pages/organize_tedx_event
Event planning software:
http://gigaom.com/2010/07/15/eventware-a-roundup-of-software-for-event-planning/
Open Conference Ware