# Am I in the right branch? Did I push my latest commit?
git log
# Who has worked on this project/folder?
git log -- . # Then search "author" with the pager
# What have I worked on recently? Or, What branches have I authored?
git log --branches --no-walk --author=Guilherme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Print parsed SQL statement as a tree. | |
Uses Python 3 and sqlparse package. | |
""" | |
from typing import Iterator, Tuple | |
import argparse | |
import locale | |
import sys | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# usage: place this file in a folder where you want to your dask tutorial work and run `make` | |
# | |
# if you want to a root dir other than ROOT_DIR, then copy this file there and run `make all` | |
ROOT_DIR = $(HOME)/reading_group_dask_tutorial | |
all: dask-tutorial conda_env | |
@echo "" | |
@echo "To run the dask tutorial now run" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
import itertools as it | |
import matplotlib.pyplot as plt | |
import logging | |
log_fmt = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' | |
logging.basicConfig(level=logging.INFO, format=log_fmt) | |
logging.info('BEGIN') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This script takes as input a list of Python source files and outputs the | |
top-level modules that are imported in those source files. | |
The script does this without executing any code. This is useful when you have | |
exercise code (that often has syntax errors / missing code) or if you want to | |
avoid any harmful side-effects of executing untrusted code. | |
""" | |
import argparse |
Author: | Guilherme Freitas <guilherme@gpfreitas.net> |
---|
Contents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# hist.awk - Histogram for integer x and y values | |
# | |
# This AWK program takes as input a sequence of x, y integer values, one per | |
# row, where x is supposed to be the bin, and y is the count of values in that | |
# bin. In other words, this sequence already encodes the histogram (think of | |
# the output of uniq -c), so this script only pretty prints that histogram to | |
# the screen. Furthermore, we assume that the input rows are sorted by the bin | |
# values (the first column) and that the counts in the second column are always | |
# nonnegative. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
USAGE='NAME | |
pig_nan_null_inf.sh -- Test operations with NULL, NaN and Infinity | |
SYNOPSIS | |
./pig_nan_null_inf.sh | |
DESCRIPTION | |