Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter Farrell hackingmath

View GitHub Profile
View script.js
/* Copy of Bees and Bombs' sketch
https://twitter.com/beesandbombs/status/881857295008882689
*/
var b = 0; //counter for rotation
var sz = 500; //size of triangle
var linelist = [];
var side = 1; //side that's being drawn
function setup(){
createCanvas(600,600);
View Wandering_Astroid.js
/* Copy of Bees and Bombs' sketch
https://twitter.com/beesandbombs/status/881857295008882689
*/
var b = 0; //counter for rotation
var sz = 500; //size of triangle
var linelist = [];
var side = 1; //side that's being drawn
function setup(){
createCanvas(600,600);
@hackingmath
hackingmath / numoku_solver.py
Last active Sep 17, 2019
Numoku Solver working in Python, not in Rust :(
View numoku_solver.py
'''From 1to9puzzle Twitter post
https://twitter.com/1to9puzzle/status/1162035008749445120
August 15, 2019'''
import copy
import time
import random
starttime = time.time()
View BandBCrosses
//Bees and Bombs
//Sept. 26, 2018
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
View gist:2b3667288af4c02098e4
# -*- coding: utf-8 -*-
"""
Created on Sat Nov 01 19:39:44 2014
@author: Peter Farrell
Simulation of world, navigating by arrow buttons!
"""
#from future import __division__
from visual import *
import random