Skip to content

Instantly share code, notes, and snippets.

@AquaGeek
AquaGeek / AdjacentList.m
Created September 11, 2015 22:42
Graphs
@interface TSGraph : NSObject
- (void)addEdgeFrom:(id)vertexA to:(id)vertexB;
@end
@implementation TSGraph
{
NSMutableDictionary *_vertices;
}
@AquaGeek
AquaGeek / test2.c
Created March 21, 2011 23:05
Another test
printf("This is a public gist");
@AquaGeek
AquaGeek / &me=?
Created April 29, 2011 04:28
Testing some bad characters
I wonder if this works...
Hello, Dr.
@AquaGeek
AquaGeek / binary_serialization_test_patch.diff
Created May 13, 2011 03:25
Rails Lighthouse ticket #1117
From 8f7771d3b5359199d354f32d2b646039802e40ad Mon Sep 17 00:00:00 2001
From: Victor Costan <costan@gmail.com>
Date: Wed, 21 Apr 2010 00:42:51 -0400
Subject: [PATCH] Failing test case for serialization on binary fields in sqlite3.
---
.../test/cases/serialization_on_binaries_test.rb | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
create mode 100644 activerecord/test/cases/serialization_on_binaries_test.rb
@AquaGeek
AquaGeek / unsigned_integers_for_mysql.diff
Created May 13, 2011 03:16
Rails Lighthouse ticket #300
From 900577da032928c4b37e976ada299d6bd24f4855 Mon Sep 17 00:00:00 2001
From: Rob Anderton <rob.anderton@thewebfellas.com>
Date: Mon, 2 Jun 2008 14:35:17 +0100
Subject: [PATCH] Added unsigned integer support for MySQL
---
.../abstract/schema_definitions.rb | 28 +++++-
.../abstract/schema_statements.rb | 4 +-
.../connection_adapters/mysql_adapter.rb | 59 +++++++++-
activerecord/lib/active_record/schema_dumper.rb | 19 ++--
@AquaGeek
AquaGeek / to_json_fix.diff
Created May 13, 2011 03:21
Rails Lighthouse ticket #610
From 3a5dd2d63c06f1801518ccdcc902b01bc1cba8f8 Mon Sep 17 00:00:00 2001
From: David Burger <davidjburger@yahoo.com>
Date: Sat, 12 Jul 2008 18:33:01 -1000
Subject: [PATCH] to_json invokes to_json of included associations
---
.../active_record/serializers/json_serializer.rb | 18 +++++++++++++++++-
activerecord/test/cases/json_serialization_test.rb | 11 +++++++++++
2 files changed, 28 insertions(+), 1 deletions(-)
From 328011d9841b0d4999878b582e50a6e9489a5ae5 Mon Sep 17 00:00:00 2001
From: Nathan Zook <blogger@pierian-spring.net>
Date: Thu, 4 Mar 2010 17:14:19 -0600
Subject: [PATCH] Broke out joining the quoted values in ActiveRecord::Base (to support the Oracle adapter)
---
activerecord/lib/active_record/base.rb | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
@AquaGeek
AquaGeek / attribute_decorator.diff
Created May 13, 2011 03:24
Rails Lighthouse ticket #950
From 64dc359547f205eccf78c63540bcb0f8db91fc85 Mon Sep 17 00:00:00 2001
From: Eloy Duran <eloy.de.enige@gmail.com>
Date: Fri, 5 Dec 2008 13:22:23 +0100
Subject: [PATCH] Updated for current HEAD.
---
activerecord/lib/active_record.rb | 1 +
activerecord/lib/active_record/aggregations.rb | 2 +
.../lib/active_record/attribute_decorator.rb | 187 +++++++++++++++++
activerecord/lib/active_record/base.rb | 2 +
From 949f3987ad337fb23d411310d39b5c43bee854e5 Mon Sep 17 00:00:00 2001
From: stopdropandrew <andrew@andrew.local>
Date: Wed, 5 Nov 2008 13:49:17 -0800
Subject: [PATCH] Count calculations respect explicit selects specified in scopes.
---
activerecord/lib/active_record/calculations.rb | 20 ++++++++++++++------
activerecord/test/cases/calculations_test.rb | 13 ++++++++++++-
2 files changed, 26 insertions(+), 7 deletions(-)