Skip to content

Instantly share code, notes, and snippets.

@pral2a
pral2a / README.md
Last active February 23, 2016 11:53
DMX Example for the Pixel Facade
@pral2a
pral2a / hi8-anim-howto.md
Created January 27, 2016 08:02 — forked from celoyd/hi8-anim-howto.md
A way to make Himawari-8 animations

Himawari-8 animation tutorial

Here’s how to make animations like this one. It requires intermediate Unix command-line knowledge, to install some tools and to debug if they don’t work. You’ll need these utilities:

  • curl (or you can translate to wget)
  • convert and montage, part of ImageMagick
  • ffmpeg, plus whatever codecs
  • parallel, for iteration that’s nicer than shell for loops or xargs
  • run everything in zsh for leading 0s in numerical ranges to work
@pral2a
pral2a / fablabs-map.html
Last active January 1, 2016 10:01
Fablabs Map
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>FabLabs in the World</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.mapbox.com/mapbox.js/v2.2.3/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v2.2.3/mapbox.css' rel='stylesheet' />
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<style>
@pral2a
pral2a / foam_extruder.ino
Last active December 7, 2015 16:20
FOAM Extruder
#include <AccelStepper.h>
#include <SoftwareSerial.h>
#include <SerLCD.h>
// TUNE PARAMS!
const int maxPos = 180;
const int openCloseSpeed = 2000;
@pral2a
pral2a / foam_stepper.ino
Created November 30, 2015 07:39
Foam stepper
#include <AccelStepper.h>
AccelStepper stepper(1, 3, 4);
// TUNE PARAMS!
const int maxPos = 180;
const int openCloseSpeed = 1500;
// END!
@pral2a
pral2a / sck_api_osc.pde
Created July 23, 2015 21:43
SCK API Example to OSC
/*
SmartCitizen API - Procressing.org to GHowl basic example
This example demonstrate how to do a basic call to the SmartCitizen API
to retrieve the latest data from one device and send it over OSC to Grashopper using gHowl.
You will need to register as a user to obtain an APIKey and fill it below together with the SCK device_id you want to query.
Requires OSCP5 library:
@pral2a
pral2a / gist:46cca00936ad621cbf92
Created June 2, 2015 17:29
Arduino Ethernet trigger Servo
#include <SPI.h>
#include <Ethernet.h>
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {
0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
@pral2a
pral2a / gist:73b51b59c34d9f6d5fb3
Created May 6, 2015 14:41
Buy Arduino stuff in Barcelona - Chrome Custom Search
https://www.google.com/search?hl=en&source=hp&q=%s+site%3Areflexiona.biz+OR+site%3Atienda.bricogeek.com+OR+site%3Acooking-hacks.com+OR+site%3Aelectan.com+OR+site%3Aelectan.com+OR+site%3Abotiga.grn.es+OR+site%3Asnootlab.com+OR+site%3Arobotshop.eu+OR+site%3Aes.farnell.com+OR+site%3Adigikey.es+OR+site%3Amouser.es+OR+site%3Abcn3dtechnologies.com+OR+site%3Abcndynamics.com&gws_rd=ssl
@pral2a
pral2a / gist:69f57de5d3f13770b8f3
Last active August 29, 2015 14:18
Membrana installation
@pral2a
pral2a / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console