Skip to content

Instantly share code, notes, and snippets.

Sam Lavigne antiboredom

Block or report user

Report or block antiboredom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ice.csv
name title location url
Douglas Ruszcyk Federal Law Enforcement Greater Pittsburgh Area https://linkedin.com/in/AAEAABnoAewBged5c9whJJ6YhgWops3AGNi1cFI
Brandon Lowy Assistant Chief Counsel Greater Boston Area https://linkedin.com/in/AAEAAALLv98B_f6d_d0LwenYpAbrl1e0yY1TbDw
Euna Song Staff Officer Phoenix, Arizona Area https://linkedin.com/in/AAEAAAC71EgBORQx2SAWb-ZWau-X02nq72mqztI
Michael C. Brown Chief Information Officer Washington D.C. Metro Area https://linkedin.com/in/AAEAABgjI3sBNpRUTUfx3YRgPhe2FlrrFoOVfzU
David Larrimore Chief Technology Officer Washington D.C. Metro Area https://linkedin.com/in/AAEAAAfaNsgBJBTsDVWjWQ8zaTEXKoPyOhzSLVM
Jason Brazie Deportation Officer Albany, New York Area https://linkedin.com/in/AAEAAAHiL4cB8gv5ZT42Nipm1ZV5sk0x5hN2CuQ
Beth Cappello Deputy Chief Information Officer Washington D.C. Metro Area https://linkedin.com/in/AAEAAA9D-kIBfwBisHu-MN-wMVx9xgE81XCs_RY
Jim Porter Senior Program Manager Washington D.C. Metro Area https://linkedin.com/in/AAEAAAAFnGsBTixn3IXm1WAucvskL
@antiboredom
antiboredom / transcribe.js
Last active May 27, 2018
Transcribe video/audio using IBM Watson
View transcribe.js
var request = require('request');
var fs = require('fs');
var sox = require('sox');
var spawn = require('child_process').spawn;
var WATSON_USER = '';
var WATSON_PASS = '';
var url = 'https://stream.watsonplatform.net/speech-to-text/api/v1/recognize';
View script.js
var canvas;
var handleVal;
var isClicked = false;
//var clock;
// Class Definition
var UiHandle = function (startX, startY, width, height){
this.x = startX;
this.y = startY;
View split_by_word.js
var tweet = "These 5 incredible stories from the IDF are sure to leave #inspired";
// turn tweet into an array
var words = tweet.split(" ");
// get half the length of the words
var half_length = Math.ceil(arrayName.length / 2);
// get the words on the left side
var leftSide = words.splice(0, half_length);
@antiboredom
antiboredom / autocomplete.py
Created Feb 6, 2015
scrapes google autocomplete suggestions
View autocomplete.py
import sys
import urllib
import time
import xml.etree.ElementTree as ET
chars = 'abcdefghijklmnopqrstuvwxyz'
q = sys.argv[1]
url = 'http://suggestqueries.google.com/complete/search?output=toolbar&hl=en&q=' + urllib.quote(q.strip() + ' ')
def suggest(url):
@antiboredom
antiboredom / index.html
Created Dec 15, 2014
A simple example showing how to save animated gifs from p5.js sketches, using https://github.com/jnordberg/gif.js
View index.html
<html>
<head>
<script src="gif.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/p5.js/0.3.11/p5.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/p5.js/0.3.11/addons/p5.dom.js"></script>
<script src="sketch.js"></script>
</head>
<body>
<p>First, allow camera access.<p><p>Then click once to start recording, and another time finish recording and make a gif.</p>
</body>
@antiboredom
antiboredom / sun.pde
Created Sep 8, 2013
Sun sketch for ICM week 1
View sun.pde
int rays = 24;
void setup() {
size(640, 460);
colorMode(HSB, 100, 100, 100, 100);
noStroke();
drawSun();
}
void draw() {}
You can’t perform that action at this time.