Skip to content

Instantly share code, notes, and snippets.

Jeffrey Carpenter i8degrees

Block or report user

Report or block i8degrees

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View notes
#!/usr/bin/env ruby
# Note filing system implemented via many-to-many relation sharing tags
CREATE TABLE notes (note_id INT UNSIGNED NOT NULL AUTO_INCREMENT, # Primary key => note.note_id
PRIMARY KEY (note_id))
# (3NF) Notes <-> Tags mapping / routing implementation; no worries of data duplication / debris being left behind
CREATE TABLE mappings (map_id INT UNSIGNED NOT NULL AUTO_INCREMENT, # Primary key => mapping.map_id
View skel.rb
#!/usr/bin/env ruby
# ~/Projects/homnom/nomnom-v0.2/tmp/cmdline-args.rb:jeff
# Preliminary play with a new input arguments parser for much enhanced
# console-level control of our I/O scripts.
# Usage:
View nightmares
...and so without any background info aside, (doesn't really matter), I
start off around 10-11 PM on Saturday eve finishing up on some random sys admin
crap, and decide that I wanted to see how well FileVault (encryption) worked
and so here comes the next mini-nightmare that would take me the next 24 hours
to get back to where I last left off. I thought this was going to be a 30-min
job (the length of time it took for FileVault to encrypt).
A long, drawn out story made shorter, FileVault doesn't play very well with
multiple partitions, nor does Time Machine like it overly too much either as I
found out. (Although if one is willing to lose the ability to browse through the
i8degrees / github_feed
Created Apr 22, 2012
GitHub Feed for i8degrees
View github_feed
# Github Feed for i8degrees
if [ $# -eq 1 ] ; then
headarg=$(( $1 * 2 ))
i8degrees / allegro5.rb
Created Mar 13, 2013
allegro5.0.9 homebrew formula
View allegro5.rb
require 'formula'
class Allegro5 < Formula
homepage ''
url ''
sha1 '7d05bc3d59b60a22796e9938f0b9a463c33d4b30'
depends_on 'cmake' => :build
depends_on 'libvorbis' => :optional
depends_on 'freetype' => :optional
i8degrees / Makefile (OSX).sublime-build
Created Mar 14, 2013
~/Library/Application Support/Sublime Text 2/Packages/User
View Makefile (OSX).sublime-build
"cmd": ["make"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${project_path:${folder:${file_path}}}",
"selector": "source.makefile",
"path": "/usr/bin:/usr/local/bin:/Applications/",
i8degrees / card.h
Last active Dec 15, 2015
Final Draft of TTcards Card Objects Design
View card.h
class Card
unsigned int id;
unsigned int level; // 1..10
unsigned int type;
unsigned int element;
unsigned int power[4]; // clockwise; top, right, down, left
std::string name;
// Card ( id, level, type, element, power[], name );
View .bashlib_timecap
# Derives from Fielding's dotfiles repo
timecap () {
date_bin=$(which date)
screencap_bin="$(which screencapture)"
while [ 1 ]
View gist:5367082
class DrawableObject
virtual void Draw(GraphicalDrawingBoard&) const = 0; //draw to GraphicalDrawingBoard
class Triangle : public DrawableObject
void Draw(GraphicalDrawingBoard&) const; //draw a triangle
i8degrees / CMakeLists.txt
Created May 5, 2013
elle CMake Build Script
View CMakeLists.txt
cmake_minimum_required ( VERSION 2.6 )
set ( CMAKE_BUILD_TYPE Debug )
#set ( BUILD_SHARED_LIBS true )
#set ( CMAKE_OSX_ARCHITECTURES i386;x86_64 ) # OSX Universal Library
set ( CMAKE_CXX_COMPILER "/usr/bin/clang++" )
set ( CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++" )
set ( CMAKE_CXX_FLAGS_DEBUG "-gfull -O0 -Wall" )
You can’t perform that action at this time.