Skip to content

Instantly share code, notes, and snippets.

View j0hnm4r5's full-sized avatar

John Mars j0hnm4r5

View GitHub Profile
@j0hnm4r5
j0hnm4r5 / .eslintrc
Last active August 2, 2018 20:27
Style & Linting
{
"env": {
"browser": true,
"node": true
},
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:promise/recommended",
"plugin:unicorn/recommended",

Keybase proof

I hereby claim:

  • I am j0hnm4r5 on github.
  • I am j0hnm4r5 (https://keybase.io/j0hnm4r5) on keybase.
  • I have a public key ASARHghRxbYQRuv9rE8FfPv5XNLXErxuK_UoACGx7-Qlewo

To claim this, I am signing this object:

@j0hnm4r5
j0hnm4r5 / photonFftExample.ino
Last active February 18, 2021 22:48
An example for doing FFT analysis on a Particle Photon
#include <math.h>
/*
Example application for doing FFT on a Particle Photon and sending the data to Processing on a computer
Designed for Phyiscal Computing Studio, Spring 2016, IDeATe @ Carnegie Mellon University: http://courses.ideate.cmu.edu/physcomp/s16/48-390/
Inspired by Adafruit's FFT: Fun with Fourier Transforms tutorial: https://learn.adafruit.com/fft-fun-with-fourier-transforms/software
FFT function from Paul Bourke: http://paulbourke.net/miscellaneous/dft/
TCP connection code provided by Alex Alspach
@j0hnm4r5
j0hnm4r5 / photonOscExample.ino
Created January 21, 2016 17:52
An example for sending and receiving OSC messages with a Particle Photon
#include "simple-OSC/simple-OSC.h"
// create OSC object
UDP osc;
// set IP addresses and ports for I/O
IPAddress outIp(128, 237, 246, 8);
unsigned int outPort = 9000;
unsigned int inPort = 3000;
@j0hnm4r5
j0hnm4r5 / rhino_to_hpgl.py
Created November 2, 2014 21:48
Rhino to HPGL
'''This script creates an HPGL file from curves in a Rhino file.
Place all curves in the model world as they would sit in relation to the origin on the plotter.
File will export to same location as script.'''
import rhinoscriptsyntax as rs
from datetime import datetime
import os.path
filename = rs.GetString("What would you like to name the file? (Use \"#\" for ISO 8601) ", defaultString="output#")
@j0hnm4r5
j0hnm4r5 / etchASketch_forPlotter.py
Created April 30, 2014 02:03
Working etch-a-sketch for the plotter, controlled by BrainJr.
import pygame
from pygame.locals import *
from pygame import midi
from colors import *
import chiplotle
import sys
import time
import random