Skip to content

Instantly share code, notes, and snippets.

@joshuajnoble
joshuajnoble / ofApp.cpp
Created November 17, 2015 22:05
convex finding in OF
#pragma once
#include "ofxOpenCv.h"
#include "background_segm.hpp"
#include "ofMain.h"
class ofApp : public ofBaseApp{
public:
#define NUMBER_OF_FILE_PLAYERS 8
#define NUMBER_OF_CHANNELS 8
//--------------------------------------------------------------
void ofApp::setup()
{
// Example of how to set matrix mixer levels
@joshuajnoble
joshuajnoble / slackDownloadThenDelete.py
Last active February 16, 2018 05:46 — forked from jayliu50/slackDownloadThenDelete.py
Download then delete files older than 14 days from Slack
import sys
import requests
import json
import calendar
from datetime import datetime, timedelta
# This script will download, then delete the non-external files older than 14 days.
_token = "" # administrator token, from https://api.slack.com/web
_project = "" # project name, from http://[project].slack.com
#include <Adafruit_GPS.h>
#include "parsegps.h"
#include "tzmaths.h"
#include "timezones.h"
#include "tz_coords.h"
Adafruit_GPS GPS(&Serial2);
#include <TinyGPS.h>
#include <parsegpsBitmap.h>
#include <minitzBitmap.h>
#include <SD.h>
minitzBitmap mb;
//
TinyGPS gps;
'use strict';
// Quickstart example
// See https://wit.ai/l5t/Quickstart
// When not cloning the `node-wit` repo, replace the `require` like so:
const Wit = require('node-wit').Wit;
//const Wit = require('../').Wit;
var request = require('request');
import java.net.URL;
import java.io.*;
import javax.net.ssl.HttpsURLConnection;
import java.net.URLEncoder;
String clientId = "joshuajnoble@hotmail.com";
String clientSecret = "8264ac9334dd47feb7a7ad9a26ddaccc";
String speechHost = "https://speech.platform.bing.com";
public class JavaSoundRecorder {
long length;
// format of audio file
AudioFileFormat.Type fileType = AudioFileFormat.Type.WAVE;
// the line from which audio data is captured
TargetDataLine line;
import gab.opencv.*;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferInt;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Iterator;
import java.util.List;
import org.opencv.core.Core;
#include "annTrain.h"
const int networkInputSize = 512;
void annTrain::setup()
{
train(ofToDataPath("fingers/all", true), 512, 0.7);
}