Skip to content

Instantly share code, notes, and snippets.

jmsaavedra /
Last active Feb 29, 2020
Install ffmpeg with h264 OSX 10.14
jmsaavedra /
Last active Apr 15, 2020
Collection of ffmpeg commands

Collection of Useful ffmpeg Commands

  • convert mov to mp4
  • best quality (-qscale 0)
  • remove audio with -an flag
ffmpeg -i -q:v 0 -an output.mp4
jmsaavedra / tripleClick.ino
Last active Nov 15, 2017
triple click detection
View tripleClick.ino
/* */
#include <Timer.h>
Timer t_press;
int LED_1 = 13;
int LED_2 = 3;
int pressCount = 0;
View gist:fb4b080580d2706c143c8aba2a293ab8
/Applications/ -C/Applications/ -v -patmega328p -cstk500v2 -Pusb -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xde:m -Ulfuse:w:0xff:m
avrdude: Version 6.3, compiled on Jan 17 2017 at 12:01:35
Copyright (c) 2000-2005 Brian Dean,
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/Applications/"
User configuration file is "/Users/jmsaavedra/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
jmsaavedra / .eslintrc
Created May 18, 2016 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
View .eslintrc
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
View raw_neopixel_simblee.ino
// WS2812_RFduino_Test
// By Thomas Olson
// No complicated Pixel Library needed.
// Tested with WS2812B 4 pin versions.
// Modified by Sam Decrock to resemble NeoPixel API
// Modified by to incorporate more of NeoPixel examples
// 20160510 ... verified works with Arduino 1.6.5 and simblee module
// >>> using 3.3v > 5v level shifter between pin 6 and NeoPixels
const int ws2812pin = 6;
jmsaavedra /
Last active May 1, 2019
install chromium on raspbian jessie

install chromium on raspbian jessie

get these chromium debs (THEY ARE ALSO IN THIS FOLDER):

jmsaavedra /
Last active Nov 6, 2015
startup script resources for ubuntu

adding an init.d script:

  1. look at /etc/init.d/skeleton for the script template
  2. after creating your own, chmod a+x myscript
  3. sudo mv myscript /etc/init.d
  4. update-rc.d myscript.....tba...



jmsaavedra / simpleserial.ino
Created Oct 3, 2015
Teensy Serial Controller
View simpleserial.ino
* Teensy connected to Powerswitch Tail 2
#define PST_1 3 //powerswitch tail pin 1
#define PST_2 4 //powerswitch tail pin 2
#define LED 13 //teensy 3.0 on-board LED
void setup() {