Skip to content

Instantly share code, notes, and snippets.

View scottjacobsen's full-sized avatar

Scott Jacobsen scottjacobsen

View GitHub Profile
#assuming schema is
# table turbines
# id integer
# turbine_type_id integer
# table turbine_types
# id integer
# name string
class Turbine < ActiveRecord::Base
/*
* is this cool enough that it warrants a blog post?
*
* trigger breakpoint in GDB, from code.
*/
#include <stdio.h>
int main(int argc, char *argv[]) {