Skip to content

Instantly share code, notes, and snippets.

@dandye
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dandye/8699875 to your computer and use it in GitHub Desktop.
Save dandye/8699875 to your computer and use it in GitHub Desktop.
Next Python Meeting
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![Alt text](http://googledrive.com/host/0B2OlAVh0ubI_T01ZSTNpVmdUVG8/pybulls-logo.png)\n"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import datetime\n",
"import json\n",
"\n",
"meeting_details = {\"Location\":\"HMS219 (Architecture Bld)\", \n",
" \"Date\": datetime.datetime(2014,2,5,17,30).strftime(\"%A, %B %d, %Y %I:%M%p\") + \"-7:30PM\",\n",
" \"Topic\": \"Teach me Flask (lightweight Python web framework)\" }\n",
"print json.dumps(meeting_details, sort_keys=True, indent=4, separators=(',', ': '))"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"{\n",
" \"Date\": \"Wednesday, February 05, 2014 05:30PM-7:30PM\",\n",
" \"Location\": \"HMS219 (Architecture Bld)\",\n",
" \"Topic\": \"Teach me Flask (lightweight Python web framework)\"\n",
"}\n"
]
}
],
"prompt_number": 1
}
],
"metadata": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment