Skip to content

Instantly share code, notes, and snippets.

View vilaca's full-sized avatar
🎯
Focusing

João Vilaça vilaca

🎯
Focusing
View GitHub Profile
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;
@vilaca
vilaca / synth0.ino
Created March 30, 2015 10:01
Arduino 'Synth' using 8 bit Sigma-Delta DAC v0.0.0
/*
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: *
@vilaca
vilaca / lispy.java
Created February 16, 2018 02:37
lispy parser
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 {
@vilaca
vilaca / stores.md
Last active April 3, 2018 09:59
European (intra-EU) stores with Multirotor related kits and parts.
/*
2 pots 1 speaker
BOM
Arduino Uno
10k A0
10k A1
/*
2 pots 1 speaker
BOM
Arduino Uno
10k A0
10k A1
#include "Volume3.h"
#define speakerPin 9
void setup() {
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
@vilaca
vilaca / Multiwii SE 3.0
Last active September 29, 2018 07:30
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
#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.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI Autocomplete - functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-2.1.0.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
@vilaca
vilaca / gist:e40d4a2c3b2122a04969c7f645dc16b5
Created January 20, 2019 00:48
docker install - centos7
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce
sudo usermod -aG docker $(whoami)
sudo systemctl enable docker.service
sudo systemctl start docker.service
sudo yum install epel-release
sudo yum install -y python-pip
sudo pip install docker-compose
pip install --upgrade pip