This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 | |
##### #### | |
# # | |
# # | |
# # | |
# # | |
# # | |
# # | |
#22223 # | |
#11111111# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package event; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class EventBus extends Thread { | |
private EventQueue eventQueue = new EventQueue(8); | |
private Map<Class<?>, EventListener<?>> listeners = new HashMap<>(); | |
public EventBus() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package interpolations; | |
public class Interpolator { | |
public static final Interpolation LIN = x -> x; | |
public static final Interpolation SQR = x -> LIN.interpolate(x) * x; | |
public static final Interpolation CUB = x -> SQR.interpolate(x) * x; | |
public static final Interpolation EXP = x -> Math.pow(2, x) - 1; | |
public static final Interpolation LOG = x -> Math.log(x + 1) / Math.log(2); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Function Plotter</title> | |
<script type="text/javascript"> | |
function plot(func) { | |
var canvas = document.getElementById('canvas'); | |
var ctx = canvas.getContext('2d'); | |
var axes = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cli; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.function.Consumer; | |
public class Parser { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* | |
* popcorn - let's do this! | |
* ------------------------ | |
*/ | |
var Arrangement = { | |
lead: { | |
notes: [ |