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
let angle = 0; | |
let w = 55; | |
let magicAngle; | |
let maxD; | |
//let img; | |
let orthoBound = 900; | |
let counter = 0; | |
function setup() { | |
createCanvas(1080, 1080, WEBGL); | |
magicAngle = atan(1 / sqrt(2)); |
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 peasy.*; | |
PeasyCam cam; | |
float angle = 0; | |
int w = 64; | |
float magicAngle; | |
float maxD; | |
int orthoBound = 2048; | |
void setup() { | |
//fullScreen(P3D); |
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
/* * * * * * * | |
Main File | |
Tristan Madden | |
1/2/2018 | |
* * * * * * * */ | |
//ffmpeg -r 60 -f image2 -s 3840x2160 -i frame-%04d.tif -c:v libx264 -preset slow -profile:v high -crf 9 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low test4.mp4 | |
import ch.bildspur.postfx.builder.*; | |
import ch.bildspur.postfx.pass.*; |
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
/* * * * * * * | |
Main File | |
Tristan Madden | |
1/3/2018 | |
* * * * * * * */ | |
//ffmpeg -i test.mp4 -i music.mp3 -codec copy -shortest output.mp4 | |
//ffmpeg -r 60 -f image2 -s 3840x2160 -i frame-%04d.tif -c:v libx264 -preset slow -profile:v high -crf 9 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low test4.mp4 | |
OpenSimplexNoise noise; |
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_Any_To_Base_10 | |
Tristan Madden | |
1/16/2018 | |
* * * * * * * * * * * */ | |
var raw; | |
var temp; | |
var stored = []; | |
var answer; |
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 <iostream> | |
#include <cmath> | |
using std::cout; | |
using std::cin; | |
int main() { | |
int myNumber = 0; | |
bool prime = true; |
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
/* * * * * * * * * | |
* Tristan Madden | |
* 04/28/2018 | |
* https://onlinejudge.org/index.php?option=onlinejudge&Itemid=8&page=show_problem&problem=3553 | |
* * * * * * * * */ | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
public class Main { |
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 java.awt.geom.Point2D; | |
class Sandbox { | |
public static void main(String[] args) { | |
Point2D.Double a = new Point2D.Double(5.0, -21.0); | |
Point2D.Double b = new Point2D.Double(17.0, -3.0); | |
long startTime, endTime; | |
double distanceForumla1, distanceFormula2, distanceFormula3; | |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
startTime = System.currentTimeMillis(); | |
for (int i = 0; i < 10000000; 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
#include <iostream> | |
#include <iomanip> | |
#include "rectangleType.h" | |
using namespace std; | |
int main() { | |
rectangleType rect(14, 16); | |
cout << "Nothing to see here."; | |
return 0; | |
} |
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 "rectangleType.h" | |
rectangleType::rectangleType() {} | |
rectangleType::rectangleType(double _length, double _width) { | |
length = _length; | |
width = _width; | |
} | |
double rectangleType::getArea() { | |
return length * width; | |
} | |
double rectangleType::getLength() { |