Skip to content

Instantly share code, notes, and snippets.

View mark's full-sized avatar
💭
Smoove

Mark Josef mark

💭
Smoove
View GitHub Profile
anonymous
anonymous / sphere.pde
Created May 15, 2017 23:58
sphere worms
// by davey aka bees & bombs :)
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
anonymous
anonymous / pizza.pde
Created May 15, 2017 11:35
pizza gif processing code
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 / cubeBlast.pde
Created May 9, 2017 11:22
cube blast
// blastin cubes by dave whyte
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {

Never follow any guidelines without understanding their concrete benefits. Clarity is more important than structure. If code is left ugly but straightforward, it's easy enough to refactor it. If an inappropriate structure is imposed on code, it will need to be detangled first.

You will never know less about a project than you do at the very beginning. You know more about your project today than you have ever known, but you will know even more tomorrow.

  • Think about the future, but defer final decisions until the time is right.
anonymous
anonymous / rotators.pde
Created March 23, 2017 00:02
rotators
// by dave aka @beesandbombs :)
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
  • 299839 Single-Gang Drawn Handy Box 1-7/8 in. Deep with 1/2 in. KO's
  • 342576 Husky 9 ft. 14/3 Power Tool Replacement Cord
  • 630692 Ideal 33 Orange In-Sure 3-Port Connector (10-Pack)
  • 698646 Leviton 15 Amp Tamper Resistant Duplex Outlet, Black
  • 839647 3/8 in. Non-Metallic (NM) Twin-Screw Cable Clamp Connectors (5-Pack)
  • 908401 Romex 15 ft. 14/2 Soild SIMpull NM-B Cable
  • 1001091470 Gardner Bender 1/2 in. Plastic Staple, White (25-Pack)

Applied Functional Programming with Scala - Notes

Copyright © 2016-2018 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.

val square : Int => Int = x => x * x
// by d whyte
int[][] result;
float t;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
int[][] result;
float t;
void setup() {
setup_();
result = new int[width*height][3];
}
void draw() {
@staltz
staltz / introrx.md
Last active May 11, 2025 22:46
The introduction to Reactive Programming you've been missing