Skip to content

Instantly share code, notes, and snippets.

View keplersj's full-sized avatar
🐦
the birds work for the bourgeoisie

Kepler Sticka-Jones keplersj

🐦
the birds work for the bourgeoisie
View GitHub Profile
---- Minecraft Crash Report ----
// I let you down. Sorry :(
Time: 2/17/14 4:38 PM
Description: Rendering Block Entity
java.lang.NullPointerException: Rendering Block Entity
at k2b6s9j.boatcraft.api.registry.ModifierRegistry$.getModifier(ModifierRegistry.scala:49)
at k2b6s9j.boatcraft.api.Boat$RenderCustomBoat.renderItem(Boat.scala:400)
at k2b6s9j.boatcraft.api.Boat$RenderCustomBoat.renderItem(Boat.scala:330)
---- Minecraft Crash Report ----
// I let you down. Sorry :(
Time: 4/30/14 4:50 PM
Description: Initializing game
java.lang.NoClassDefFoundError: thaumcraft/api/aspects/AspectList
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
at java.lang.Class.getDeclaredMethods(Class.java:1855)
require 'base64'
require 'json'
require 'net/http'
manifest = JSON.parse(IO.read('build/libs/manifest.json'))
req = Net::HTTP::Post.new('/builds.json', 'Content-Type' => 'application/json')
req['X-User-Email'] = ENV['HBD_EMAIL_PROD']
req['X-User-Token'] = ENV['HBD_TOKEN_PROD']
req.body = manifest.to_json
@keplersj
keplersj / Rubycraft.java
Created May 25, 2014 19:06
The Current JRuby Compiled Rubycraft class.
package k2b6s9j.rubycraft;
import org.jruby.Ruby;
import org.jruby.RubyObject;
import org.jruby.runtime.Helpers;
import org.jruby.runtime.builtin.IRubyObject;
import org.jruby.javasupport.JavaUtil;
import org.jruby.RubyClass;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
@keplersj
keplersj / gist:f47d9f6dbba5072fd2d9
Created July 3, 2014 00:56
The first running McBrew sandbox!
*[master][~MCBREW_DIRECTORY]$ irb rvm:ruby-2.1.2
2.1.2 :001 > require_relative 'sandboxes/vanilla/vanilla'
=> true
2.1.2 :002 > vanilla = Vanilla.new
=> #<Vanilla:0x007fe7c90dd870>
2.1.2 :003 > vanilla.run
[18:45:40] [Server thread/INFO]: Starting minecraft server version 1.7.10
[18:45:40] [Server thread/INFO]: Loading properties
[18:45:40] [Server thread/WARN]: server.properties does not exist
[18:45:40] [Server thread/INFO]: Generating new properties file
@keplersj
keplersj / PortableStoryboard.xml
Created July 8, 2014 08:20
The last Storyboard File I will ever interact with. a.k.a. the Define Portable Story. Posting here so that I can more easily recreate it in Ruby.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6154.17" systemVersion="14A261i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="c2g-df-8MK">
<dependencies>
<deployment defaultVersion="1792" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6153.11"/>
</dependencies>
<scenes>
<!--Dictonary View Controller-->
<scene sceneID="5">
<objects>
@keplersj
keplersj / commands.markdown
Created September 13, 2014 17:46
Crafter Commands

Crafter

Resource = resource pack, mod, etc

All commands offer plumbing versions --plumbing. This offers machine readable output. Example below:

$ craft login username password
DONE success
@keplersj
keplersj / life.groovy
Last active August 29, 2015 14:07
Life Code Sample
import java.util.Scanner
class Life {
void show(boolean[][] grid){
s = ""
for(boolean[] row : grid){
for(boolean val : row)
if(val)
s += "*"
else
@keplersj
keplersj / die.groovy
Last active August 29, 2015 14:07
Die Code Sample
import java.util.Random
/**
* Models a playing die with sides numbered 1 to N.
* All sides have uniform probablity of being rolled.
*
* @author Summer CS 307 class
*/
class Die
{ static final DEFAULT_SIDES = 6;
Verifying I am +k2b6s9j on my passcard. https://onename.com/k2b6s9j