$ gcc -g -Wall -I /path/to/libuv/include /path/to/libuv/uv.a -framework CoreServices server.c -o server
$ gcc -g -Wall -I /path/to/libuv/include /path/to/libuv/uv.a -framework CoreServices client.c -o client
| """ base58 encoding / decoding functions """ | |
| import unittest | |
| alphabet = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ' | |
| base_count = len(alphabet) | |
| def encode(num): | |
| """ Returns num in a base58-encoded string """ | |
| encode = '' | |
| #include <uv.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| /** | |
| * Our tcp server object. | |
| */ | |
| uv_tcp_t server; | |
| /** |
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
thanks to @neurodyne and this link for updated instructions
This works with the following versions of termsrv.dll
x64 - termsrv.dll - 6.3.9600.17095
| Find | Replace |
|---|---|
| 39813C0600000F849E310500 | B80001000089813806000090 |
| 090085C07F078BD8 | 090085C090908BD8 |
Clean install from latest install.
A simple list of regular applications and plugins.
| function HSVToRGB( hue, saturation, value ) | |
| -- Returns the RGB equivalent of the given HSV-defined color | |
| -- (adapted from some code found around the web) | |
| -- If it's achromatic, just return the value | |
| if saturation == 0 then | |
| return value; | |
| end; | |
| -- Get the hue sector |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net" | |
| "sync" | |
| "sync/atomic" | |
| "time" |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);