Skip to content

Instantly share code, notes, and snippets.

View i8degrees's full-sized avatar

Jeffrey Carpenter i8degrees

View GitHub Profile
@i8degrees
i8degrees / exif_tags.sh
Created July 18, 2014 05:27
incomplete exif tagging tool
#!/bin/sh
#
# 2011-12/21:jeffrey.carp@gmail.com
#
# ~/bin/exif_tags.sh
#
# Copyright 2011 Jeffrey Carpenter. All rights reserved.
#
# Released under the BSD license
#
@i8degrees
i8degrees / diag_main-after.txt
Last active August 29, 2015 14:10
SDL_image: proposed colorspace fix for ImageIO backend (OS X, iOS)
bitmap(0, 0) = ff6e90be
png(0, 0) = ff6e90be
sdlbmp(0, 0) = 6e90be
bitmap(31, 0) = ff6e90be
png(31, 0) = ff6e90be
sdlbmp(31, 0) = 6e90be
NOTE: ff6e90be = R(110) G(144) B(190)
this->player.run_action(scroll_right, [=]() {
this->expected_queue_size(0);
EXPECT_EQ( Point2i(200,195), anim_text->position() );
this->expected_alpha_in_params( anim_fade_in.get(),
Color4i::ALPHA_OPAQUE, anim_fade_tex );
this->expected_action_params( scroll_right.get(),
IAnimationAction::AnimationType::GROUP, 2);
@i8degrees
i8degrees / .travis.yml
Created March 29, 2015 06:36
travis-ci example
os:
- osx
# language: cpp
language: objective-c
compiler:
- clang
# - gcc
@i8degrees
i8degrees / tuxpaint.txt
Last active August 29, 2015 14:17
tuxpaint-0.2.2 build
# tuxpaint
```console
# Mid 2011 MacBook Air, Mac OS X v10.10.1 "Yosemite"
Required SDKs
Mac OS X 10.4 SDK (Universal)
Mac OS X 10.6 SDK
homebrew packages (deps)
#!/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
note VARCHAR(255) NOT NULL,
PRIMARY KEY (note_id))
# ENGINE=InnoDB;
# (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
@i8degrees
i8degrees / skel.rb
Created February 4, 2012 07:03
OptParse Skel
#!/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:
#
# http://ruby-doc.org/stdlib-1.9.3/libdoc/optparse/rdoc/OptionParser.html
...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
i8degrees / github_feed
Created April 22, 2012 10:26
GitHub Feed for i8degrees
#!/bin/sh
#
# Github Feed for i8degrees
#
URL="https://github.com/i8degrees.atom"
if [ $# -eq 1 ] ; then
headarg=$(( $1 * 2 ))
else
@i8degrees
i8degrees / allegro5.rb
Created March 13, 2013 05:20
allegro5.0.9 homebrew formula
require 'formula'
class Allegro5 < Formula
homepage 'http://www.allegro.cc'
url 'http://downloads.sourceforge.net/project/alleg/allegro/5.0.9/allegro-5.0.9.tar.gz'
sha1 '7d05bc3d59b60a22796e9938f0b9a463c33d4b30'
depends_on 'cmake' => :build
depends_on 'libvorbis' => :optional
depends_on 'freetype' => :optional