Skip to content

Instantly share code, notes, and snippets.

View gracecodes144's full-sized avatar

Grace gracecodes144

  • Whoopsy Inc
  • Brooklyn, NY
View GitHub Profile
@gracecodes144
gracecodes144 / global_test.py
Created June 28, 2016 23:10
Testing global variable scope
test = 'foo'
def run():
if False:
test = 'bar'
print(test)
if __name__ == '__main__':
run()
@gracecodes144
gracecodes144 / loggertest.py
Last active June 9, 2016 17:10
Testing if Python logging can imitate Go logrus behavior
import copy
import logging
import time
from datetime import datetime
nocolor = 0
red = 31
green = 32
yellow = 33
blue = 34
@gracecodes144
gracecodes144 / omopv5_pedsnetv2_diff.md
Created May 7, 2015 14:13
PEDSnet V2 from OMOP V5 Data Model Differences

Overview

  • Tables: 1 added, 26 removed, 0 changed, 13 matched
  • Fields: 20 added, 215 removed, 133 changed,

Tables

+ visit_payer
- attribute_definition
@gracecodes144
gracecodes144 / pg_timezone_names.txt
Created February 6, 2015 15:50
Reproduction of pg_timezone_names from PGSQL server v9.3.1
brownea=# show server_version;
server_version
----------------
9.3.1
(1 row)
brownea=# select * from pg_timezone_names ;
name | abbrev | utc_offset | is_dst
----------------------------------+--------+------------+--------
Africa/Abidjan | GMT | 00:00:00 | f
@gracecodes144
gracecodes144 / setup-github-issues-labels.sh
Last active August 29, 2015 14:02 — forked from hubertursua/setup github issues labels.sh
Setup the CBMi style guide standard issue labels in a GitHub repo (DELETES DEFAULT LABELS, WILL NOT WORK WITH 2FA)
#!/bin/bash
echo -n "GitHub User: "
read USER
echo -n "GitHub Password: "
read -s PASS
echo ""
echo -n "GitHub Repo (e.g. foo/bar): "