Skip to content

Instantly share code, notes, and snippets.

int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
//--------------------------------------------------------------------------//
// Flow field animator by Etienne Jacob (www.necessary-disorder.tumblr.com) //
// Processing code (https://processing.org) //
// Saves frames, then you must use something else to make the GIF //
//--------------------------------------------------------------------------//
/// This code starts with the rendering system I took from @beesandbombs
/// (it also contains some useful functions and stuff)
/// You don't have to understand it
/// Just know that it does an average on many drawings to get a motion blur effect
/// from drawings parametrized by the global variable t going from 0 to 1
@tsulej
tsulej / harmonograph.pde
Created March 23, 2017 12:42
Harmonograph + noise
// http://generateme.tumblr.com
// Harmonograph with noise
// space - save
// click - change
float time;
float f1,f2,f3,f4;
float p1,p2,p3,p4;
float a1,a2,a3,a4;
anonymous
anonymous / wave.pde
Created November 19, 2015 00:34
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
anonymous
anonymous / gist:8337883
Created January 9, 2014 17:08
processing code!!!! >:)
int samplesPerFrame = 32;
int numFrames = 32;
float shutterAngle = 1.0;
int[][] result;
void setup() {
size(1000,1000,P3D);
smooth(4);
noStroke();
result = new int[width*height][3];
anonymous
anonymous / gist:8031373
Created December 18, 2013 22:59
xmas tree gif
// motion blur hack starts here
int samplesPerFrame = 32;
int numFrames = 48;
float shutterAngle = 1.0;
int[][] result;
float time;
void setup() {
size(500, 500);

San Francisco Date Locations

Destinations

  • Lands End
  • Yoshi's bar
  • Sweet Maple
  • Twin Peaks
  • Sutro Baths
  • Goldgen Gate Park
@clintongormley
clintongormley / gist:4095280
Created November 17, 2012 12:00
Using synonyms in Elasticsearch

We create an index with:

  • two filters: synonyms_expand and synonyms_contract
  • two analyzers: synonyms_expand and synonyms_contract
  • three text fields:
    • text_1 uses the synonyms_expand analyzer at index and search time
    • text_2 uses the synonyms_expand analyzer at index time, but the standard analyzer at search time
    • text_3 uses the synonyms_contract analyzer at index and search time

.