This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
void yourApp::renderTiles() | |
{ | |
//the size here doesn't matter, but it will get distorted if it's not the same ratio as your window | |
gl::TileRender tr( getWindowWidth()*4, getWindowHeight()*4 ); | |
//use the default cinder view to render from | |
tr.setMatricesWindow(getWindowWidth(), getWindowHeight()); | |
while( tr.nextTile() ) { | |
draw(); | |
} |
package main | |
import ( | |
"compress/gzip" | |
"io" | |
"net/http" | |
"strings" | |
) | |
type gzipResponseWriter struct { |
package main | |
import ( | |
"fmt" | |
) | |
type Node struct { | |
Value int | |
} |
/* | |
=============================================================================== | |
A C++ port of a speed-improved simplex noise algorithm for 2D in Java. | |
Based on example code by Stefan Gustavson (stegu@itn.liu.se). | |
Optimisations by Peter Eastman (peastman@drizzle.stanford.edu). | |
Better rank ordering method by Stefan Gustavson in 2012. | |
C++ port and minor type and algorithm changes by Josh Koch (jdk1337@gmail.com). | |
This could be speeded up even further, but it's useful as it is. |
___an infinite space
45 ways to visualize two numbers http://blog.visual.ly/45-ways-to-communicate-two-quantities/
___navigating the infinite space
knights movement:
/* | |
* A simple libpng example program | |
* http://zarb.org/~gc/html/libpng.html | |
* | |
* Modified by Yoshimasa Niwa to make it much simpler | |
* and support all defined color_type. | |
* | |
* To build, use the next instruction on OS X. | |
* $ brew install libpng | |
* $ clang -lz -lpng16 libpng_test.c |
#include <assert.h> | |
#include <GLFW/glfw3.h> | |
#include <swnt/GUI.h> | |
GUI::GUI() | |
:win_w(0) | |
,win_h(0) | |
{ | |
} |
// You can edit this code! | |
// Click here and start typing. | |
package main | |
import "fmt" | |
import "runtime" | |
import "strings" | |
func identifyPanic() string { | |
var name, file string |
var _log = console.log; | |
window.console.log = function(log){ | |
_log.call(console, log.reverse ? log.reverse() : typeof log === 'string' ? log.split('').reverse().join('') : typeof log === 'number' ? log.toString().split('').reverse().join('') : typeof log === 'boolean' ? !log : log); | |
}; |