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
# -*- coding: utf8 -*- | |
from google.appengine.ext import webapp | |
from google.appengine.ext.webapp.util import run_wsgi_app | |
from google.appengine.api import urlfetch | |
from google.appengine.ext import db | |
from google.appengine.api import mail | |
from google.appengine.api.labs import taskqueue | |
from BeautifulSoup import BeautifulStoneSoup | |
import string |
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/sh | |
help () { | |
echo "Usage: `basename $0` [-h] [-n] [-a] [-s hh:mm:ss] [-d ss] [-w px] [-f n] [-S n] [-b n] <filename> <result.gif> | |
-h show this help | |
-n turn off subtitles | |
-a don't open directory with frames in filemanager | |
-s start time in seconds or as hours:minutes:seconds, default: 0 | |
-d duration in seconds or as hh:mm:ss, default: 5 |
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
m_e = 9.10938356 * 10 .^-31; | |
E = 10; | |
alpha = 1; | |
from = 0; | |
to = 1000; | |
v0 = 0.5 .* 299792458; | |
p = m_e * v0; | |
w = @(x) x .* exp(-alpha .* x); | |
N2 = @(x) integral(w, from, to) ; |