Skip to content

Instantly share code, notes, and snippets.

View sash13's full-sized avatar

Aleksander Ryzhkov sash13

  • Kyiv, Ukraine
  • 07:51 (UTC +03:00)
View GitHub Profile
@sash13
sash13 / yoba.m
Last active May 22, 2016 16:35 — forked from stdray/yoba.m
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) ;
@sash13
sash13 / gifcreate
Last active December 11, 2015 01:29 — forked from rkfg/gifcreate
#!/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
# -*- 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