Skip to content

Instantly share code, notes, and snippets.

View giantmolecules's full-sized avatar
🧐

Brett Ian Balogh giantmolecules

🧐
  • The Laboratory for Artistic Research and Development
  • Chicago
View GitHub Profile
@giantmolecules
giantmolecules / wifi-scan.cpp
Created July 4, 2016 19:20
simple mapping of rssi to neopixel color. prints stats to serial port.
// This #include statement was automatically added by the Particle IDE.
#include "neopixel/neopixel.h"
#define PIXEL_PIN D0
#define PIXEL_COUNT 1
#define PIXEL_TYPE WS2812B
Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, PIXEL_TYPE);
int pastTime = 0;
int currentTime = 0;
Timer sitTimer(tooLong, 60000);
int track1 = 6;
int track2 = 7;
int buttonPin = 0;
void setup() {
pinMode(buttonPin, INPUT_PULLDOWN);
pinMode(track1, OUTPUT);
pinMode(track2, OUTPUT);
@giantmolecules
giantmolecules / wifi-sniffer.py
Created September 5, 2016 14:40 — forked from garyconstable/wifi-sniffer.py
Python Wifi Channel Hopping Sniffer
"""
Wifi Sniffer
"""
import os
from scapy.all import *
if len(sys.argv) == 2:
iface = str(sys.argv[1])
else:

processing-cave2

ssh into lyra

local dimensions = 1366w 1536h

server ip lyra-win.evl.uic.edu:9002

/data/evl/processing

Keybase proof

I hereby claim:

  • I am giantmolecules on github.
  • I am brettbalogh (https://keybase.io/brettbalogh) on keybase.
  • I have a public key whose fingerprint is 8014 8342 1AD6 40F3 35AD 7808 FE3B 2E3F F7B1 1B4F

To claim this, I am signing this object:

Servo myServo1;
Servo myServo2;
void setup(){
myServo1.attach(0);
myServo2.attach(1);
myservo1.write(0);
myServo2.write(0);
}
using UnityEngine;
using System.Collections;
public class Easy : MonoBehaviour {
public GameObject theObject;
public static EasingFunction.Ease ease = EasingFunction.Ease.EaseInOutQuad;
private EasingFunction.Function func = EasingFunction.GetEasingFunction(ease);
private float time = 0;
private float interval = 0;
#include "application.h"
#include "HttpClient.h"
/**
* Declaring the variables.
*/
unsigned int nextTime = 0; // Next time to contact the server
HttpClient http;
// Headers currently need to be set at init, useful for API keys etc.
/*
Brett Ian Balogh
ARTTECH 4015 Robotics
Spring 2017
PWM Fun
Solution for fading in and out
Using non-blocking logic.
*/
//
// UnityOSC - Example of usage for OSC receiver
//
// Copyright (c) 2012 Jorge Garcia Martin
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
// and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
//