Install Gallium OS 3.0
curl -O https://chrx.org/go && sh go -r dev
https://wiki.galliumos.org/Installing/Samus (reynhout/chrx#63)
Installing samus specific fixes
sudo apt-get install galliumos-samus
Install Gallium OS 3.0
curl -O https://chrx.org/go && sh go -r dev
https://wiki.galliumos.org/Installing/Samus (reynhout/chrx#63)
Installing samus specific fixes
sudo apt-get install galliumos-samus
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="web" enabled="true"> | |
<match url="^(.*)" /> | |
<conditions> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> |
#!/usr/bin/python | |
# upload photos to google picasa | |
import gdata.photos.service | |
import getpass | |
import socket | |
import glob | |
import sys | |
import os |
''' | |
Simple chatroom | |
Reference | |
https://docs.python.org/2/library/threading.html | |
http://blog.oddbit.com/2013/11/23/long-polling-with-ja/ | |
http://zulko.github.io/blog/2013/09/19/a-basic-example-of-threads-synchronization-in-python/ | |
http://www.laurentluce.com/posts/python-threads-synchronization-locks-rlocks-semaphores-conditions-events-and-queues/ | |
''' |
function bezier2(ax, ay, bx, by, cx, cy) { | |
var minlength = 20; | |
var dist = Math.sqrt(Math.pow(ax - bx, 2) + Math.pow(ay - by, 2)) + Math.sqrt(Math.pow(bx - cx, 2) + Math.pow(by - cy, 2)); | |
var steps = dist / minlength; | |
moveTo(ax, ay); | |
for (var i=0; i<steps; i++) { | |
var x = getstep(getstep(ax, bx, i, steps), getstep(bx, cx, i, steps), i, steps); | |
var y = getstep(getstep(ay, by, i, steps), getstep(by, cy, i, steps), i, steps); | |
lineTo(x, y); | |
} |