This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "ofMain.h" | |
| class ofApp : public ofBaseApp { | |
| public: | |
| ofVideoGrabber video; | |
| ofEasyCam cam; | |
| ofSpherePrimitive sphere; | |
| void setup() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include "ofxUI.h" | |
| class ofxUIControlPanel { | |
| public: | |
| ofxUICanvas* gui; | |
| void setup() { | |
| gui = new ofxUICanvas(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "ofMain.h" | |
| // what happens when we can look back in time? i.e., add delays to io? | |
| // this can be modeled with one pass-through-gate or two not-gates. | |
| // or with a single and-gate with both inputs connect to the same output. | |
| // what happens when the the circuit can control its own topology? | |
| // this can be modeled with a very large circuit that switches between sub-circuits | |
| // what happens when we use gates with more than two inputs? | |
| // this can be modeled with a sub-circuit | |
| // what happens when gates have floating point values with schmitt triggers? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> | |
| <style> | |
| body { | |
| margin: 0px; | |
| overflow: hidden; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import pickle | |
| from threading import Timer | |
| import subprocess | |
| from subprocess import call | |
| import os.path | |
| import sys | |
| # config | |
| database = 'allPairs.p' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // make sure to link against /usr/lib/libpcap.dylib | |
| #include "ofMain.h" | |
| #include <pcap/pcap.h> | |
| class ofApp : public ofBaseApp { | |
| public: | |
| pcap_t *pcap; | |
| struct pcap_pkthdr header; | |
| const unsigned char* packet = NULL; | |
| list<string> packetHex; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Keybase proof | |
| I hereby claim: | |
| * I am kylemcdonald on github. | |
| * I am kylemcdonald (https://keybase.io/kylemcdonald) on keybase. | |
| * I have a public key whose fingerprint is 50DA 00A9 1EB3 C84D 7A56 9FAD 3ACA C174 01F5 8612 | |
| To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "ofMain.h" | |
| #include "ofxCv.h" | |
| class ofApp : public ofBaseApp { | |
| public: | |
| void setup() { | |
| bestDiff = 0; | |
| swaps = 64 * 64; | |
| n = 32; | |
| for(int y = 0; y < n; y++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float[] hann(float[] x) { | |
| int n = x.length; | |
| float[] result = new float[n]; | |
| for(int i = 0; i < n; i++) { | |
| float weight = .5 * (1 - cos((TWO_PI * i) / (n - 1))); | |
| result[i] = x[i] * weight; | |
| } | |
| return result; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global targetDomain | |
| global folderName | |
| -- options | |
| set targetDomain to "dropcam.com" | |
| set folderName to (path to desktop as text) & "Dropcam" | |
| -- main code | |
| global recordingFile | |
| global newMovieRecording |