Skip to content

Instantly share code, notes, and snippets.

View jvantuyl's full-sized avatar
🤨

Jayson Vantuyl jvantuyl

🤨
View GitHub Profile
@jvantuyl
jvantuyl / led_magic.py
Created May 29, 2019 20:21
Adafruit CircuitExpress Fiddling
from adafruit_circuitplayground.express import cpx
import time
## Constants
# timing settings
SLEEP = 0.001
# light range settings
MIN = 0
MAX = 16
@jvantuyl
jvantuyl / mods.md
Last active October 19, 2015 09:28
Mod List

Core / Support

  • FastCraft
  • MineTweaker

Client

  • Custom Main Menu
  • InventoryTweaks
  • JourneyMaps
-module(fizzbuzz).
-export([start/0, watcher/0]).
start() ->
Watcher = spawn_link(fizzbuzz, watcher, []),
send_loop(Watcher, 1, 1000000),
receive done -> ok end,
init:stop().
send_loop(Pid, N, Max) when N =< Max ->
.
./1.7.10
./1.7.10/Baubles-1.7.10-1.0.1.10.jar
./1.7.10/CodeChickenLib-1.7.10-1.1.1.110-universal.jar
./1.7.10/commons-codec-1.9.jar
./1.7.10/commons-compress-1.8.1.jar
./1.7.10/ForgeMultipart-1.7.10-1.1.1.320-universal.jar
./1.7.10/MrTJPCore-1.7.10-1.0.5.11-universal.jar
./AOBD-2.4.0.jar
./appliedenergistics2-rv2-beta-8.jar
@jvantuyl
jvantuyl / fib.py
Created April 3, 2015 20:15
Fibonnaci Series List
class FibSeries(list):
def __init__(self):
bare_self = super(FibSeries, self)
bare_self.__setslice__(0, bare_self.__len__(), (1, 1,))
def __getitem__(self, i):
bare_self = super(FibSeries, self)
bare_len = bare_self.__len__()
if not i < bare_len:
self._fill_fib(bare_len, i)
@jvantuyl
jvantuyl / disabled.txt
Last active August 29, 2015 14:02
FTB Mods
advancedgenetics
backpack
bibliowoods-forestry
binnie-mods
Blood Magic
Calclavia
compactsolars
CompactWindmills
DenPipes
DenPipes-Emerald
@jvantuyl
jvantuyl / flood.lua
Last active August 29, 2015 14:01
ComputerCraft Wall Building Helpers
map = {}
x = 0
y = 0
h = 0
function reset()
map = {}
x = 0
y = 0
end
@jvantuyl
jvantuyl / keybase.md
Created April 11, 2014 18:37
Keybase Verification

Keybase proof

I hereby claim:

  • I am jvantuyl on github.
  • I am jv (https://keybase.io/jv) on keybase.
  • I have a public key whose fingerprint is 96C7 65A1 E309 38FA AD25 4F9B E331 46E1 A3D0 B913

To claim this, I am signing this object:

@jvantuyl
jvantuyl / error_message.txt
Created November 5, 2010 19:21
Output of Redcar when crashed by save_all_on_lose_focus plugin bug
Redcar 0.8.1 ( i686-darwin10.3.0 )
java -XstartOnFirstThread -d32 -client -Xmx500m -Xss1024k -Djruby.memory.max=500m -Djruby.stack.max=1024k -cp /Users/kagato/.redcar/assets/jruby-complete-1.5.3.jar org.jruby.Main /Users/kagato/.rvm/gems/ruby-1.8.7-p174/gems/redcar-0.8.1/bin/redcar --no-sub-jruby --ignore-stdin
Redcar 0.8.1 ( java )
loading plugins took 5.058
took 1.35s to load textmate assets
initializing gui took 1.226s
project start took 0.008s
#<Redcar::ApplicationSWT::Treebook:0x1d866c5>#<Redcar::ApplicationSWT::Treebook:0x1d866c5>#<Redcar::ApplicationSWT::Treebook:0x1d866c5>start time: 8.815
/Users/kagato/.redcar/plugins/redcar-save-all-on-lose-focus/lib/save_all_on_lose_focus.rb:8: undefined method `edit_view' for #<Redcar::HtmlTab "Plugins"> (NoMethodError)
@jvantuyl
jvantuyl / pathlist.rb
Created February 13, 2010 05:42
Ruby to turn a delimited string into a list of successive parent paths.
require 'pp'
def pathlist( st, delim )
lst = pl_helper( (st.split delim), [])
lst.map! { |l|
l.join delim
}
end
def pl_helper( lst, accum )