Skip to content

Instantly share code, notes, and snippets.

@celoyd
celoyd / hi8-anim-howto.md
Last active August 1, 2022 15:37
A way to make Himawari-8 animations

Himawari-8 animation tutorial

Here’s how to make animations like this one. It requires intermediate Unix command-line knowledge, to install some tools and to debug if they don’t work. You’ll need these utilities:

  • curl (or you can translate to wget)
  • convert and montage, part of ImageMagick
  • ffmpeg, plus whatever codecs
  • parallel, for iteration that’s nicer than shell for loops or xargs
  • run everything in zsh for leading 0s in numerical ranges to work
int gap = 20;
void setup() {
size(1000, 1000);
strokeWeight(4);
strokeCap(SQUARE);
frameRate(0.5);
}
void draw() {
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];
@tinytintoy
tinytintoy / gist:6133145
Created August 1, 2013 16:49
Fireworks #1
/*
* [021] Fireworks #1
*
* 2013 [+++] @tinytintoto
*/
ArrayList<Fire> fires = new ArrayList<Fire>();
int initialSize;
float sleshold = 0.5;
void setup(){
@max-mapper
max-mapper / examples.js
Created June 25, 2011 17:46
two ways to do jquery ajax POST requests
// https://github.com/iriscouch/request
var reqOpts = {
uri: "http://awesome.com/upload",
method: "POST",
headers: {"Content-type": "application/json"},
body: '{"awesome":"town"}'
}
$.request(reqOpts, function(err, resp, body) {
var response = JSON.parse(body);
@max-mapper
max-mapper / awesome.html
Created May 12, 2011 15:37
node-serialport + arduino + popcorn.js DIY video scrubber
<html>
<head>
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script src="http://burritopizza.local/socket.io/socket.io.js"></script>
<script src="https://gist.github.com/raw/952547/f298c7e30d0978da0c78df0ff79436e883efbad2/gistfile1.txt"></script>
<script src="http://popcornjs.org/code/players/youtube/popcorn.youtube.js"></script>
<style type='text/css'>
body {
}