Skip to content

Instantly share code, notes, and snippets.

View hak8or's full-sized avatar

hak8or hak8or

View GitHub Profile
@hak8or
hak8or / hello_world.cpp
Created November 17, 2015 02:11
C++ based hello world
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World" << endl;
while(1) {};
}
@hak8or
hak8or / Resources.md
Last active June 20, 2021 18:44
Some resources for Irene
@hak8or
hak8or / weatherspot_log.txt
Last active August 29, 2015 14:27
Weatherspot logs
==================================================
WeatherSpot firmware Uno-V1.0 RC1
==================================================
Wifi reseting ack recieved.
Wifi mode select was succesfull.
Wifi connected to OpenWrt network succesfully!
Wifi single TCP setting was succesfull.
Wifi ping test to weatherspot.us OK
============== Wifi Network info vvv
@hak8or
hak8or / network.cpp
Created June 28, 2015 19:48
Del me
/**
* @brief Sends a peice of data over TCP to our backend.
* @details Does a DNS lookup for our backend, sets up a TCP connection, and sends our data.
*
* @param An enum for if we want to send our data over Wireless or Wired.
*/
void Network::send_packet(Network::Interface interface){
if (interface == Wired) {
// https://api.thingspeak.com/update?key=8ZISX29L64E3ZDHW&field1=0
@hak8or
hak8or / something.pde
Created April 27, 2015 04:37
done with blob detection
import gab.opencv.*;
import processing.video.*;
import java.awt.*;
Capture webcam_frame;
OpenCV opencv_blue;
OpenCV opencv2;
OpenCV opencv_diff;
OpenCV opencv_rect;
@hak8or
hak8or / something.pde
Created April 27, 2015 03:04
Rough blob detection working
import gab.opencv.*;
import processing.video.*;
import java.awt.*;
Capture webcam_frame;
OpenCV opencv_blue;
OpenCV opencv2;
OpenCV opencv_diff;
OpenCV opencv_rect;
@hak8or
hak8or / copy_on_reference.pde
Created April 27, 2015 00:00
Copy on right for blue channel mucking everything up.
import gab.opencv.*;
import processing.video.*;
import java.awt.*;
Capture webcam_frame;
OpenCV opencv;
// Capture resolution of webcam.
int capture_x = 960;
int capture_y = 720;
@hak8or
hak8or / something.pde
Created April 26, 2015 22:54
Blue color channel
import gab.opencv.*;
import processing.video.*;
import java.awt.*;
Capture webcam_frame;
OpenCV opencv;
// Capture resolution of webcam.
int capture_x = 960;
int capture_y = 720;
@hak8or
hak8or / foo.pde
Last active August 29, 2015 14:20
Proper diff for motion
import gab.opencv.*;
import processing.video.*;
import java.awt.*;
Capture webcam_frame;
OpenCV opencv;
// Capture resolution of webcam.
int capture_x = 960;
int capture_y = 720;
@hak8or
hak8or / readme.md
Last active August 29, 2015 14:19
Getting started with JD-beacon-board on ubuntu

Instructions

Download the latest Ubuntu (14.10 as of now) from the Ubuntu site and make a virtual machine using that ISO via virtualbox.

When you are done installing Ubuntu, run the following in a terminal to satisfy various dependancies. You can copy and paste this into the terminal fully or line by line.

sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y ruby-dev git g++
sudo gem update # This one takes a while and generates an error, it's ok.