Skip to content

Instantly share code, notes, and snippets.

@Robaum
Robaum / animate-waypoints.js
Created May 5, 2014 22:40
Using Animate.css with jQuery Waypoints
//Animate from top
$('.animated').waypoint(function() {
$(this).toggleClass($(this).data('animated'));
},
{ offset: 'bottom-in-view' });
//Animate from bottom
$('.animated').waypoint(function() {
$(this).toggleClass($(this).data('animated'));
});
@Robaum
Robaum / ffmpeg.py
Created April 11, 2014 21:27
Cut a movie second by second with ffmpeg
# Clock starter
seconds = 0
minutes = 0
hours = 0
frame=0
movieFile = 'TheMovie.avi'
while True:
seconds +=1
if seconds >= 60:
@Robaum
Robaum / bot.py
Last active August 29, 2015 13:59
Simple twitter bot with python
# We use the twython lib to post in twitter
from twython import Twython
import time, sys
# Twitter Keys
# API key
APP_KEY = ''
# Secret API key
APP_SECRET = ''
# Access token
@Robaum
Robaum / gist:5584151
Created May 15, 2013 13:54
Test: gist test from sublime2
gist test from sublime2