- Keynotes
- Building Leafy Chat, DjangoDose, and Hurricane, Lessons Learned on the Real-Time Web with Python by Alex Gaynor
- Python in the Browser by Jimmy Schementi
- Deployment, development, packaging, and a little bit of the cloud by Ian Bicking
This file contains hidden or 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
| #!/usr/bin/env python | |
| ''' | |
| simple_ftp_server.py | |
| Depends on pyftpdlib - http://code.google.com/p/pyftpdlib/ | |
| 2010-02-04 | |
| ''' | |
| from pyftpdlib import ftpserver | |
| authorizer = ftpserver.DummyAuthorizer() |
This file contains hidden or 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
| #!/bin/sh | |
| # tarit | |
| # tar a given directory with timestamp. | |
| fname=$1-`date +%Y-%m-%dT%H-%M`.tgz | |
| tar czvf $fname $1 | |
| echo | |
| echo $fname |
This file contains hidden or 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
| #!/usr/bin/env python3.1 | |
| print("ಕನ್ನಡದಲ್ಲಿ ಪೈಥಾನ್ ಪ್ರೊಗ್ರಾಮಿಂಗ್!") | |
| ಹೆಸರುಗಳು = ['ಪ್ರದೀಪ್', 'ನಯನ', 'ಸಿರಿ'] | |
| for ಹೆಸರು in ಹೆಸರುಗಳು: | |
| print('ಹಲೋ! ', ಹೆಸರು) | |
This file contains hidden or 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
| ./configure --prefix=$HOME/webapps/enerview --with-apr=$HOME/webapps/enerview/bin/apr-1-config \ | |
| --with-apr-util=$HOME/webapps/enerview/bin/apu-1-config --enable-mods-shared=all | |
| ./configure --prefix=$HOME/webapps/enerview --with-apxs=$HOME/webapps/enerview/bin/apxs --with-python=/usr/local/bin/python2.6 | |
| env CFLAGS=-I/usr/local/pgsql/include LDFLAGS=-L/usr/local/pgsql/lib python2.6 setup.py install --install-lib=$HOME/webapps/enerview/lib/python2.6 |
This file contains hidden or 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
| SELECT * INTO OUTFILE 'result.csv' | |
| FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' | |
| LINES TERMINATED BY '\n' | |
| FROM my_table; |
This file contains hidden or 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
| Sandwiches: | |
| * Jay's Cheesesteaks (many seitan flavors) | |
| * Ike's Place (tons of amazing veggie sandwiches) | |
| * Toaster Oven (Potbelly's clone) | |
| Mexican: | |
| * Papalote (their house salsa is the best IN THE WORLD) | |
| * El Buen Sabor (my favorite super veggie burrito) | |
| * Taqueria Cancún (classic mission burrito; open till 2am on fri/sat, 1am other days, I think) |
This file contains hidden or 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
| /** | |
| * A simple preforking echo server in C. | |
| * | |
| * Building: | |
| * | |
| * $ gcc -Wall -o echo echo.c | |
| * | |
| * Usage: | |
| * | |
| * $ ./echo |
setenv ipaddr 10.1.7.68 tftp 0x31000000 10.1.7.66:gpe-image-micro2440.jffs2 nand write.jffs2 0x31000000 root ${filesize} setenv bootargs console=ttySAC0,115200 ip=10.1.7.69 gw=10.1.7.1 mask=255.255.255.0 root=/dev/mtdblock3 mini2440=1tb rootdelay=3 noinitrd setenv bootcmd 'nboot.e kernel ; bootm'
;;rootfstype=jffs2 ;; init=/linuxrc
This file contains hidden or 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
| from datetime import datetime, timedelta | |
| yesterday = (datetime.now() - timedelta(days=1)).strftime('%Y-%m-%d') | |
| today = datetime.now().strftime('%Y-%m-%d') |