Skip to content

Instantly share code, notes, and snippets.

// before running this you must do:
// npm install
var express = require('express');
var app = express();
var serveIndex = require('serve-index');
var serveStatic = require('serve-static');
var http = require('http').Server(app);
var io = require('socket.io')(http);
#include "annTrain.h"
const int networkInputSize = 512;
void annTrain::setup()
{
train(ofToDataPath("fingers/all", true), 512, 0.7);
}
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;
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 java.net.URL;
import java.io.*;
import javax.net.ssl.HttpsURLConnection;
import java.net.URLEncoder;
String clientId = "[email protected]";
String clientSecret = "8264ac9334dd47feb7a7ad9a26ddaccc";
String speechHost = "https://speech.platform.bing.com";
'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');
#include <TinyGPS.h>
#include <parsegpsBitmap.h>
#include <minitzBitmap.h>
#include <SD.h>
minitzBitmap mb;
//
TinyGPS gps;
#include <Adafruit_GPS.h>
#include "parsegps.h"
#include "tzmaths.h"
#include "timezones.h"
#include "tz_coords.h"
Adafruit_GPS GPS(&Serial2);
@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
#define NUMBER_OF_FILE_PLAYERS 8
#define NUMBER_OF_CHANNELS 8
//--------------------------------------------------------------
void ofApp::setup()
{
// Example of how to set matrix mixer levels