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
@i8degrees
i8degrees / exif_tags.sh
Created Jul 18, 2014
incomplete exif tagging tool
View exif_tags.sh
#!/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 Aug 29, 2015
SDL_image: proposed colorspace fix for ImageIO backend (OS X, iOS)
View diag_main-after.txt
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)
View animated_scrolling_text.cpp
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 Mar 29, 2015
travis-ci example
View .travis.yml
os:
- osx
# language: cpp
language: objective-c
compiler:
- clang
# - gcc
@i8degrees
i8degrees / tuxpaint.txt
Last active Aug 29, 2015
tuxpaint-0.2.2 build
View tuxpaint.txt
# 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)
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
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
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:
#
# http://ruby-doc.org/stdlib-1.9.3/libdoc/optparse/rdoc/OptionParser.html
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
i8degrees / github_feed
Created Apr 22, 2012
GitHub Feed for i8degrees
View github_feed
#!/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 Mar 13, 2013
allegro5.0.9 homebrew formula
View allegro5.rb
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
You can’t perform that action at this time.