This file contains 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
import { | |
green, | |
cyan, | |
bold, | |
yellow, | |
red | |
} from "https://deno.land/std@v0.20.0/fmt/colors.ts"; | |
import { | |
Application, |
This file contains 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
/* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* For more information, please refer to <https://unlicense.org> | |
*/ | |
//Regular text | |
#define BLK "\e[0;30m" | |
#define RED "\e[0;31m" | |
#define GRN "\e[0;32m" |
This file contains 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
#!/bin/sh | |
package_name=$1 | |
./gradlew assembleDebug | |
adb -d install -r app/build/outputs/apk/app-debug.apk | |
adb shell monkey -p "$package_name" -c android.intent.category.LAUNCHER 1 | |
./logcat.sh "$package_name" |
This file contains 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
// This is a tiny radix-2 FFT implementation in JavaScript. | |
// The function takes a complex valued input signal, and performs an in-place | |
// Fast Fourier Transform (i.e. the result is returned in x_re, x_im). The | |
// function arguments can be any Array type (including typed arrays). | |
// Code size: <300 bytes after Closure Compiler. | |
function FFT(x_re, x_im) { | |
var m = x_re.length / 2, k, X_re = [], X_im = [], Y_re = [], Y_im = [], | |
a, b, tw_re, tw_im; | |
for (k = 0; k < m; ++k) { |
This file contains 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
/** | |
* An accurate simulation of the elytra item as of Minecraft 15w41b | |
*/ | |
public class ElytraModel | |
{ | |
public int glideTime; | |
public int damageTaken; | |
public double posX; | |
public double posY; |
This file contains 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
// convert 0..255 R,G,B values to binary string | |
RGBToBin = function(r,g,b){ | |
var bin = r << 16 | g << 8 | b; | |
return (function(h){ | |
return new Array(25-h.length).join("0")+h | |
})(bin.toString(2)) | |
} | |
// convert 0..255 R,G,B values to a hexidecimal color string | |
RGBToHex = function(r,g,b){ |