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
# To install omxplayer on RPi | |
# Go to link http://www.gaggl.com/2013/01/installing-omxplayer-on-raspberry-pi/ | |
# or type | |
sudo apt-get install omxplayer | |
# Run a repeated video from omxplayer in terminal on RPi | |
while [ 1 ]; do omxplayer -0 hdmi testvid2.mp4; 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
# By J. Vlaskamp and M. Ali | |
import os | |
import sys | |
import time | |
import datetime | |
tstamp = time.time() | |
st = datetime.datetime.fromtimestamp(tstamp).strftime('Test staterd at %Y-%m-%d %H:%M:%S\n') | |
print st |
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
# Occupy CPU python code | |
i=0 | |
while True: | |
i=i+1 | |
if i==10: | |
i=0 |
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 sympy import symbols, cos, sin | |
from sympy.plotting import plot3d_parametric_surface | |
x,y = symbols('x y') | |
plot3d_parametric_surface(x**2, y**2, x-y, (x, -5, 5), (y, -5, 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
from mpl_toolkits.mplot3d import Axes3D | |
from matplotlib import * | |
from matplotlib import cm | |
from matplotlib.ticker import LinearLocator, FormatStrFormatter | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import sys | |
from pylab import * | |
rcParams['legend.loc'] = 'best' |
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
plot(x,g1, label='major axis') | |
plot(y,g2, label='minor axis') | |
legend() |
NewerOlder