Skip to content

Instantly share code, notes, and snippets.

View tyleretters's full-sized avatar
㊗️

Tyler Etters tyleretters

㊗️
View GitHub Profile
@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
@robinsloan
robinsloan / unfave.rb
Last active June 5, 2022 21:32
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
@robinsloan
robinsloan / langoliers.rb
Last active April 7, 2024 13:22
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"