Skip to content

Instantly share code, notes, and snippets.

View beProsto's full-sized avatar
💚
i'm never going to financially recover from this

beProsto

💚
i'm never going to financially recover from this
View GitHub Profile
@beProsto
beProsto / winkickstart.ps1
Created October 17, 2022 17:16
Just a simple windows script to get you up and running for c/cpp developement. Downloads Choco, CMake, Make, MinGW-W64, LLVM (clang, lld, etc) and Git.
# Official Chocolatey install command
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install everything else using chocolatey
choco install make -y
choco install mingw -y
choco install git -y
choco install llvm -y
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
@beProsto
beProsto / collider2d.js
Created May 3, 2020 01:00
It comes out that i can't find pastehub anywhere :D
class Collider {
constructor() {
this.base = [{x: -0.15, y: -0.15}, {x: 0.0, y: 0.15}, {x: 0.15, y: -0.15}];
this.col = [{x: -0.15, y: -0.15}, {x: 0.0, y: 0.15}, {x: 0.15, y: -0.15}];
this.pos = {x: 0.0, y: 0.0};
this.inter = false;
}
update() {