Skip to content

Instantly share code, notes, and snippets.

View cstrachan88's full-sized avatar

Courtney Strachan cstrachan88

View GitHub Profile
@cstrachan88
cstrachan88 / rl_flip_y_axis.odin
Last active April 30, 2024 15:45
Procedure to flip raylib Y-Axis
import rl "vendor:raylib"
// NOTE this only works for simple shapes. Texts and Textures will be rendered upside-down
// Sets the origin to the bottom left corner with up = Y+
rl_flip_y_axis :: proc() {
// Swap which face is culled - https://github.com/raysan5/raylib/issues/3786
rl.rlSetCullFace(.FRONT)
// // Option 1 - create projection matrix
@cstrachan88
cstrachan88 / rustfmt.toml
Last active December 12, 2023 10:52
Global rustfmt config
# https://rust-lang.github.io/rustfmt/
# Windows: %AppData%\rustfmt\rustfmt.toml
# Run with following command - unstable_features = true doesn't seem to work on it's own
# `cargo +nightly fmt`
# add `--check` to verify changes first
# Can also add following to vscode settings to have rustfmt nightly on save
# "[rust]": {
# "editor.defaultFormatter": "rust-lang.rust-analyzer",
# "editor.formatOnSave": true,
@cstrachan88
cstrachan88 / vue
Created January 11, 2019 14:23
Yarn 1.13.0 global files for @vue/cli
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir//bin/sh" ]; then
"$basedir//bin/sh" "$basedir/../Data/global/node_modules/.bin/vue" "$@"
ret=$?
@cstrachan88
cstrachan88 / vue
Created January 11, 2019 14:18
Yarn 1.12.3 global files for @vue/cli
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir//bin/sh" ]; then
"$basedir//bin/sh" "$basedir/../Data/global/node_modules/.bin/vue" "$@"
ret=$?
@cstrachan88
cstrachan88 / mathhw.cls
Last active April 9, 2017 04:12 — forked from jhwilson/jhwhw.cls
LaTeX class file for math homework
%=====================================================================
% File: mathhw.cls
% Author: Courtney Strachan
% Forked from Justin Wilson's Homework Class (https://gist.github.com/jhwilson/1278588)
%=====================================================================
%=====================================================================
% Packaging
%=====================================================================
\NeedsTeXFormat{LaTeX2e}
@cstrachan88
cstrachan88 / pogoMasterData.json
Last active July 22, 2016 11:13 — forked from nneonneo/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
{"MasterBadgeSettings":{"BADGE_BATTLE_ATTACK_WON":{"BadgeType":"BADGE_BATTLE_ATTACK_WON","BadgeRanks":4,"Targets":[10,100,1000]},"BADGE_BATTLE_TRAINING_WON":{"BadgeType":"BADGE_BATTLE_TRAINING_WON","BadgeRanks":4,"Targets":[10,100,1000]},"BADGE_BIG_MAGIKARP":{"BadgeType":"BADGE_BIG_MAGIKARP","BadgeRanks":4,"Targets":[3,50,300]},"BADGE_CAPTURE_TOTAL":{"BadgeType":"BADGE_CAPTURE_TOTAL","BadgeRanks":4,"Targets":[30,500,2000]},"BADGE_EVOLVED_TOTAL":{"BadgeType":"BADGE_EVOLVED_TOTAL","BadgeRanks":4,"Targets":[3,20,200]},"BADGE_HATCHED_TOTAL":{"BadgeType":"BADGE_HATCHED_TOTAL","BadgeRanks":4,"Targets":[10,100,500]},"BADGE_PIKACHU":{"BadgeType":"BADGE_PIKACHU","BadgeRanks":4,"Targets":[3,50,300]},"BADGE_POKEDEX_ENTRIES":{"BadgeType":"BADGE_POKEDEX_ENTRIES","BadgeRanks":4,"Targets":[5,50,100]},"BADGE_POKESTOPS_VISITED":{"BadgeType":"BADGE_POKESTOPS_VISITED","BadgeRanks":4,"Targets":[100,1000,2000]},"BADGE_SMALL_RATTATA":{"BadgeType":"BADGE_SMALL_RATTATA","BadgeRanks":4,"Targets":[3,50,300]},"BADGE_TRAVEL_KM":{"BadgeT
@cstrachan88
cstrachan88 / GAME_MASTER_POKEMON_v0_2.tsv
Created July 18, 2016 05:23 — forked from anonymous/GAME_MASTER_POKEMON_v0_2.tsv
Pokemon from GAME_MASTER protobuf file v0.2 in a .tsv
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 27 columns, instead of 12 in line 2.
PkMn BaseStamina BaseAttack BaseDefense Type1 Type2 BaseCaptureRate BaseFleeRate CollisionRadiusM CollisionHeightM CollisionHeadRadiusM MovementType MovementTimerS JumpTimeS AttackTimerS QuickMoves CinematicMoves AnimTime Evolution EvolutionPips PokemonClass PokedexHeightM PokedexWeightKg HeightStdDev WeightStdDev FamilyId CandyToEvolve
1 90 126 126 HoloPokemonType.POKEMON_TYPE_GRASS HoloPokemonType.POKEMON_TYPE_POISON 0.1599999964237213 0.10000000149011612 0.3815000057220459 0.6539999842643738 0.27250000834465027 HoloPokemonMovementType.POKEMON_ENC_MOVEMENT_JUMP 10.0 1.149999976158142 29.0 d601dd01 5a3b76 6d56d53fdaac2a3f6d56d53f93a9ea3f0000000036ab0a403333b33fbfbbbb3f 02 HoloPokemonClass.POKEMON_CLASS_NORMAL 1 0.699999988079071 6.900000095367432 0.08749999850988388 0.862500011920929 HoloPokemonFamilyId.V0001_FAMILY_BULBASAUR 25
2 120 156 158 HoloPokemonType.POKEMON_TYPE_GRASS HoloPokemonType.POKEMON_TYPE_POISON 0.07999999821186066 0.07000000029802322 0.3187499940395355 0.637499988079071 0.2549999952316284 H
Pokemon Attack Defense Stamina Total
MEWTWO 284 202 212 698
SNORLAX 180 180 320 680
DRAGONITE 250 212 182 644
MEW 220 220 200 640
LAPRAS 186 190 260 636
ARTICUNO 198 242 180 620
MOLTRES 242 194 180 616
VAPOREON 186 168 260 614
@cstrachan88
cstrachan88 / GAME_MASTER_v0_1.protobuf
Created July 18, 2016 05:23 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
@cstrachan88
cstrachan88 / signup.py
Last active January 4, 2017 19:44
Udacity course CS253 - Web Development Problem Set 2 - 2
# Courtney S. - Udacity CS253 - Web Development
import webapp2
import cgi
import re
form1="""
<!DOCTYPE html>
<html>
<head>