Skip to content

Instantly share code, notes, and snippets.

Gareth Senior garethsenior

Block or report user

Report or block garethsenior

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
import unittest
def strip_parentheses(input, chars="()"):
Strips bracketed clauses from text strings
Just returns the string if it finds incorrect nesting
Whitespace will remain untouched.
open_char = chars[0]
View trim.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import gzip
import os
trim.csv <output-dir> <filename_filter> <search pattern>
trim.csv processed .csv.gz ,8088,

Keybase proof

I hereby claim:

  • I am garethsenior on github.
  • I am g_s ( on keybase.
  • I have a public key whose fingerprint is 092A 3484 2BD4 8FB3 CF5D 9075 1776 6FB9 7D16 5951

To claim this, I am signing this object:

You can’t perform that action at this time.