Skip to content

Instantly share code, notes, and snippets.

View ggiill's full-sized avatar
👓

Gil Aviv ggiill

👓
View GitHub Profile
@ggiill
ggiill / bigquery_pprint_schema.py
Last active December 15, 2021 15:26
Pretty prints a BigQuery table schema (ex: ./bigquery_pprint_schema.py project.database.table --sort --indent 4)
#!/usr/bin/python3
import argparse
from typing import Any, Dict, List, Optional
from google.cloud import bigquery
SCHEMA_KEYS = ("name", "mode", "type", "description", "fields")

Keybase proof

I hereby claim:

  • I am ggiill on github.
  • I am gturetsky (https://keybase.io/gturetsky) on keybase.
  • I have a public key ASAL-vNqgi-8LwBOyiDkt5w9NjsGT-5rMJC6iKvuPZs98Ao

To claim this, I am signing this object:

@ggiill
ggiill / election_2020_ap_api.ipynb
Last active November 6, 2020 15:31
2020 Presidential Election - AP API
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ggiill
ggiill / numbers-with-same-consecutive-differences.go
Last active August 20, 2020 14:07
Numbers with same consecutive differences (Go)
// Saw someone post this LeetCode somewhere... wanted to try it in Go
// https://leetcode.com/problems/numbers-with-same-consecutive-differences/
package main
import (
"fmt"
"strconv"
)
@ggiill
ggiill / well_formed_parentheses.go
Last active August 20, 2020 14:08
Well formed parentheses (Go)
package main
import (
"flag"
"fmt"
"strings"
)
func pp(n int, start string) []string {
combos := []string{}
@ggiill
ggiill / spiral.py
Last active August 20, 2020 14:09
Make a clockwise numerical spiral grid (Python)
#!/usr/bin/env python3
"""
Makes a clockwise numerical spiral grid, starting from the center.
Inspired by https://www.reddit.com/r/ProgrammerHumor/comments/h08sul/i_mean_it_does/
"""
import sys