Snippets

Posted by: barbara | Date: Feb 11, 2013 | Category:

Python

print line numbers in a Python script:

 import sys frame = sys._getframe() print frame.f_lineno 

Python - date from Unix timestamp

 import datetime print(datetime.datetime.fromtimestamp(int("1284101485")).strftime('%Y-%m-%d %H:%M:%S')) 

Django

get a list of all available subcommands:

 python manage.py help 

cmd line

...

Read More

Git/GitHub Micro Workshop

Posted by: barbara | Date: Feb 04, 2013 | Category: Girl Geeks Git

Back on January 29th, PyLadies Austin held a micro workshop to cover Git/GitHub.

http://www.meetup.com/PyLadies-ATX/events/99435462/

It was a quick hands-on introduction to the core features of Git, as well as some of the things you can do with GitHub. The group was very small (just six people) and informal. It ...

Read More

PyCon 2013: Young Coder "Lets Learn Python" Tutorial

Posted by: barbara | Date: Jan 28, 2013 | Category: PyCon

At PyCon 2013, I'll be participating in my first-ever tutorial, helping Katie Cunningham as we introduce 12- to 18-year-olds to the world of Python coding.

From the official description:

    "This free tutorial will explore how to program using Python by making games. The workshop will start with learning Python's simple ...

    Read More

PyLadies Austin In 2013

Posted by: barbara | Date: Jan 10, 2013 | Category: Python

This year is shaping up to be a busy one. On my arrival in Austin I founded a PyLadies chapter, and our first meeting is scheduled for tonight. We'll be doing a round of introductions, then brainstorming about what projects we'd like to get to work on in ...

Read More

Happy New Year!

Posted by: barbara | Date: Dec 31, 2012 | Category: Personal

At the end of every year I see people saying something like "Good riddance, Year X, you sucked, let's hope Year Y brings something better." I've got good reason to say something like that as well - this year brought something pretty big and awful with it. But it also ...

Read More