Skip to content

Instantly share code, notes, and snippets.

View mdang's full-sized avatar

Mike Dang mdang

View GitHub Profile

Git Haiku

15 min

Haiku - A Japanese poem of seventeen syllables, in three lines of five, seven, and five, traditionally evoking images of the natural world.

An old silent pond...
A frog jumps into the pond,

>splash! Silence again.

@mdang
mdang / nix-cheatsheet.md
Last active February 4, 2018 16:07
Vim, tmux cheatsheet

tmux

Default prefix: C-b (CTRL + b)

Windows

Action Command
Create new window prefix + c
Cycle to next window prefix + n
@mdang
mdang / PYTHON_FUNDAMENTALS.md
Last active November 9, 2021 15:56
Python Fundamentals

Python Fundamentals

Variables

  • Variable names can only contain these characters:
    • Lowercase letters (a through z)
    • Uppercase letters (A through Z)
    • Digits (0 through 9)
    • Underscore (_)
  • Names cannot begin with a digit.
@mdang
mdang / GARNET_SETUP.md
Created March 2, 2017 16:22
Garnet Setup

Garnet Setup

  1. Create a new cohort at https://garnet.wdidc.org/cohorts/new
  2. Add other instructors with admin priveleges
  3. Have students go to Garnet and log in with GitHub: https://garnet.wdidc.org/
  4. Add students to the new cohort as members
  5. Auto-populate events
  • Important: Set the start date 1 day before the actual date if you want it included in attendance
@mdang
mdang / CLI_COMMANDS.md
Last active December 17, 2020 18:46
CLI Commands

Commands

pwd

cd

  • Discuss absolute and relative links
  • Use directory shortcuts '.', '..', '~' to navigate the filesystem
  • Use tab completion for navigating faster
  • Use CTRL + a to move to the beginning of the line
@mdang
mdang / INTRO_ICEBREAKERS_WDI_10.md
Last active February 27, 2017 04:40
Intros and Icebreakers

Web Development Immersive

Welcome WDI 10!


Meet Your Instructors

  • Dirk Dunn
  • Britney Jo
@mdang
mdang / ALEXA.md
Last active December 20, 2019 15:36
Lesson: Alexa
@mdang
mdang / WORLD_MYSQL.md
Created January 25, 2017 16:04
Exercise: World Lab (MySQL)

World Lab (MySQL)

This lab requires the sample world database found here: https://dev.mysql.com/doc/index-other.html

Let's learn a few things about this crazy world!

Here's a model of what you now have loaded in the world database. The first row is the table name, the second is the primary key and finally the remaining are any additional attributes.

Exercises

@mdang
mdang / SQL_PRACTICE.md
Last active February 16, 2018 16:14
Exercise: SQL Practice

SQL Practice

15 min

Let's populate the wdi database with some data and get more practice with SQL.

Insert the following 4 students into the users table.

  • Jill's full name is Jilly Cakes; her favorite number is 22
  • Johns's full name is Johnny Bananas; his favorite number is 45221
@mdang
mdang / RELATIONAL_DATA_WITH_JOINS.md
Last active January 25, 2017 16:09
Lesson: Relational Data with Joins

Relational Data With Joins

Learning Objectives

Agenda

  • Review SQL commands for CRUD
  • Introduce:
    • count
  • order by