Skip to content

Instantly share code, notes, and snippets.

View Trimad's full-sized avatar
😡
AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH

Scream Skellygore Trimad

😡
AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
View GitHub Profile
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));
import peasy.*;
PeasyCam cam;
float angle = 0;
int w = 64;
float magicAngle;
float maxD;
int orthoBound = 2048;
void setup() {
//fullScreen(P3D);
/* * * * * * *
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.*;
/* * * * * * *
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;
/* * * * * * * * * * *
Convert_Any_To_Base_10
Tristan Madden
1/16/2018
* * * * * * * * * * * */
var raw;
var temp;
var stored = [];
var answer;
@Trimad
Trimad / .cpp
Created March 24, 2018 22:29
Basic Prime Checker
#include <iostream>
#include <cmath>
using std::cout;
using std::cin;
int main() {
int myNumber = 0;
bool prime = true;
/* * * * * * * * *
* 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 {
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++) {
#include <iostream>
#include <iomanip>
#include "rectangleType.h"
using namespace std;
int main() {
rectangleType rect(14, 16);
cout << "Nothing to see here.";
return 0;
}
#include "rectangleType.h"
rectangleType::rectangleType() {}
rectangleType::rectangleType(double _length, double _width) {
length = _length;
width = _width;
}
double rectangleType::getArea() {
return length * width;
}
double rectangleType::getLength() {