This file contains 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
import elementtree.ElementTree as ET | |
# build a tree structure | |
root = ET.Element("html") | |
head = ET.SubElement(root, "head") | |
title = ET.SubElement(head, "title") | |
title.text = "Page Title" |
This file contains 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
<script type="text/javascript" | |
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> |
This file contains 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
$ WARNING: The vboxdrv kernel module is not loaded. Either there is no module | |
available for the current kernel (2.6.32-34-server) or it failed to | |
load. Please recompile the kernel module and install it by | |
sudo /etc/init.d/vboxdrv setup | |
You will not be able to start VMs until this problem is fixed. |
This file contains 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
syntax on | |
filetype on | |
set encoding=utf8 | |
" set paste // disabled set paste because it interferes with snippets | |
set expandtab | |
" enable softwrap | |
set wrap linebreak textwidth=0 | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 |
This file contains 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
# deb cdrom:[Ubuntu 10.04.3 LTS _Lucid Lynx_ - Release amd64 (20110720.1)]/ lucid main restricted | |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted | |
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. |
This file contains 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
############################################################################# | |
# Portion Package Manager Manifest | |
############################################################################## | |
############################################################################## | |
# Autoconfiguration Variables | |
############################################################################## | |
# name of package | |
$package=bbblitz |
This file contains 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 bash | |
apt-get -y install build-essential python-dev python-setuptools python-pip python-tk | |
apt-get -y install gfortran libatlas-base-dev libfreetype6-dev libpng12-dev tk-dev tk8.5-dev | |
apt-get -y install python-dateutil | |
pip install numpy | |
pip install scipy | |
pip install pandas | |
pip install matplotlib |
This file contains 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 | |
def do_something(): | |
print "I'm doing something!" | |
if __name__ == "__main__": | |
print "hello, from Asset.py" |
This file contains 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 bash | |
# Note that you can augment this path with additional folders separated with ":" (colons) | |
# for example export PYTHONPATH=$HOME/hgdev/org.bitbucket/nkabir/pywork:/usr/local/python | |
export PYTHONPATH=$HOME/hgdev/org.bitbucket/nkabir/pywork | |
ipython |
This file contains 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 | |
import sys | |
if __name__ == "__main__": | |
print sys.argv |
OlderNewer