This file contains 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
// 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); |
This file contains 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 "annTrain.h" | |
const int networkInputSize = 512; | |
void annTrain::setup() | |
{ | |
train(ofToDataPath("fingers/all", true), 512, 0.7); | |
} |
This file contains 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 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; |
This file contains 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
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; |
This file contains 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 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"; |
This file contains 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
'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'); |
This file contains 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 <TinyGPS.h> | |
#include <parsegpsBitmap.h> | |
#include <minitzBitmap.h> | |
#include <SD.h> | |
minitzBitmap mb; | |
// | |
TinyGPS gps; |
This file contains 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 <Adafruit_GPS.h> | |
#include "parsegps.h" | |
#include "tzmaths.h" | |
#include "timezones.h" | |
#include "tz_coords.h" | |
Adafruit_GPS GPS(&Serial2); |
This file contains 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 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 |
This file contains 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
#define NUMBER_OF_FILE_PLAYERS 8 | |
#define NUMBER_OF_CHANNELS 8 | |
//-------------------------------------------------------------- | |
void ofApp::setup() | |
{ | |
// Example of how to set matrix mixer levels | |