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
sudo apt-get install --yes build-essential curl git unzip | |
# install java | |
sudo apt-get -y install openjdk-7-jdk | |
# make exports persistent | |
echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64" >> ~/.bashrc | |
echo "export PATH=\${PATH}:\${JAVA_HOME}/bin" >> ~/.bashrc | |
source ~/.bashrc | |
# install 32-bit dependencies |
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
// code nicked mainly from here: | |
// http://lazyfoo.net/tutorials/SDL/50_SDL_and_opengl_2/index.php | |
/* to compile | |
### installation on ubuntu | |
# install compiler etc | |
sudo apt-get install --yes software-properties-common g++ make | |
# install sdl2 |
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
# always a good idea | |
sudo apt-get update | |
# just to make sure | |
sudo apt-get curl git | |
# install latest node | |
sudo add-apt-repository --yes ppa:chris-lea/node.js | |
sudo apt-get update |
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
# via http://json-template.googlecode.com/svn/trunk/doc/Introducing-JSON-Template.html | |
import jsontemplate | |
import json | |
# load template | |
template = open('test_template.html', 'r').read() | |
# load data | |
data = json.loads(open('test_data.json', 'r').read()) |
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
# 1.py | |
# pip2 install trello | |
# https://pythonhosted.org/trello/trello.html | |
import pprint | |
pp = pprint.PrettyPrinter(indent=4) | |
import credentials | |
key = credentials.key |
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
sudo apt-get update | |
sudo apt-get -y install couchdb | |
# curl http://localhost:5984 | |
sudo apt-get install -y python-software-properties | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository -y ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install -y nodejs |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>T11</title> | |
<style> | |
body { | |
margin: 0; | |
padding: 0; | |
background-color: #000000; |
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
var w = 600 | |
var h = 380 | |
var stage = new PIXI.Stage(0x66FF99); | |
var renderer = PIXI.autoDetectRenderer(w, h); | |
document.body.appendChild(renderer.view); | |
requestAnimFrame(animate); | |
var n = 12; // CHANGE THIS |
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
<html> | |
<head> | |
<title>Redirecting...</title> | |
<meta http-equiv="refresh" content="0;url=http://google.de"> | |
</head> | |
<body> | |
Attempting to redirect to <a href="http://google.de">http://google.de</a>. | |
</body> | |
</html> |
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
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script> | |
<script> | |
var vegetables = [{ | |
"name": "Carrot" | |
}, { | |
"name": "Potato" | |
}, { | |
"name": "Broccoli" | |
}]; |