Skip to content

Instantly share code, notes, and snippets.

Avatar

Rafael Arrais rarrais

View GitHub Profile
@rarrais
rarrais / sp
Created Jul 27, 2017 — forked from vorbeiei/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
View sp
#!/usr/bin/env bash
#Edited to allow for authentication with Spotify API required for search function.
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
View Clone into existing folder
git init
git remote add origin <GIT_URL>
git fetch
git checkout -t origin/master
View Arduino new
import processing.serial.*;
Serial myPort; // Create object from Serial class
String val; // Data received from the serial port
float [] vecFisiologicoY = {800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 790, 780, 771, 771, 771, 771, 761, 751, 741, 731, 721, 712, 702, 682, 643, 623, 604, 584, 564, 545, 525, 505, 486, 476, 466, 437, 417, 397, 388, 368, 348, 338, 319, 309, 289, 280, 260, 250, 230, 221, 211, 201, 191, 181, 172, 162, 152, 142, 132, 122, 113, 113, 103, 103, 103, 93, 93, 93, 93, 83, 83, 83, 83, 83, 83, 83, 93, 93, 93, 103, 103, 103, 113, 113, 113, 122, 132, 142, 152, 162, 162, 172, 172, 181, 191, 191, 201, 211, 221, 230, 240, 250, 260, 270, 280, 289, 299, 309, 319, 329, 338, 348, 358, 368, 378, 388, 397, 407, 417, 427, 437, 447, 456, 466, 476, 476, 476, 466, 456, 447, 437, 427, 417, 397, 388, 378, 368, 358, 348, 338,
View Processing new
import processing.serial.*;
Serial myPort; // Create object from Serial class
String val; // Data received from the serial port
float [] vecFisiologicoY = {800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 800, 790, 780, 771, 771, 771, 771, 761, 751, 741, 731, 721, 712, 702, 682, 643, 623, 604, 584, 564, 545, 525, 505, 486, 476, 466, 437, 417, 397, 388, 368, 348, 338, 319, 309, 289, 280, 260, 250, 230, 221, 211, 201, 191, 181, 172, 162, 152, 142, 132, 122, 113, 113, 103, 103, 103, 93, 93, 93, 93, 83, 83, 83, 83, 83, 83, 83, 93, 93, 93, 103, 103, 103, 113, 113, 113, 122, 132, 142, 152, 162, 162, 172, 172, 181, 191, 191, 201, 211, 221, 230, 240, 250, 260, 270, 280, 289, 299, 309, 319, 329, 338, 348, 358, 368, 378, 388, 397, 407, 417, 427, 437, 447, 456, 466, 476, 476, 476, 466, 456, 447, 437, 427, 417, 397, 388, 378, 368, 358, 348, 338,
View Processing.java
#include <TimerOne.h>
int motorPin = 9;
int PWMa [] = {0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 14 , 28 , 42 , 42 , 42 , 42 , 56 , 70 , 84 , 98 , 112 , 126 , 140 , 168 , 224 , 252 , 281 , 309 , 337 , 365 , 393 , 421 , 449 , 463 , 477 , 519 , 547 , 575 , 589 , 617 , 645 , 659 , 687 , 701 , 729 , 743 , 772 , 786 , 814 , 828 , 842 , 856 , 870 , 884 , 898 , 912 , 926 , 940 , 954 , 968 , 982 , 982 , 996 , 996 , 996 , 1010 , 1010 , 1010 , 1010 , 1024 , 1024 , 1024 , 1024 , 1024 , 1024 , 1024 , 1010 , 1010 , 1010 , 996 , 996 , 996 , 982 , 982 , 982 , 968 , 954 , 940 , 926 , 912 , 912 , 898 , 898 , 884 , 870 , 870 , 856 , 842 , 828 , 814 , 800 , 786 , 772 , 757 , 743 , 729 , 715 , 701 , 687 , 673 , 659 , 645 , 631 , 617 , 603 , 589 , 575 , 561 , 547 , 533 , 519 , 505 , 491 , 477 , 463 , 463 , 463 , 477 , 491 , 505 , 519 , 533 , 547 , 575 , 589 , 603 , 617 , 631 , 645 , 659 , 673 , 673 , 673 , 673 , 659 , 659 , 645 , 631 , 631 , 631 , 631 , 617 , 617 , 617 , 603 , 603 ,
@rarrais
rarrais / README.md
Created Jan 7, 2016
README.md Template
View README.md
You can’t perform that action at this time.