Skip to content

Instantly share code, notes, and snippets.

Avatar
⛱️

João Vilaça vilaca

⛱️
View GitHub Profile
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;
@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 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 {
@vilaca
vilaca / stores.md
Last active Apr 3, 2018
European (intra-EU) stores with Multirotor related kits and parts.
View stores.md
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
View 4-step-sequencer
#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 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.
View autocomplete-hack.html
<!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>
View gist:e40d4a2c3b2122a04969c7f645dc16b5
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