Skip to content

Instantly share code, notes, and snippets.

The status is always bike

Will Speak iwillspeak

The status is always bike
View GitHub Profile
iwillspeak / eratosthenes.scm
Created Sep 4, 2020
Sieve of Eratosthenes in Scheme
View eratosthenes.scm
;; Implementation of the Sieve of Eratosthenes
(define (eratosthenes n)
;; Mark multiples of the given prime in the vector
(define (mark-multiples p marked)
(define (mark-multiples-at p m marked)
(if (>= m (vector-length marked))
(vector-set! marked m #t)
iwillspeak / thunker
Last active Dec 17, 2015
Automatic wifi router resetter control scripts. Install `thunker` into your `/usr/local/bin` on the RPi and `thunker_daemon` into your *init.d*. You will need Ruby and the `net-ping` and 'wiringpi' gems. See it in action at
View thunker
#! /usr/bin/ruby
require 'wiringpi'
require 'net/ping'
require 'syslog'
# Constants
OUTPUT_PINA = 0 # RPi Pin 11
OUTPUT_PINB = 1 # RPi Pin 12
iwillspeak / .profile
Last active Aug 26, 2017
Bash Profile Script
View .profile


Dotfiles are now all together at home

iwillspeak / emacs
Last active Dec 17, 2015 Launch ScriptThis script will nestle in yo' `/usr/local/bin` spawnin yo' processes to edit yo' files.
View emacs
#!/usr/bin/env python
import sys
import subprocess
import tempfile
import time
# Emacs is in the Cellar, installed by Homebrew
def run(cmd, args):
dergachev /
Last active Sep 27, 2022
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF


To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

iwillspeak / SampleGreeter.leet
Created Nov 2, 2012
Sketch of the class syntax for Leet
View SampleGreeter.leet
module sample
import io
* Greeting class.
* Stores a list of greetings and prints them to the
* screen upon request
mxswd / md2cre.rb
Created Jul 22, 2012
Convert Markdown to Creole
View md2cre.rb
#!/usr/bin/env ruby
# Invoke with `ruby md2cre.rb`
# Setup: `gem install redcarpet`
require 'rubygems'
require 'redcarpet'
class Creole < Redcarpet::Render::Base
def normal_text(text)
yohhoy / threads.h
Last active Aug 2, 2022
C11 <threads.h> emulation library
View threads.h
* C11 <threads.h> emulation library
* (C) Copyright yohhoy 2012.
* Distributed under the Boost Software License, Version 1.0.
* (See copy at