Skip to content

Instantly share code, notes, and snippets.

View rossgoodwin's full-sized avatar
💭
I may be slow to respond.

Ross Goodwin rossgoodwin

💭
I may be slow to respond.
View GitHub Profile
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
@rossgoodwin
rossgoodwin / actions.js
Created December 23, 2016 04:17 — forked from anonymous/actions.js
wit.ai bot engine app
var messengerSend = require('messengerSend');
// ------------------------------------------------------------
// Actions
var actions = {
send: send,
addTopics: addTopics,
getQuestion: getQuestion,
findPriorDiscussions: findPriorDiscussions,
compileEbook: compileEbook
@rossgoodwin
rossgoodwin / webm.md
Last active August 29, 2015 14:24 — forked from ndarville/webm.md

Grab ffmpeg from https://www.ffmpeg.org/download.html

It's a command line tool which means you will have to type things with your keyboard instead of clicking on buttons.

The most trivial operation would be converting gifs:

ffmpeg -i your_gif.gif -c:v libvpx -crf 12 -b:v 500K output.webm
  • -crf values can go from 4 to 63. Lower values mean better quality.
  • -b:v is the maximum allowed bitrate. Higher means better quality.
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
(function(window){
var EVENT_EXISTS = 'GlobalEvents: Event already exists.';
var eventIsRunning,
_eventStack,
_findByName,
stackEvent,
removeEvent,
eventListener,
@rossgoodwin
rossgoodwin / dsklfj
Created June 12, 2014 00:02 — forked from 1328/dsklfj
import random
import time
import collections
import itertools
import numpy as np
from pprint import pprint
from PIL import Image
import random
import time
import collections
import itertools
import numpy as np
from pprint import pprint
from PIL import Image