Skip to content

Instantly share code, notes, and snippets.

View dropmeaword's full-sized avatar

Luis Rodil-Fernandez dropmeaword

  • Amsterdam, Netherlands
View GitHub Profile
@dropmeaword
dropmeaword / p5tweet_cmyk.pde
Created February 28, 2020 11:22
cool for printing
int i,s=450;void setup(){size(900,900,P3D);}void draw(){translate(s,s);rotate(--i*.1,i%9,i%7,i%4);fill((-7<<i%36)-1);rect(s,0,30,30);}//#p5
@dropmeaword
dropmeaword / p5tweet_sphere.pde
Created February 28, 2020 11:05
simple p5 sketch in a tweet that draw a sphere animation with some perlin noise
float i;void setup(){size(900,900,P3D);}void draw(){translate(450+450*cos(i*.9),600+400*sin(i+=.01)*noise(i));sphere(30/noise(i));}
@dropmeaword
dropmeaword / tinymondrian.pde
Last active February 27, 2020 02:14
a tiny processing sketch that generates Mondrianesque compositions (in 287 characters)
int i,j;color clr=#ff0000;void I(int a,int b,int c,int d,int N){if(N==0){fill(clr);clr<<=2;clr%=0xffffff;rect(a,b,c-a,d-b);}else{i=int(random(a,c));j=int(random(b,d));I(a,b,i,j,N-1);I(i,b,c,j,N-1);I(a,j,i,d,N-1);I(i,j,c,d,N-1);}}void draw(){background(#1356A2);I(-1,-1,width,height,2);}
@dropmeaword
dropmeaword / gist:93c78c09804705e66970c2b2e805dd43
Created November 29, 2019 11:21
description of issue compiling OF on the Jetson
https://forum.openframeworks.cc/t/cannot-compile-of-errors-on-of3dprimitives-and-conflicting-gl-glew-declarations/30307/3
@dropmeaword
dropmeaword / gist:508f3cae3684ecf84f8239c9336b02a7
Created November 28, 2019 18:13
Listing of boot directory on a Jetson Nano before updating the kernel
nano@nano004:~$ ls -l /boot
total 55676
drwxr-xr-x 3 root root 4096 mei 21 2018 efi
drwxr-xr-x 2 root root 4096 aug 16 20:21 extlinux
drwxr-xr-x 2 root root 4096 nov 28 17:58 grub
-rw-r--r-- 1 root root 34179080 okt 20 01:07 Image
-rw-r--r-- 1 root root 5562384 aug 16 20:58 initrd
lrwxrwxrwx 1 root root 24 nov 28 17:58 initrd.img -> initrd.img-4.9.140-tegra
-rw-r--r-- 1 root root 14966197 nov 28 17:58 initrd.img-4.9.140-tegra
-rw-r--r-- 1 root root 487999 aug 13 06:29 tegra210-jetson-tx1-p2597-2180-a01-devkit.dtb
@dropmeaword
dropmeaword / alvinutil.cpp
Created November 25, 2019 20:31
RealSense helper class for openFrameworks
#ifndef __ALVINUTIL_HPP__
#define __ALVINUTIL_HPP__
#include <string>
#include <array>
#include <librealsense2/rs.hpp>
namespace alvin {
@dropmeaword
dropmeaword / microbit_plus_arduino_deborahs_special_version.pde
Last active June 10, 2019 12:44
Serial input to Wekinator, supporting both micro:bit and Arduino inputs, made for Deborah's wekinator project.
// (c) 2019 DATA Design, Art and Technology Arnhem
// for and by Deborah Mora
// BASED ON:
// Sends BBC micro:bit to OSC
// By Rebecca Fiebrink: January 2016
// Sends to port 6448 using OSC message /wek/inputs
// Number of features varies according to feature selection in user drop-down (more info on screen)
// @NOTE communication with external devices is expected at 115200
@dropmeaword
dropmeaword / esp8266_wekinator_outgoing_osc.ino
Last active May 8, 2019 15:37
send stuff from nodeMCU to wekinator
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <OSCMessage.h>
const char* ssid = "IoT";
const char* pass = "IoT4onderwijs";
WiFiUDP Udp;
// destination IP
@dropmeaword
dropmeaword / wemos_osc_incoming.ino
Last active May 16, 2019 15:08
This is for Lina's and Josie's project
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <OSCMessage.h>
const char* ssid = "PORTABLE_IOT";
const char* pass = "goodlife";
WiFiUDP Udp; // A UDP instance to let us send and receive packets over UDP
const unsigned int localPort = 12345; // local port to listen for OSC packets (actually not used for sending)
@dropmeaword
dropmeaword / Ballistics.cs
Created March 20, 2019 17:02
ballistic calculations for Unity objects
// LICENSE
//
// This software is dual-licensed to the public domain and under the following
// license: you are granted a perpetual, irrevocable license to copy, modify,
// publish, and distribute this file as you see fit.
//
// VERSION
// 0.1.0 (2016-06-01) Initial release
//
// AUTHOR