Skip to content

Instantly share code, notes, and snippets.

View sbischoff-ai's full-sized avatar
🚀
launching a business

Silas Bischoff sbischoff-ai

🚀
launching a business
View GitHub Profile
@sbischoff-ai
sbischoff-ai / address_schema_openapi.yml
Last active December 30, 2020 10:34
Just an address schema for openAPI spec files for people to copy-paste. Some things should just not be typed by any developer anywhere ever again.
components:
schemas:
Address:
type: object
required:
- address_line_1
- city
- zip_or_postal_code
properties:
address_line_1:
@sbischoff-ai
sbischoff-ai / Ising.cpp
Created September 6, 2018 14:55
Simple Implementation of 2D Ising model. Initialize system with edge length and temperature, sweep until equilibrated. Plot to taste.
#include "Ising.h"
#include <cmath>
#ifndef _CSTDLIB
#define _CSTDLIB
#include <cstdlib>
#endif
Ising::Ising(unsigned int L_, double temp_){
L = L_;
Lsq = L*L;
@sbischoff-ai
sbischoff-ai / labyrinth_roller.bb
Created September 6, 2018 14:24
Little labyrinth game I wrote as a kid in Blitz Basic 3D. You need one or two .tga files as textures.
Graphics3D 1440,900
SetBuffer BackBuffer()
SeedRnd MilliSecs()
cam = CreateCamera()
AmbientLight 100, 100, 100
CameraClsColor cam, 0, 0, 255
PositionEntity cam, 0, -1, 0
light = CreateLight(1)