Skip to content

Instantly share code, notes, and snippets.

View allenluce-zz's full-sized avatar

Allen Luce allenluce-zz

  • Substantial
  • Seattle
View GitHub Profile
Compiling /Users/allen/src/Proper/src/AppDelegate.m
In file included from <built-in>:167:
In file included from <command line>:27:
In file included from /Users/allen/src/Proper/src/ProperHD-Prefix.pch:17:
In file included from /Users/allen/src/Proper/src/headers/KPTK.h:14:
In file included from /Users/allen/src/Proper/src/headers/KObjectBase.h:11:
In file included from /Users/allen/src/Proper/src/headers/KSysDefs.h:17:
In file included from System/cxx/include/vector:260:
System/cxx/include/__config:279:1: error: unknown type name 'namespace'
namespace std {
@interface TiltController : NSObject
@end
@implementation TiltController
// ... lots more here ...
@end
@allenluce-zz
allenluce-zz / gist:5044307
Created February 27, 2013 02:05
Google's code review diff sizes to description mapping.
if diff_size == 0:
desc = "a code review of unknown size"
elif diff_size < 2:
desc = "a wee code review"
elif diff_size < 5:
desc = "a tiny code review"
elif diff_size < 30:
desc = "a small code review"
elif diff_size < 100:
desc = "a medium-size code review"
+----+---------+--------------------------+---------------------------------+---------------+------------+
| id | user_id | message | file | time | session_id |
+----+---------+--------------------------+---------------------------------+---------------+------------+
| 1 | 1 | Starting Upload | roll-9800.jpg | 1360177661117 | 733760335 |
| 2 | 1 | User clicked save | none | 1360177663573 | 733760335 |
| 3 | 1 | Upload complete | roll-9800.jpg | 1360177666079 | 733760335 |
| 4 | 1 | Starting Upload | lo.txt | 1360177674831 | 615478595 |
| 5 | 1 | Upload complete | lo.txt | 1360177675083 | 615478595 |
| 6 | 1 | User clicked save | none | 1360177676405 | 615478595 |
+----+---------+--------------------------+------------------
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6o9CgLtBQkyNO67Vr3TF1UHq2qE9B8HhZ1MbAiatvq9Ri4eU3NwsCsBIdUKuZeWJxmJSG+aF+LRDnBl6YHzcKQP7sZctGs6wOByr2djO4V/NHq8FCIO5/Y4VMR6ooJmFdQDwoaBenvzg5bHLrLdBaswqaCyMH/Q0dszpTTs03inbxEf+s88ntdnkH9laBselcJsMRGkKzOpHhG5wBq188udc0/20wPRjpAwK/BRMKuw//KSyFKg5zefe2Cuq2vTOrejdYHAeV0o3Hxra+wH4bqq6vQAGL08h8vO5SgSWIIyioht1NK+a0wI1JCSL3689VfyHQ6VF9WgWe5cYpUYsl allenRULEZ
.question-sidebar-list-header
%h3 Q&amp;A
%p="Get answers from your #{organization.name} colleagues
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6o9CgLtBQkyNO67Vr3TF1UHq2qE9B8HhZ1MbAiatvq9Ri4eU3NwsCsBIdUKuZeWJxmJSG+aF+LRDnBl6YHzcKQP7sZctGs6wOByr2djO4V/NHq8FCIO5/Y4VMR6ooJmFdQDwoaBenvzg5bHLrLdBaswqaCyMH/Q0dszpTTs03inbxEf+s88ntdnkH9laBselcJsMRGkKzOpHhG5wBq188udc0/20wPRjpAwK/BRMKuw//KSyFKg5zefe2Cuq2vTOrejdYHAeV0o3Hxra+wH4bqq6vQAGL08h8vO5SgSWIIyioht1NK+a0wI1JCSL3689VfyHQ6VF9WgWe5cYpUYsl [email protected]
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAx3ur++bQ4AVaje3sAWVPKCa3R4YIvncc3bx9CqslNEHLGJgoVLjilfdBY8LfOykte/o2QOST3Ijnp+6UyVdhsU2UvOHd6pYgoUCf4pi4AnAgL4MxSiap3DxAiGsbQTmDgZQhJKdaed5AfYNAvyDrM2NzQUnQVSNK0USLpo5rAC7ri8AA4mvHpWlVnkykalouZy86QJwSp63jvY7Uel1Duu0TyQKmK7Fpk5GfhrvbOALg5U4aCMRiOnmm384O9DlCPoILrHgIXaJuo8D2SzT0xCMybSi/CCO9vunOjs31V6yhfjlfNchbeU7u5ee0xQBjd+g8aeQ1N4JyqEmRF/0vow== allenkey
last_id = 999
all('#igrid_ranking_table > .g-row .keyword-cell span').each {|row|
id = row[:id].split('-')[1].to_i
id.should be < last_id
last_id = id
}
a = 'abcdefghijklnopqrstuvwxyz'
last_c = ' '
a.split('').each {|c|
raise unless last_c < c
last_c = c
}