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
#!/usr/bin/env python2 | |
# generate server.xml with the following command: | |
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes | |
# add it to PATH | |
# Run as follow: | |
# pyserver | |
# pyserver 8085 | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
from BaseHTTPServer import HTTPServer |
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
float f; | |
void setup() { | |
size(500, 500); | |
} | |
void draw() { | |
smooth(8); | |
translate(width/2, height/2); | |
strokeWeight(10); |
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
float a; | |
void setup() { | |
size(500, 500, P2D); | |
blendMode(BLEND); // also try LIGHTEST, MULTIPLY, SCREEN | |
smooth(8); | |
colorMode(HSB, 360); | |
noFill(); | |
strokeWeight(10); | |
} |
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
// juuuust under 250 for a nicer canvas border. | |
int randomOffset = 249; | |
int transparency = 20; | |
void setup() { | |
size(500, 500); | |
background(0); | |
} | |
void draw() { |
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
# | |
# ~/.tmux.conf | |
# | |
# Set action key to C-a, like screen. | |
unbind C-b | |
set -g prefix C-a | |
# Start numbering at 1 | |
set -g base-index 1 |