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 processing.core.PApplet; | |
public class MyExampleProcessingApp extends PApplet { | |
public static void main(String[] args) { | |
System.out.println("MyExampleProcessingApp main() started"); | |
// The string must match your full class name: | |
PApplet.main(new String[] { "MyExampleProcessingApp" }); |
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
class Point { | |
x: number; | |
y: number; | |
/** the label for this point */ | |
label: string; | |
constructor(givenLabel: string,givenX: number, givenY:number){ | |
console.log("constructor was called") | |
this.x = givenX; |
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
const fs = require('fs/promises'); | |
async function readFileAndSolveProblem() { | |
const inputRaw = await fs.readFile("./inputs/inputDay1A.txt", { encoding: 'utf8' }) | |
const inputLines = inputRaw.split("\n"); | |
console.log({ inputLines }) | |
//TODO: solve the problem here, based on inputLines | |
} |
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 fs from 'fs/promises'; | |
async function readFileAndSolveProblem() { | |
const inputRaw = await fs.readFile("./inputs/inputDay1A.txt", { encoding: 'utf8' }) | |
const inputLines: string[] = inputRaw.split("\n"); | |
console.log({ inputLines }) | |
//TODO: solve the problem here, based on inputLines | |
} |
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
type Player = "X" | "O" | |
type PosState = Player | "" | |
type BoardState = [ | |
PosState,PosState,PosState, | |
PosState,PosState,PosState, | |
PosState,PosState,PosState | |
] | |
//type WinState = "draw" | "X won" | "O won" | "not finished" |
burger 3d view demo (ascii stl file)
solid Exported from Blender-3.2.1
facet normal 0.017014 0.063498 0.997837
outer loop
vertex -0.000000 0.678245 0.906216
vertex -0.000000 0.272585 0.932030
vertex 0.136293 0.236066 0.932030
endloop
Mapping GeoJSON/TopoJSON files on GitHub ( following the geoJSON spec )
{
"type": "Topology",
"objects": {
"example": {
"type": "GeometryCollection",
"geometries": [
Raycast 1: https://editor.p5js.org/neill0/sketches/2w9z3w3Cc
Raycast 2 (scaling, rotation): https://editor.p5js.org/neill0/sketches/QKudv3U3F
Controller-tracking 1: https://editor.p5js.org/neill0/sketches/Wo_lWehlw
NewerOlder