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
// ==UserScript== | |
// @name Conceal AP Scores | |
// @namespace https://jaeheonshim.com | |
// @version 1.0 | |
// @description Conceals scores on AP score report page until you reveal each score individually. | |
// @author Jaeheon Shim | |
// @match https://apstudents.collegeboard.org/view-scores | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=collegeboard.org | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// @grant none |
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 com.badlogic.gdx.graphics.Color; | |
import com.badlogic.gdx.graphics.Pixmap; | |
public class RoundedRectangles { | |
/** | |
* Draws a filled rounded rectangle taking up the full width and height of the Pixmap. | |
* @param pixmap Pixmap to draw rounded rectangle on | |
* @param radius Radius of rounded corners | |
* @return The pixmap | |
*/ |
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 javax.sound.midi.*; | |
import java.awt.*; | |
import java.awt.event.InputEvent; | |
import java.awt.event.KeyEvent; | |
import java.util.Map; | |
import java.util.Scanner; | |
import java.util.concurrent.atomic.AtomicInteger; | |
public class MidiHandler { | |
private MidiDevice inputDevice; |
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
def determinant(matrix): | |
if len(matrix) == 1: | |
return matrix[0][0] | |
if len(matrix) == 2: | |
return matrix[0][0] * matrix[1][1] - matrix[0][1] * matrix[1][0] | |
sign = 1 | |
det = 0 | |
for i in range(len(matrix)): | |
det += matrix[0][i] * determinant(minor(matrix, 0, i)) * sign | |
sign *= -1 |
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
#include <math.h> | |
// ===== TYPE AND OPERATION DEFINITIONS ===== | |
#define _NTYPE_SQRT(n) sqrtl(n) | |
typedef long double _NTYPE; | |
// ========== | |
typedef struct complex { | |
_NTYPE real; | |
_NTYPE i; |
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
package brain; | |
import actor.Creature; | |
import actor.GameObject; | |
import grid.Location; | |
public class AStarUtil { | |
private PriorityQueue<Node> openList = new PriorityQueue<>(); | |
private Set<Node> closedList = new HashSet<>(); |
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
package brain; | |
import actor.GameObject; | |
import grid.Location; | |
import java.util.*; | |
public class AStarUtil { | |
private PriorityQueue<Node> openList = new PriorityQueue<>(); | |
private Set<Node> closedList = new HashSet<>(); |
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
1/2 < floor(mod(floor(y/17)*2^(-17*floor(x)-mod(floor(y),17)),2)) | |
Constant k: 53025630449919516305794555145176559852494297839841120715661516560065261393879737063336176846178468973301063087223765665824314971283618022541525669974126578370803315428489561147738989680370644019395207321265990458908342194366873957546836387126097325649786212132993653676186727203879383442596824251022967691260527038356957919419078238248371450430211035025236809004304798246691077285961805241071737043300674863158018691439912564030591979991659606406277177927139442643704275565890298776128141168913558394827577806908077444114962066702336 |