This file contains hidden or 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
% System 4: Wien Bridge Oscillator | |
K = 3; R1 = 10*10^3; R2 = R1; C1 = 10*10^-9; C2 = C1; | |
tra = tf( [ K*R2*C1 0 ], [ R1*R2*C1*C2 R1*C1+R2*C2+R2*C1 1 ] ); | |
% Graphs | |
subplot( 1, 2, 1 ); | |
[x,t] = step( tra ); | |
plot( t, x ); | |
title( 'Response of System 4 to a Step Input' ); | |
xlabel( 'Time (s)' ); | |
ylabel( 'Output (V)' ); |
This file contains hidden or 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
function ioviewer( sys ) | |
do = true; | |
switch sys | |
case '1' | |
% System 1: Mass Spring | |
tra = tf( 5, [1 0 5] ); | |
w = 0.3; | |
t = 0:0.01:40; | |
ylbl = 'Output (m)'; |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8" ?> | |
<sql> | |
<datatypes db="mysql"> | |
<group label="Numeric" color="rgb(238,238,170)"> | |
<type label="Integer" length="0" sql="INTEGER" re="INT" quote=""/> | |
<type label="Decimal" length="1" sql="DECIMAL" re="DEC" quote=""/> | |
<type label="Single precision" length="0" sql="FLOAT" quote=""/> | |
<type label="Double precision" length="0" sql="DOUBLE" re="DOUBLE" quote=""/> | |
</group> |
This file contains hidden or 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
[General] | |
Name=He: No/LCD-RGB/Sat+4/Gamma | |
Icon=..\gditray.exe,-205 | |
HookChildProcesses=1 | |
[Rasterize] | |
HintingMode=0 | |
AntiAliasMode=2 | |
NormalWeight=0 |
This file contains hidden or 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
/************************ HEADERS **********************************/ | |
// Set the myidcode value to the number of the board !!!! | |
#define myidcode 9 | |
#include "P2P.h" | |
#include "MRF24J40.h" | |
#include "SymbolTime.h" | |
#include "I2C.h" | |
#include "hardwareprofile.h" |
This file contains hidden or 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
/************************ HEADERS **********************************/ | |
// Set the myidcode value to the number of the board !!!! | |
#define myidcode 9 | |
#include "P2P.h" | |
#include "MRF24J40.h" | |
#include "SymbolTime.h" | |
#include "I2C.h" | |
#include "hardwareprofile.h" |
This file contains hidden or 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
def ExampleTask( a ): | |
o = algorithms.OpCounter( len(a) ) | |
s = 0 | |
o.Add() | |
for i in range( 0, len(a) ): | |
o.Add() | |
s += a[i] | |
o.Add() | |
o.Add() | |
This file contains hidden or 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
30c30 | |
< <string>^(#).*$\n?</string> | |
--- | |
> <string>^(\s)*(#).*$\n?</string> |
This file contains hidden or 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
import gevent | |
def hello( name ): | |
time.sleep(5) | |
return "Hello, %s!" % name | |
if __name__ == '__main__': | |
names = [ "James", "Ruth" ] | |
jobs = [ gevent.spawn( hello, name ) for name in names ] | |
gevent.joinall( jobs ) |
This file contains hidden or 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
james@potato-linux ~ $ sudo easy_install greenlet | |
Searching for greenlet | |
Reading http://pypi.python.org/simple/greenlet/ | |
Reading http://bitbucket.org/ambroff/greenlet | |
Reading http://undefined.org/python/#greenlet | |
Best match: greenlet 0.3.1 | |
Downloading http://pypi.python.org/packages/source/g/greenlet/greenlet-0.3.1.tar.gz#md5=8d75d7f3f659e915e286e1b0fa0e1c4d | |
Processing greenlet-0.3.1.tar.gz | |
Running greenlet-0.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-X20lOk/greenlet-0.3.1/egg-dist-tmp-sJ9eNC | |
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'repository' |