Skip to content

Instantly share code, notes, and snippets.

View egrim's full-sized avatar

Evan Grim egrim

  • toopher
  • Austin, Texas
View GitHub Profile
@egrim
egrim / instrumented-MigrationTestBase.patch
Created July 7, 2017 16:03
Migration tests that leave tables behind
diff --git a/tests/migrations/test_base.py b/tests/migrations/test_base.py
index 84a5117751..84ee5b4a15 100644
--- a/tests/migrations/test_base.py
+++ b/tests/migrations/test_base.py
@@ -20,12 +20,20 @@ class MigrationTestBase(TransactionTestCase):
available_apps = ["migrations"]
multi_db = True
+ def setUp(self):
+ self.before_tables = {}
var trackNames = document.getElementsByClassName("name");
var artistNames = document.getElementsByClassName("album-name");
var final = "";
for (var track=0; track<trackNames.length; track++) {
final += artistNames[track].innerText + " - " + trackNames[track].innerText + "\n";
}
console.log(final);

Keybase proof

I hereby claim:

  • I am egrim on github.
  • I am evangrim (https://keybase.io/evangrim) on keybase.
  • I have a public key whose fingerprint is 3134 3BF5 BE38 C10F 3FEF AE28 DF28 8BFD E72B AF75

To claim this, I am signing this object:

@egrim
egrim / reverse_me.txt
Last active October 14, 2021 15:59
A string to be reversed
Sit on a potato pan, Otis.
@egrim
egrim / names.java
Last active April 3, 2019 19:25
Names to be sorted
public class Names {
public final static String[] NAMES = {
"Britteny Bisignano",
"Vania Millikan",
"Ching Atnip",
"Willie Happ",
"Renata Dower",
"Jillian Beauchemin",
"Garth Bixby",
"Jared Honea",
@egrim
egrim / gist:7209519
Last active December 26, 2015 20:29
- (NSPersistentStore *) MR_addSqliteStoreNamed:(id)storeFileName withOptions:(__autoreleasing NSDictionary *)options
{
NSURL *url = [storeFileName isKindOfClass:[NSURL class]] ? storeFileName : [NSPersistentStore MR_urlForStoreName:storeFileName];
NSError *error = nil;
[self MR_createPathToStoreFileIfNeccessary:url];
// NSPersistentStore *store = [self addPersistentStoreWithType:NSSQLiteStoreType
// configuration:nil
// URL:url
@egrim
egrim / bad_words.txt
Created April 19, 2013 20:06
Prefixes of words we probably don't want to show our users
abandon
abate
abdicate
abhor
abject
abnormal
abolish
abomina
abrasive
abrupt
@egrim
egrim / bad_words.txt
Created April 19, 2013 20:05
Words we might want to avoid showing our users
abandon
abate
abdicate
abhor
abject
abnormal
abolish
abomina
abrasive
abrupt
String numbers[] = {
"594",
"776",
"135",
"839",
"564",
"783",
"39",
"71",
"213",
Vincenzo
Silas
Carrol
Weston
Johnie
Esteban
Emory
Dewayne
Reid
Stanford