Skip to content

Instantly share code, notes, and snippets.

View tyleretters's full-sized avatar
㊗️

Tyler Etters tyleretters

㊗️
View GitHub Profile
@robinsloan
robinsloan / langoliers.rb
Last active November 6, 2024 14:31
The Langoliers, a tweet deletion script
require "rubygems"
require "twitter"
require "json"
# things you must configure
TWITTER_USER = "your_username"
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted
# get these from dev.twitter.com
CONSUMER_KEY = "your_consumer_key"
@robinsloan
robinsloan / unfave.rb
Last active November 6, 2024 14:29
Unfave script, because why not??
#!/usr/bin/env ruby
require "rubygems"
require "twitter"
require "json"
require "faraday"
# things you must configure
TWITTER_USER = "your_username"
# get these from dev.twitter.com
@catfact
catfact / softclock.lua
Created December 8, 2020 01:29
softclock - mockup of soft-timer system in lua
-- module for creating collections of soft-timers based on a single fast "superclock"
-- this is a simple singleton implementation for test/mockup
-- TODO: allow multiple instances
-- TODO: allow changing the superclock period
local softclock = {}
-- this field represents the period of the superclock, in seconds
softclock.super_period = 1/128