Skip to content

Instantly share code, notes, and snippets.

View joshuamorony's full-sized avatar

Josh Morony joshuamorony

View GitHub Profile
@joshuamorony
joshuamorony / wfc-simple-tiled.ts
Created September 15, 2023 09:39
A TypeScript implementation based on Robert Heaton's "Even Simpler Tiled Model" of the Wave Function Collapse algorithm
type Tile = number;
type TileOrientation = 0 | 90 | 180 | 270;
export type TileMapping = Record<number, number>;
type Coordinates = [number, number];
enum DirectionKeys {
UP = 'UP',
DOWN = 'DOWN',
LEFT = 'LEFT',
colorscheme molokai
let g:molokai_original = 1
syntax on
set number
set wrap
set textwidth=79
set formatoptions=tcqrn1
@joshuamorony
joshuamorony / .zshrc
Created August 30, 2022 04:24
Alias for creating playground applications and sharing to GitHub/StackBlitz
resetAndOpen(){
git switch main --discard-changes
git reset --hard
git clean -fd
code .
}
createGitRepo(){
read -q "REPLY?Are you sure you want to share this publicly? "
echo

Install dependencies:

npm install @capacitor/{core,cli,ios,android}

Add capacitor config:

import { CapacitorConfig } from '@capacitor/cli';
cask_args appdir: "/Applications"
# Tap Homebrew
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/services"