Skip to content

Instantly share code, notes, and snippets.

Jacob Rhoda jadar

Block or report user

Report or block jadar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jadar
jadar / SwiftMIDI.swift
Last active Mar 31, 2018
Swift class making use of AudioToolbox
View SwiftMIDI.swift
//
// swift
// SwiftMIDI
//
// Created by Jacob Rhoda on 12/24/16.
// Copyright © 2016 Jadar. All rights reserved.
//
import Foundation
import CoreMIDI
@jadar
jadar / symbolicate.sh
Created Jan 9, 2015
Easy iOS Error Log Symbolication
View symbolicate.sh
#!/bin/bash
# Symbolicate Crash
# This script will symbolicate crash logs using your choice Xcode installation.
CRASH_PATH=$1
SYMBOL_PATH=$2
if [[ -z $CRASH_PATH ]]; then
printf "Where is the crash log? "
@jadar
jadar / Bootstrap.java
Created Sep 4, 2014
Minecraft Mod Bootstrap
View Bootstrap.java
import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import net.minecraft.client.LoadingScreenRenderer;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiCreateWorld;
import net.minecraft.client.gui.GuiMainMenu;
import net.minecraft.client.gui.GuiSelectWorld;
import net.minecraft.world.WorldSettings;
import net.minecraft.world.WorldType;
@jadar
jadar / gist:05f1e3ff4ad17d9236d1
Last active Aug 29, 2015
Heisenui json spec
View gist:05f1e3ff4ad17d9236d1
HeisenUI JSON Spec
Comments are #. Note that these comments are not valid in actual JSON spec.
Each JSON object here should correspond to an actual Java object.
{
'identifier': '',
'controllerClass': 'com.heisenbugdev.example.gui.ExampleViewController'
' this is a list of all the elements in this view. Button, list, tab, etc views are the elements.': 'comment'
'view': {
View gist:56c3dfeb3f270a4b3201
com.heisenbugdev.HeisenUI
--
// JSON, ModID
registerView(HashMap, String)
registerView(HeisenUI, String)
com.heisenbugdev.gui.HeisenGUIPool (Enum Singleton)
---
View gist:f706c3ef42ccb9ce577e
var a = 8;
var b = 9;
var c = 90;
c = c * Math.PI/180;
var a_square = Math.pow(a, 2);
var b_square = Math.pow(b, 2);
//console.log(Math.cos(Math.PI));
@jadar
jadar / jsbin.xufohiqu.html
Last active Aug 29, 2015 — forked from anonymous/jsbin.xufohiqu.html
JavaScript converter for converting Decibels and Watts-per-square-meter.
View jsbin.xufohiqu.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<table>
<tr>
@jadar
jadar / findFilesAndPost.py
Last active Dec 28, 2015
This gist is a Python script that will perform an HTTP POST to a server with data from Jenkins and a Maven Project. Kinda hard coded but whatever. Replace values that have an asterisk in front of them with your own.
View findFilesAndPost.py
#!/usr/bin/python
import os
import httplib
import urllib
import xml.sax
workspace = os.environ.get('WORKSPACE')
# data to send to sever
@jadar
jadar / gist:5648038
Created May 25, 2013
This is a bash script that will start up a MultiMC instance with a OpenGL recorder like FRAPS in Linux called glc. Simply put your MultiMC folder in the documents folder, then launch this script. Next type in the full name of the MultiMC instance and voila.
View gist:5648038
#!/bin/sh
while true; do
read -p "What is the instance name? " instance
if [ -d ~/Documents/MultiMC/instances/$instance ]
then
dateVar=$(date +%s)
clear
echo
echo "-------------------"
You can’t perform that action at this time.