$ sudo apt-get install git python-pip make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev
$ sudo pip install virtualenvwrapper
$ git clone https://github.com/yyuu/pyenv.git ~/.pyenv
$ git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git ~/.pyenv/plugins/pyenv-virtualenvwrapper
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(pyenv init -)"' >> ~/.bashrc
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
| size( 500, 500 ); | |
| background(255); | |
| noStroke(); | |
| beginShape(); | |
| fill(0); | |
| vertex( 100, 100 ); | |
| bezierVertex(100,100,150,200,90,300); |
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
| //-------------------------------------------------------------- | |
| void ofApp::setup(){ | |
| ofSetFrameRate(60); | |
| ofBackground(0); | |
| // capture size | |
| myVideo.initGrabber(640,480, true); | |
| } |
In file included from /usr/include/stdio.h:27:0,
from ../../../libgcc/../gcc/tsystem.h:87,
from ../../../libgcc/libgcc2.c:27:
/usr/include/features.h:364:25: fatal error: sys/cdefs.h: No such file or directory
compilation terminated.
Makefile:466: recipe for target '_muldi3.o' failed
make[2]: *** [_muldi3.o] Error 1
make[2]: Leaving directory '/root/Downloads/gcc-5.4.0/build/armv7l-unknown-linux-gnueabihf/libgcc'
Makefile:13268: recipe for target 'all-target-libgcc' failed
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
| from decimal import * | |
| print(Decimal('0.1') + Decimal('0.1') + Decimal('0.1')) | |
| print(0.1 + 0.1 + 0.1) | |
| myHope = input('what do you want to do during the summer?') | |
| print('you want to ' + myHope + '. Nice!') | |
| a = 3 | |
| b = 5 | |
| print('a+b=' + str(a+b)) |
# install software
$ sudo apt-get install subversion libjpeg-dev imagemagick
$ svn co https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer mjpg-streamer
# make mjpg-streamer
$ cd mjpg-streamer
$ maketo generate midi files with melody data
$ cd /magenta/magenta/models/melody_rnn
$ wget http://download.magenta.tensorflow.org/models/basic_rnn.mag
$ wget http://download.magenta.tensorflow.org/models/lookback_rnn.mag
$ melody_rnn_generate --config=basic_rnn --bundle_file=basic_rnn.mag --output_dir=./ --num_outputs=10 --num_steps=128 --primer_melody="[60]"
to generate midi files with polyphony dataSettings for security add a new user
$ sudo adduser ngems-kojitype password
add a new user to sudo group