You know it’s an easy algorithm to program when you’re done writing it, before the teacher is done explaining it… #include "GSort.h" void GSort::sort( int numbers[], int size ) { int i = 0; int previous, current; while( true ) { if( i == 0 ) //No previous, step forward. { i++; continue; } [...]
READ MORE »Posts by
Moving to WordPress
Hey guys, Mike here. Here’s the deal: I’ve decided to split off my code development of the ShiftedBits framework away from the actual website where I talk about this (as stuff would never get done otherwise) and just move to a wordpress blog, and shove the code into a git repository. I decided to do [...]
READ MORE »Right, So…
I’m in class right now. Unable to do anything. Why? Because, mainly, I’m an idiot. In my laziness to get ready properly this morning (shower, breakfast, stretching) I remembered to gather up all my “bling” except for my keychain. Why? Because I’m not driving around today. Today, I ride the bus. However, one small problem: [...]
READ MORE »Concepts of Law != Concepts of Reality
So recently, there’s been this big hullabaloo from Courtney Love (widow of Kurt Cobain) about Kurt’s inclusion in Guitar Hero 5.
READ MORE »This is well past due…
So as you may have noticed I’ve been in and out for most of the preceding weeks. There are reasons for this, I tell you! And it’s not just “Zach and Miri Make a Porno” references either.
READ MORE »DiceRoller v2
I decided my first version wasn’t exactly flexible, so I rewrote it to parse out strings of dice rolls and then roll them. /* * dice.c * * Created on: Apr 21, 2009 * Author: Mike Sherwood (coolhand2@gmail.com) * Modified on: Nov 18, 2009 * Author: Mike Sherwood (coolhand2@gmail.com) * Changes: Changed the if-series in [...]
READ MORE »Dice Roller v1
A bit of C code I russelled up to roll a specific die based off the arguments passed to it through the command line. It’s basically just a random number generator with addition properties. /* * dice.c * * Created on: Apr 20, 2009 * Author: Mike Sherwood <coolhand2 @gmail.com> */ #include <stdio .h> #include [...]
READ MORE »My legs, really freaking hurt…
So I started my new exercise regimen today. It hurt.
READ MORE »Moar things in my life
1.) Apparently I have a girlfriend now. Not an official one, yet, but she does call me every night before she goes to bed to wish me good night, and we end up talking for a good two hours (basically until one of us falls asleep.) Now Doc (Droakir, for those who don’t know), say [...]
READ MORE »