Skip to content

Instantly share code, notes, and snippets.

View rht's full-sized avatar

rht

  • ◊ Mars
View GitHub Profile
@rht
rht / gist:926185
Created April 18, 2011 21:10
Green function for hydrogen potential
http://books.google.com/books?id=cHR2gk5lDzIC&pg=PA123&lpg=PA123&dq=radial+green+function&source=bl&ots=QlurypxVgG&sig=SuUM3VfpKFMJTeVvNhDyuHRSnwY&hl=en&ei=DVqqTd-XJsjn0QHstdT5CA&sa=X&oi=book_result&ct=result&resnum=4&ved=0CCMQ6AEwAw#v=onepage&q&f=false
#references
#Time evolution
##Numerical approaches to time evolution of complex quantum systems
##introduces Crank-Nicolshon scheme
##http://www.sciencedirect.com/science/article/pii/S0375960109004927
from pylab import *
from fipy import *
from mpl_toolkits.mplot3d import Axes3D
### 2D lattice with B field transport
#1D chain toys.
from pyqm import *
import os, sys
import time
### Parameters:
L = 101 #mesh size
@rht
rht / trivial_file_upload_service.rb
Created March 1, 2012 03:31 — forked from gavinheavyside/trivial_file_upload_service.rb
Trivial file upload service using Sinatra
require 'rubygems'
require 'sinatra'
require 'fileutils'
# upload with:
# curl -v -F "data=@/path/to/filename" http://localhost:4567/user/filename
post '/:name/:filename' do
userdir = File.join("files", params[:name])
@rht
rht / peakdetect.py
Created April 14, 2012 18:21 — forked from sixtenbe/analytic_wfm.py
Peak detection in Python
import numpy as np
from math import pi, log
import pylab
from scipy import fft, ifft
from scipy.optimize import curve_fit
i = 10000
x = np.linspace(0, 3.5 * pi, i)
y = (0.3*np.sin(x) + np.sin(1.3 * x) + 0.9 * np.sin(4.2 * x) + 0.06 *
np.random.randn(i))
<p><strong>Adam Rodriguez, Cambridge, MA, United States, MIT Undergraduate student</strong></p>
<p><strong>Thomas Calahan, Cambridge, MA, USA, Martinos Center at MGH</strong> While MIT is not nearly as culpable as the lead prosecutor involved, MIT at this moment is able to play a more active role in making sure Aaron's legacy is not lost. If another SOPA/PIPA is introduced in congress and MIT is silent, I will know then that Aaron's courage and spirit has also died within all of us.</p>
<p><strong>Marcel Boris, Paris, France</strong></p>
<p><strong>Kevin Mark, Brooklyn, NY, USA</strong> do the right thing.</p>
<p><strong>Nicole Aptekar, San Francisco, Ca, USA</strong></p>
<p><strong>James Madden, Cambridge, MA, MCP 2010</strong></p>
<p><strong>Nick Janikian, Sparta, New Jersey, United States</strong> Aaron's family and friends deserve a proper and public apology.</p>
<p><strong>Janet Li, Boston, MA, USA, 2013</strong></p>
<p><strong>Colin Steinmann, Saint Paul, MN, USA</strong> It is the duty of an academic i
<p><strong>Adam Rodriguez, Cambridge, MA, United States, MIT Undergraduate student</strong></p>
<p><strong>Thomas Calahan, Cambridge, MA, USA, Martinos Center at MGH</strong> While MIT is not nearly as culpable as the lead prosecutor involved, MIT at this moment is able to play a more active role in making sure Aaron's legacy is not lost. If another SOPA/PIPA is introduced in congress and MIT is silent, I will know then that Aaron's courage and spirit has also died within all of us.</p>
<p><strong>Marcel Boris, Paris, France</strong></p>
<p><strong>Kevin Mark, Brooklyn, NY, USA</strong> do the right thing.</p>
<p><strong>Holly Durso, Alum</strong></p>
<p><strong>Nicole Aptekar, San Francisco, Ca, USA</strong></p>
<p><strong>Joanne Robb, Traverse City, MI, usa, just an average citizen stunned regarding the circumstances of death of this remarkable young man</strong></p>
<p><strong>James Madden, Cambridge, MA, MCP 2010</strong></p>
<p><strong>Nisha Gupta, Pittsburgh , PA, USA, none</strong></p>
<p><strong>Nick
import json
import re
petitions = json.load(open('aaronsw.json'))
#ntotal = 761
#nempty = 384
#wpcomment = 5
#nyan = 7 # by yan
sanitizedpetitions = []
msglength = []
Verifying that +rht is my Bitcoin username. You can send me #bitcoin here: https://onename.io/rht
[
{"csail": "https://github.com/csail",
"AI": {"Anyscale Learning For All (ALFA)": {"FlexGP": "https://github.com/flexgp"},
"Center for Biological and Computational Learning": "http://cbcl.mit.edu/projects/cbcl/software-datasets/index.html",
"Clinical Decision Making Group": {"i2b2": "https://www.i2b2.org/software"},
"Computation and Biology": null,
"Computational Biology": null,
"Computational Cognitive Science Group": null,
"Computational Genomics": null,
"Computer Graphics Group": null,