Skip to content

Instantly share code, notes, and snippets.

View booyaa's full-sized avatar
🏠
Working from home forevah!

Mark Sta Ana booyaa

🏠
Working from home forevah!
View GitHub Profile
@booyaa
booyaa / lolwat.sh
Last active August 29, 2015 14:17
docker link issue
#!/bin/bash
echo Creating MySQL data container
docker create --name foo-mysql-data -v /var/lib/mysql mysql:5.6
echo 'Creating MySQL server container'
docker run --name foo-mysql --volumes-from foo-mysql-data -e MYSQL_ROOT_PASSWORD=password -d mysql:5.6
echo 1st attempt to create database, will fail without sleep
#Error follows:
@booyaa
booyaa / procjam2014-live-blogging.md
Last active August 29, 2015 14:08
procjam 2014 live blogging
@booyaa
booyaa / lol.txt
Created November 7, 2014 21:58
apple ][gs bbs connected to the internets
~$ telnet bbs.fozztexx.com 9600
Trying 50.79.157.209...
Connected to allyoucaneat.fozztexx.com.
Escape character is '^]'.
Welcome to Level 29, your SysOp is FozzTexx
BBS hosted on an Apple IIgs running ProLine
Access via dialup, telnet, and web browser.
@booyaa
booyaa / unity-live-training.md
Created October 28, 2014 06:32
Unity Hints and Tips; and Live Training Notes

#Unity Hints and Tips; and Live Training Notes (WIP)

link test

##collisions

player should have a collider, but not triggering. rigidbody maybe required (for physics?) target to collide with should have a collider and a trigger, also has the controller script

Keybase proof

I hereby claim:

  • I am booyaa on github.
  • I am booyaa (https://keybase.io/booyaa) on keybase.
  • I have a public key whose fingerprint is 3967 2016 BD0A 941C 5AD4 AC1C 45BF 67FF B938 AA2F

To claim this, I am signing this object:

@booyaa
booyaa / gist:e225b6b8ab7cdde24561
Last active August 29, 2015 14:07
Stackanoid - post mortem

Stackanoid - 5th game in the One Game A Month Challenge

Beginning

The game started as a doodle, messing around with 2D physics and wasn't even the first iteration. I had started playing around with spinning and swinging objects, also hinges seem to be equally promising and certainly easier to grasp in the 2D vs the 3D versions.

The concept of stacking items as a game mechanic happened after the 3rd iteration. I had noticed a curious property of objects interacting with the player sprite. If a falling object landed on the player sprite you could move it up and down, but the object would slip off if you moved left and right.

Fixing a problem

@booyaa
booyaa / README.md
Last active August 29, 2015 14:04
Destinations of LotRO Middle Earth

Destinations of LotRO Middle Earth

This is a first draft, it will get better. The data is based on Vinny's awesome TravelRef plugin, that I've used previously in my project From A to Bree webtoy. I converted from Lua to a JSON object. The data was then flattened.

The force directed graph is copy of the one by Malcolm Maclean in his very useful D3 Tips and Tricks book.

If you're viewing this on github, you might prefer a live demo via bl.ocks.org.

@booyaa
booyaa / reutersmagick.md
Last active August 29, 2015 14:02
Reuters Magick

#Regex to convert Ratings ENUM into a CSV

Works for Notepad++ regex which is POSIXy.

Assume data looks like this:

enumtype.def:
      0       "    "   Not allocated
 1 "AAA " The obligor's capacity to meet its financial commitment on the obligation is extremely strong.
@booyaa
booyaa / poshmagick.md
Created March 17, 2014 15:45
Powershell Magick

###password input

user feedback will be stars instead of password

$secret = Read-Host 'Enter a secret: ' -AsSecureString
$notSoSecret = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($secret))
Write-Host $notSoSecret
@booyaa
booyaa / CSharpMagick.md
Last active January 3, 2016 13:49
C# CSharp Magick

###get a random number from a range between 1 and 5

Random random = new Random();
int randomNum = random.Next(1,5);

###hardcode app.config name into binary