Skip to content

Instantly share code, notes, and snippets.

View m0wh's full-sized avatar
🤙

Malo Widerspach m0wh

🤙
View GitHub Profile
@m0wh
m0wh / _layout.scss
Created November 21, 2019 23:18
avelocontrelamuco.org layout
$margins: 1rem;
$columns: 7fr 4fr 3fr 4fr 4fr;
@function x($i) {
@return calc(#{$i} * ((100vw - #{$margins * 2}) / 22));
}
@function y($i) {
@return calc(#{$i} * ((100vw - #{$margins * 2}) / 22) / 1.618);
@m0wh
m0wh / projects.json
Last active October 7, 2019 22:25
Hey Achos! Este es el documento del contenido para Maria para rellenar :) (el tag video es el link de youtube)
0: "VAD (Lo importante es que vuelvan): "
1: "Camping (Todo lo poco que necesitas): "
2: "Vacaciones (No es donde vayas, es lo que vayas a hacer): "
3: "Playa (Tanto por conocer): "
4: "Primavera (Inauguración de la primavera): "
5: "Actívate (Para qué quieres un cuerpo, si no es para moverlo): "
6: "Navidad (Modestia Aparte): "
7: "Movilidad (Y de camino haces deporte): "
8: "Lays Gourmet (Intro para el proyecto de Lays Gourmet): "
9: "KAS (Intro para el proyecto de KAS): "
@m0wh
m0wh / .eslintrc.js
Last active August 2, 2019 08:26
Front-end basic boilerplate: Parcel + ESlint + GitHub Pages + Sass — Installation: git clone https://gist.github.com/e5cdf9a81bd2ea5eeaf10b15f3dc23d5.git myproject && cd myproject && yarn letsgo
module.exports = {
'env': {
'browser': true,
'es6': true
},
'extends': 'standard',
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly'
},
@m0wh
m0wh / Vector.js
Created May 28, 2019 22:16
WIP: a nice and simple vector 2D class
class Vector {
constructor(x, y) {
this.x = x
this.y = y
}
get x () { return this.x }
get y () { return this.y }
set x (newX) { this.x = newX }
set x (newY) { this.y = newY }
PImage img;
color c;
PFont font;
int x,y;
int RESOLUTION[] = {720,180};
PGraphics epg;
void sizing(PImage i) {
int r;
r = 10000*RESOLUTION[0]/i.width;
@m0wh
m0wh / french-names.json
Created September 24, 2018 19:53
A list of french first names to use as placeholder
{
"names": [
"Adèle",
"Alex",
"Alice",
"Anna",
"Apolline",
"Augustin",
"Candice",
"Arnaud",
@m0wh
m0wh / color-experiment.pde
Created March 8, 2018 10:57
Color processing experiment
float r;
float v;
float b;
int a = 5;
void setup() {
size(800,800);
pixelDensity(2); // if retina display
}
@m0wh
m0wh / rezz-goggles.pde
Created March 8, 2018 10:42
Rezz's goggles animations
int ringRadius[] = {90,55,15};
color c = color(0, 255, 0);
int a = 0;
int speed = 10;
color white = color(255,255,255);
void setup() {
size(500,500);
background(30);
pixelDensity(2); // if you have a retina screen
@m0wh
m0wh / maze-generator.pde
Created March 8, 2018 10:21
Processing experiment
Wall wall = new Wall();
float i = 0;
int res = 8;
int angle;
void setup() {
size(800, 800);
frameRate(150);
noLoop();
}
@m0wh
m0wh / twisting.pde
Created March 8, 2018 10:16
Processing experiement
int point = 2;
int layers = 60;
float radius;
float AAA = 0;
void setup() {
size(1920, 1080);
stroke(0);
frameRate(50);
noFill();