Skip to content

Instantly share code, notes, and snippets.

View brianspiering's full-sized avatar

Brian Spiering brianspiering

  • San Francisco, CA, USA
View GitHub Profile
@brianspiering
brianspiering / bouldering_grade_conversion.md
Last active November 17, 2024 16:30
Bouldering grade conversion

Bouldering grade scales

Font V
3 VB
4 V0
5 V1
5+ V2
6A V3-
6A+ V3
@brianspiering
brianspiering / climbing_drills.md
Last active June 1, 2024 20:31
Favorite rock climbing training drills

Climbing Drills

  • Doubles
    • First lap, ideal. Second, lap drill
  • Latch, then wave down relaxation
  • Breathing
    • nose only
    • deep exhale
  • Positioning
  • No hip drop
@brianspiering
brianspiering / week_4_prompts.md
Last active May 7, 2023 17:01
Week 4 prompts
  1. Review Prompts
    • Summarize in 2-3 setences traditional meaning representation (i.e., video 4.1-4.4).
    • Summarize in 2-3 setences Statistical Machine Translation (MT)
    • Why are Neural Machine Translation systems more popular right now than than traditional meaning representations?
    • Why are attention-based architectures the current SOTA (state of the art)?
  2. Discussion Prompts
    • If you know a langauage other than English:
      • What is the most difficult phrase or idea to translate into English?
      • How well Google Translate perform?
  • If there is a Google Translate error, what could be the cause of it?
@brianspiering
brianspiering / week_3_prompts.md
Last active May 4, 2023 23:23
Week 3 Prompts

Review Prompts

  1. Word Embeddings
  • Why are word embeddings useful?
  • What are the inputs?
  • What are the outputs?
  1. Recurrent Neural Network (RNN), Gated Recurrent Unit (GRU), Long Short Term Memory (LSTM)
@brianspiering
brianspiering / convert_data_into_ontology.ipynb
Created June 17, 2022 15:45
Convert data into ontology
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brianspiering
brianspiering / sql_style.sql
Created May 9, 2022 04:02
SQL style example
select f.foo,
b.bar,
case
when f.foo = 'hello'
then 'goodbye'
else b.bar
end as something_calculated,
some_long_expression
from fooz f
join baz b
@brianspiering
brianspiering / print_text_in_color.py
Created May 9, 2022 03:52
Print text to terminal in color! (The way of the future.)
#!/usr/bin/env python
""" Print text to terminal in color!
The way of the future.
"""
import sys
# Define ASCII color codes
BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = map(lambda x: x+30, range(8))
@brianspiering
brianspiering / picking_projects.md
Last active February 27, 2022 18:11
Criteria for picking projects for a job profile

Criteria for picking job portfolio projects

Employers often have higher value for pojects that are:

  • Individual
  • Custom
  • Novel
  • Contemporary
  • Domain-specific
@brianspiering
brianspiering / install_pyspark_on_m1_mac.md
Created February 24, 2022 20:58
Installation guide to pyspark on M1 Mac

Install Spark

Run all of these commands at the command line (not in a Jupyter Notebook). The command line will have more informative error messages and if we need complete additional steps, we'll get the messages.

Spark is a framework within the Scala programming language. Scala uses the JVM (Java Virtual Machine) so you'll need install Java.

If you use homebrew:

Mar's Law

Everything is linear if plotted log-log with a fat magic marker.>