Skip to content

Instantly share code, notes, and snippets.

View danabauer's full-sized avatar

Dana Bauer danabauer

  • Philadelphia
  • 02:26 (UTC -04:00)
View GitHub Profile
@danabauer
danabauer / eyeo-job-titles.md
Last active June 13, 2017 08:01
Job titles at the 2012 Eyeo Festival

Job titles at Eyeo 2012

  • computational designer
  • computational graphics designer
  • computational artist
  • computational data artist
  • computational botanist
  • critical engineer
  • data philospher
  • a truth and beauty operator
@danabauer
danabauer / date2-csv.py
Created September 2, 2015 06:10
more date parsing of OSS sign-up data
import datetime
import csv
if __name__ == '__main__':
from_raw = raw_input('\nEnter FROM Date (e.g. 01-Nov-14) :')
from_date = datetime.date(from_raw.split('-'))
print 'From date: = ' + str(from_date)
to_raw = raw_input('\nEnter TO Date (e.g. 25-Nov-14) :')
to_date = datetime.date(to_raw.split('-'))
@danabauer
danabauer / date-csv.py
Created September 2, 2015 04:50
parsing dates in open source program csv
import datetime
import csv
if __name__ == '__main__':
from_raw = raw_input('\nEnter FROM Date (e.g. 2013-11-29) :')
from_date = datetime.date(*map(int, from_raw.split('-')))
print 'From date: = ' + str(from_date)
to_raw = raw_input('\nEnter TO Date (e.g. 2013-11-30) :')
to_date = datetime.date(*map(int, to_raw.split('-')))
@danabauer
danabauer / deploying-apps.txt
Created September 2, 2015 04:48
Links to tutorials on deploying Flask and Django apps
nginx vs apache
https://anturis.com/blog/nginx-vs-apache/
uWSGI vs. Gunicorn
http://blog.kgriffs.com/2012/12/18/uwsgi-vs-gunicorn-vs-node-benchmarks.html
Deploying Django
http://www.djangobook.com/en/2.0/chapter12.html
Django - uWSGI - nginx
@danabauer
danabauer / anagram.py
Last active March 17, 2021 14:29
PL coding test
#!/usr/bin/env python
'''
An anagram is a word formed by rearranging the letters of another, like "topside" and "deposit". In some cases, there might be as many (or more) anagrams than there are characters, like "post", "spot", "stop" and "tops".
Write a program to find all of the anagrams in a dictionary in which there are at least 4 letters in the word and at least as many anagrams as there are letters.
The dictionary will be a file on disk with one line per word. Your operating system likely already has such a file in /usr/dict/words or /usr/share/dict/words.
The output produced by your code should be in this format:
emit, item, mite, time
merit, miter, mitre, remit, timer
@danabauer
danabauer / app-on-os-wksp.md
Last active March 17, 2021 14:29
Stickie feedback from first half of Apps on OpenStack workshop at QConNewYork

###Green stickies (things that went well and things they learned)

  • "Good session"
  • "first half was detailed"
  • "required more than 3 hours"
  • "overall 5"
  • "hands on approach is great!"
  • "very clear instructions"
  • "easy copy/paste instructions"
  • "small group helps with personal assistance"
  • "helpers are friendly, energetic, and helpful"

###Prerequisites:

  • Terminal for Mac/Linux or Command Prompt for Windows. SSH installed.
  • Solid understanding of how to use the command line when developing software.
  • Familiarity with git/GitHub.
  • No experience with OpenStack necessary.
  • Familiarity with Python is helpful, but you don't have to be a Python developer to participate.

###What to bring:

  • Laptop.
  • GitHub account.

##Conference talks/workshops accepted goal: give three conference talks/workshops/posters in 2015

  • Teach Python 101 (lead teacher) workshop at Pycon 2015
  • Teach Python for Data Analysis (TA) workshop at Pycon 2015
  • Teach Cloudpipe (TA/co-teach) workshop at Pycon 2015
  • Keynote at PyData Dallas, April 24-26, 2015
  • Deploying apps on OpenStack at QCon NYC on June 8-9
  • Hack for Humanity at Grace Hopper Conferece (leading an OpenStack team with Egle Sigler), October 2015

##Conference talk/workshop/poster proposals

I want people to use existing Python libraries available now (multivac) to run a function remotely on the cloud. We already have some sample code. Process data remotely.

Presentation will be in a notebook. Then we can run the code from the notebook.

Go through cloudpipe setup and put together some examples. Put together an outline that makes sense to me from our docs. Find examples I can think of. Calculating pi and addition.

Real world use cases are a little different. You have a workload that you need to run. Like Travis, when you ask for work not when you make a commit.

@danabauer
danabauer / data-explorer-perioscopic.md
Last active June 13, 2017 08:07
This is an interesting job description that Periscopic posted a few years ago.

Data Explorer role at Periscopic

We are seeking a Data Explorer to join our amazing team. Qualified people will specifically have experience with visually making sense of data. Must be ravenously curious, logical, organized, a good communicator, unafraid of sharing half-baked ideas, and dedicated to good data science practices.

What the heck is a Data Explorer? It’s a person who can wander in the weeds of data and pull out the salient points. It’s a person with equal parts art and science – someone who can think creatively about data in order to distill it, draw out its essence, and communicate it.

This person works closely with our strategic and design teams to iterate on findings and visual concepts. They are on the front-line of each project, using the raw materials to define the shape of the data narrative. This includes data wrangling (gathering, parsing, cleaning, etc.), database design, visual analysis, and presenting findings to the team.

Even though this person is