Skip to content

Instantly share code, notes, and snippets.

Avatar
⛱️

João Vilaça vilaca

⛱️
View GitHub Profile
@vilaca
vilaca / gist:6659438
Created Sep 22, 2013
Lista de concelhos Portugueses por ordem alfabética
View gist:6659438
Abrantes
Águeda
Aguiar da Beira
Alandroal
Albergaria-a-Velha
Albufeira
Alcácer do Sal
Alcanena
Alcobaça
Alcochete
@vilaca
vilaca / stores.md
Last active Apr 3, 2018
European (intra-EU) stores with Multirotor related kits and parts.
View stores.md
@vilaca
vilaca / Multiwii SE 3.0
Last active Sep 29, 2018
Multiwii SE 3.0 board configuration for Simonk ESC and no auto motor start on arm (board selection: Arduino Nano w/ATmega328). Connections: http://i1217.photobucket.com/albums/dd388/meanmaddude/MULTIWII3-0SE-2.jpg ***Arduino Nano w/ATmega328
View Multiwii SE 3.0
#ifndef CONFIG_H_
#define CONFIG_H_
/*************************************************************************************************/
/**** CONFIGURABLE PARAMETERS ****/
/*************************************************************************************************/
/* this file consists of several sections
* to create a working combination you must at least make your choices in section 1.
* 1 - BASIC SETUP - you must select an option in every block.
@vilaca
vilaca / synth0.ino
Created Mar 30, 2015
Arduino 'Synth' using 8 bit Sigma-Delta DAC v0.0.0
View synth0.ino
/*
Arduino 'Synth' using 8 bit Sigma-Delta DAC v0.0.0
Can be played over serial. Connect speaker to pin9 and GND.
Piano keys: z s x d c v g b h n j m ; ( + shift = transpose up)
Mute: space
Transpose up: +
Transpose down: -
Change OSC FX: *
View gist:1d07fa7ba9afcfe5ad74
#ifndef ILI9341_H_
#define ILI9341_H_
#include <msp430.h>
#define RES BIT0 // P1.0
#define SCLK BIT5 // P1.5
#define CS BIT4 // P1.4
#define DC BIT6 // P1.6
#define SDIN BIT7 // P1.7
@vilaca
vilaca / AbstractResultSet.java
Created Jul 23, 2016
Wrapper for java.sql.ResultSet. All methods throw UnsupportedOperationException.
View AbstractResultSet.java
import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Date;
import java.sql.NClob;
View GetUploadedPlaylist.java
package eu.vilaca.youtube;
import java.io.IOException;
import com.google.api.client.http.HttpRequest;
import com.google.api.client.http.HttpRequestInitializer;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.jackson2.JacksonFactory;
import com.google.api.services.youtube.YouTube;
import com.google.api.services.youtube.YouTube.Channels.List;
View lispy.java
package eu.vilaca.lispy;
import java.util.AbstractList;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Deque;
import java.util.List;
public class Parser {
View 2xPots1xSpeaker
/*
2 pots 1 speaker
BOM
Arduino Uno
10k A0
10k A1
View 1bitter
/*
2 pots 1 speaker
BOM
Arduino Uno
10k A0
10k A1