Skip to content

Instantly share code, notes, and snippets.

Avatar

Guy Moorhouse futurefabric

View GitHub Profile
View spinning_cube_stack.pde
// Guy Moorhouse – 2015
// Spinning Cube Stack
// This is the source code for this animation:
// https://www.mooooooving.com/post/108991844461/spinning-cube-stack
int[][] result;
float t;
View twitter-stylebot.css
.Trends {
display: none;
}
.dashboard.dashboard-right {
display: none;
}
li.moments.js-moments-tab {
display: none;
View html5-template
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>TITLE</title>
<meta name="description" content="DESCRIPTION">
<link rel="stylesheet" href="assets/stylesheets/application.css">
</head>
View link.scss
@futurefabric
futurefabric / gif_animation_example.pde
Last active Sep 1, 2020
Example code to create an animation and image sequence
View gif_animation_example.pde
// Example code from http://futurefabric.co.uk/mooooooving
// Based on the work of Dave Whyte — http://beesandbombs.tumblr.com
int[][] result;
float t;
void setup() {
setup_();
@futurefabric
futurefabric / govdelivery_template.html
Last active Aug 29, 2015
Email templates — Product Gaps
View govdelivery_template.html
<p><a href="https://www.gov.uk"><img src="http://stage-content.govdelivery.com/attachments/fancy_images/UKGOVUK/2014/12/20064/govuk-logotype_original.gif" alt="GOV.UK" title="GOV.UK" width="160" height="26" style="border: none; outline: none;" /></a></p>
<table id="content" style="max-width: 580px; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;">
<tr>
<td style="border-collapse: collapse; padding: 0">
<h1 style="color: #0B0C0C !important; font-family: sans-serif; font-weight: 700; font-size: 36px; line-height: 1.111111111; margin: 15px 0; padding: 15px 0;">Title here</h1>
<p style="color: #0B0C0C; font-family: sans-serif; font-size: 19px; line-height: 1.315789474; margin: 15px 0;">
The websites of all government departments and many other agencies and public bodies are being merged into GOV.UK.
@futurefabric
futurefabric / plot_rows_and_columns
Created Oct 18, 2014
Plot points in rows and columns
View plot_rows_and_columns
// PLOT POINTS IN ROWS AND COLUMNS
// By Guy Moorhouse @Futurefabric
float x, y;
int number_of_points = 900;
float grid_across = round(sqrt(number_of_points));
float circle_diameter = 10;
float margin = 30;
void setup() {
@futurefabric
futurefabric / plot_a_spiral.pde
Last active Aug 29, 2015
Plot points in a spiral
View plot_a_spiral.pde
// PLOT POINTS IN A SPIRAL
// By Guy Moorhouse @Futurefabric
float x, y;
int number_of_points = 280;
float circle_diameter = 10;
float plot_radius = 200;
float angle_incr = radians(10);
void setup() {
@futurefabric
futurefabric / plot_a_circle
Created Oct 18, 2014
Plot points in a circle
View plot_a_circle
// PLOT POINTS IN A CIRCLE
// By Guy Moorhouse @Futurefabric
float x, y;
int number_of_points = 17;
float circle_diameter = 20;
float plot_radius = 150;
void setup() {
size(500,500);