Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
const Twit = require('twit')
exports.main = (args) => {
let twitter_consumer_key = args.twitter_consumer_key
let twitter_consumer_secret = args.twitter_consumer_secret
let twitter_access_token = args.twitter_access_token
let twitter_access_token_secret = args.twitter_access_token_secret
// If the required tokens aren't received end all operations
if (!twitter_consumer_key || !twitter_consumer_secret ||
from watson_developer_cloud import SpeechToTextV1 as SpeechToText
# Use this method to send the audio to Watson and save the response
def get_and_save_transcript(audio_file, transcript_file):
with open(audio_file, 'rb') as af:
resp = stt.recognize(af,
content_type='audio/wav',
timestamps=True,
continuous=True,
word_confidence=True,

Keybase proof

I hereby claim:

  • I am samuelcouch on github.
  • I am samuelcouch (https://keybase.io/samuelcouch) on keybase.
  • I have a public key ASADeXwY4Ud3xz12_mO4OJV3yNVSMUMcJQ8iaejENMa1CAo

To claim this, I am signing this object:

# Framer Git Ignore
# General OSX
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
@samuelcouch
samuelcouch / gist:4092155
Created November 17, 2012 00:24
Program to calculate the mean and standard deviation of a set of inputs from a file. Created for CSCI course by Sam Couch
#include <iostream>
#include <iomanip>
#include <cmath>
#include <fstream>
#include <string>
//------------------------------------------------------------------------------
using namespace std;
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
bool GetInputOpenFile(ifstream &inFile, string &name);
@samuelcouch
samuelcouch / gist:4027378
Created November 6, 2012 20:41
Twitter Search and Display
from twython import Twython
search_list = ['OMGrobots', 'FRC', 'FIRST Robotics', 'Dean Kamen']
# For the sake of testing, added more search terms
for tweet_keyword in search_list:
twitter = Twython()
search_results = twitter.search(q=tweet_keyword, rpp="100")
@samuelcouch
samuelcouch / MissionSol.rb
Created October 30, 2012 08:49
Curiosity & Opportunity Mission Sol Count
#Ruby code ported by Sam Couch, original inspiration -> https://github.com/jtauber/mars-clock
millis = (Time.now.to_f)*1000
jd_ut = (2440587.5 + (( millis ) / ((8.64)*(10**7))))
jd_tt = (jd_ut + (35 + 32.184) / 86400)
j2000 = jd_tt - 2451545.0
msd = (((j2000 - 4.5) / 1.027491252) + 44796.0 - 0.00096)
mtc = ((24 * msd) % 24)
curiosity_lambda = 360 - 137.4
curiosity_sol = (((msd - curiosity_lambda / 360).floor) - 49268)
curl -H "Authorization: Bearer <token>" --data-urlencode "url=http://www.clarifai.com/img/metro-north.jpg" --data-urlencode "url=http://www.clarifai.com/img/metro-north.jpg" https://api.clarifai.com/v1/tag/
package edu.temple.couchlab2;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;