Skip to content

Instantly share code, notes, and snippets.

View ultr7A's full-sized avatar
😇
virtue sus

Jaidyn E. ultr7A

😇
virtue sus
View GitHub Profile
int health = 100,
lives = 3;
score = 0;
float difficulty = 1.5;
float multiplier = 1.0;
array shapes = ["box", "cylinder", "octahedron", "sphere", "hexagon", "cone", "torus"];
array colors = [65280, 10526880, 33023, 16711680, 16744448, 8388863, 65535 ];
array center = [0,0];
import java.awt.*;
import java.awt.AlphaComposite;
import java.applet.*;
import java.awt.event.*;
import java.awt.Graphics.*;
import java.awt.Graphics2D;
import java.net.*;
import java.lang.InterruptedException;
import java.util.Random;
import java.math.*;
const colors = split(' ,.,.,-,-,_,+,+,/,=,L,7,H,%,#,@', ',');
let darken = fn(int idx, int darkness) {
if (idx > darkness) {
return idx - darkness;
} else {
return 0;
}
}
/**
* GraphicsLibrary
*/
const render = fn(array scene, array size) {
int center = Math.floor(size[0] / 2.0);
array colors = split(' ,`,.,.,-,/,+,+,=,L,H,S,#,@', ',');
for (y, size[1]) {
string s = '';

ModelController purely operates on the domain model; not the UI; (you could break this in half and it would be similar)

ModelView is the structure of the read only portions of the UI. It can contain ControlViews and one more more ViewModels

ControlView is the structure of an interactive element which gives the user control

ViewModel is the model of the view it self, not the domain model, so it replaces CSS

export const convolvrLogo = `
./@*&;@*,
.@@*. .&;@*,
..@%, .,@@*.
.*@/, ..@%*,@,.
.@@*. .&@*.
@ultr7A
ultr7A / terminate-the-tomcat.sh
Last active February 5, 2020 16:22
🐱💥🔫
alias goddamnit="$($(lsof -P -iTCP -sTCP:LISTEN | grep 8080) | egrep -o "^[A-Za-z]+\s([0-9]+)" | cut -d " " -f 2) | xargs kill";
@ultr7A
ultr7A / .hyper.js
Created September 14, 2017 23:34
HyperTerm configuration present during what appears to be a conflict with Chromium
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',