Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Ludonaut's full-sized avatar

Ludonaut

View GitHub Profile
@Ludonaut
Ludonaut / pyserver
Created January 7, 2018 14:17 — forked from EntityB/pyserver
HTTPS server with CORS and python
#!/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
float f;
void setup() {
size(500, 500);
}
void draw() {
smooth(8);
translate(width/2, height/2);
strokeWeight(10);
float a;
void setup() {
size(500, 500, P2D);
blendMode(BLEND); // also try LIGHTEST, MULTIPLY, SCREEN
smooth(8);
colorMode(HSB, 360);
noFill();
strokeWeight(10);
}
// juuuust under 250 for a nicer canvas border.
int randomOffset = 249;
int transparency = 20;
void setup() {
size(500, 500);
background(0);
}
void draw() {
#
# ~/.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