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
#!/bin/bash | |
N=`ps ax | grep PROCESS | wc -l` #this will be 2+the number of PROCESSes running | |
while true | |
do | |
while [ "$N" -lt "THRESHOLD+2" ] | |
do | |
PROCESS & | |
done |
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
from matplotlib import rc | |
#Before you generate your plots, set up fonts correctly | |
pspdf = {'fonttype':42} | |
text = {'usetex':True} | |
rc('ps', **pspdf) | |
rc('pdf', **pspdf) | |
rc('text', **text) |
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
#!/bin/bash | |
for i in `seq 2005 2006` | |
do | |
for j in `seq 1 12` | |
do | |
for k in `seq 1 31` | |
do | |
fname=`printf "%4d%02d%02d.mp3\n" $i $j $k` | |
wget http://www.apreche.net/~rym/podcast/$fname | |
done |
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
//Vim code cell customization | |
$('<link/>', { | |
rel: 'stylesheet', | |
type: 'text/css', | |
href: '/static/components/codemirror/addon/dialog/dialog.css' | |
}).appendTo('head'); | |
$.getScript('/static/components/codemirror/keymap/vim.js'); | |
$.getScript('/static/components/codemirror/addon/search/searchcursor.js'); | |
$.getScript('/static/components/codemirror/addon/dialog/dialog.js'); | |
$([IPython.events]).on('app_initialized.NotebookApp', function(){ |