Skip to content

Instantly share code, notes, and snippets.

@jadar
jadar / SwiftMIDI.swift
Last active May 6, 2023 16:41
Swift class making use of AudioToolbox
//
// 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 January 9, 2015 19:46
Easy iOS Error Log Symbolication
#!/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 September 4, 2014 21:01
Minecraft Mod Bootstrap
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 August 29, 2015 14:01
Heisenui json spec
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': {
@jadar
jadar / gist:56c3dfeb3f270a4b3201
Created May 14, 2014 20:45
Heisen ui class spec
com.heisenbugdev.HeisenUI
--
// JSON, ModID
registerView(HashMap, String)
registerView(HeisenUI, String)
com.heisenbugdev.gui.HeisenGUIPool (Enum Singleton)
---
@jadar
jadar / gist:f706c3ef42ccb9ce577e
Last active August 29, 2015 14:00
Law of Cosines
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 August 29, 2015 13:58 — forked from anonymous/jsbin.xufohiqu.html
JavaScript converter for converting Decibels and Watts-per-square-meter.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<table>
<tr>
@jadar
jadar / findFilesAndPost.py
Last active December 28, 2015 18:09
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.
#!/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 05:45
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.
#!/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 "-------------------"