Skip to content

Instantly share code, notes, and snippets.

@data.each do |date, result|
result.each do |entry|
carrier = entry["CarrierName"].to_sym
type = entry["Activity"].chomp("RecordCount").to_sym
@report[carrier] ||= {}
@report[carrier][type] ||= {}
@report[carrier][type][date.to_sym] = entry["RecordCount"]
end
end
Objective: To create and maintain high-performance customer facing Django applications while expanding my skill set in the fields of database design, user experience design and project management.
Skills:
Application Development:
- Proficient in Python and Ruby
- Familiar with Java, C, D, and Haskell
- Platforms: OSX, Linux, Windows
- Other technologies: Git, PostgreSQL, SQLite, Redis
Web Development:
- Proficient in HTML, CSS, and Javascript
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:1:in `<main>'
- OCN: '8881'
CarrierName: BlueCasa
RecordCount: '0'
Activity: TransferRecordCount
- OCN: 111B
CarrierName: BlueCasa
RecordCount: '0'
Activity: TransferRecordCount
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
[self registerIntervalHotKey];
NSManagedObjectContext *moc = [self managedObjectContext];
Interval *interval = [NSEntityDescription insertNewObjectForEntityForName:@"Interval" inManagedObjectContext:moc];
interval.startTime = [NSDate date];
NSError *error = nil;
[moc save:&error];
}
#import <Cocoa/Cocoa.h>
#import "DDHotKeyCenter.h"
@interface TwiddleAppDelegate : NSObject <NSApplicationDelegate>
@property (assign) IBOutlet NSWindow *window;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
- (void)registerIntervalHotKey {
DDHotKeyCenter *startInterval = [[DDHotKeyCenter alloc] init];
DDHotKeyCenter *stopInterval = [[DDHotKeyCenter alloc] init];
DDHotKeyTask startIntervalTask = ^(NSEvent *hkEvent) {
[Interval startInterval];
};
DDHotKeyTask stopIntervalTask = ^(NSEvent *hkEvent) {
[Interval stopInterval];
};
require 'test/unit'
def find substr, str
str.split('').each_with_index do |char, index|
if substr.chr == char
if substr.length == 1 or find(substr[1..-1], str[index+1..-1]) == 0
return index
end
end
end
var uuid = require('node-uuid'),
redis = require('redis'),
client = redis.createClient();
exports.create = function(data, callback) {
var key = uuid.v1.slice(0, 8);
return client.setnx(key, callback);
};
exports.load = function(id, callback) {
module.js:485
process.dlopen(filename, module.exports);
^
Error: /home/jared/projects/node/img/node_modules/mmmagic/build/Release/magic.node: undefined symbol: inflateInit2_
at Object.Module._extensions..node (module.js:485:11)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/home/jared/projects/node/img/node_modules/mmmagic/index.js:3:13)