Skip to content

Instantly share code, notes, and snippets.

View matthewmccullough's full-sized avatar

Matthew J. McCullough matthewmccullough

View GitHub Profile
@matthewmccullough
matthewmccullough / 2012-07-12-command-history.txt
Created July 12, 2012 20:21
2012-07-12 GitHub Online Git Workshop
git --version
pwd
git init project1
ls -al
cd project1
ls -al
open .
which git
@matthewmccullough
matthewmccullough / all-about-pull-requests.md
Created July 9, 2012 14:38
All About Pull Requests - Class Outline

All About Pull Requests

New way of working

  • "Please code review this"
  • But also "here is an idea"
  • Cheap way to prototype
  • Can also put in screenshots

Starting a Pull Request

  • Between separate username/repo branches
@matthewmccullough
matthewmccullough / build.gradle.fragment
Created June 20, 2012 23:05
Walk all lib jars in Gradle
dependencies{
compile files(fileTree(dir: 'lib', includes: ['*.jar']))
}
@matthewmccullough
matthewmccullough / officehours.md
Created June 11, 2012 16:57
Office Hours Notes for 2012-06-11
  • Matthew
    • Command line is the verb learning
  • Tim Berglund
    • Stick before automatic
    • Hard first, easy later
    • Learn some internals, data structures
    • GUI you use today (Tower today?)
      • Transition between GUIs easier
      • Switch to something else
  • GUI == Graphical User Interface
@matthewmccullough
matthewmccullough / office-hours-notes-2012-05-21.markdown
Created May 21, 2012 16:57
Office Hours Notes from 2012-05-21
  • Pull and Push and Fetch (Syncing)
    • Fetch == retrieval
      • Does fetch only affect the current branch?
      • A: Fetch always retrieves everything upstream
      • Default is to bring back everything, but the refspec can adjust that
      • Git 1.7.10 == push, pull
      • pull == fetch and a merge
      • current branch
        • On: master, fetch, retrieve all, merge in master
  • Push == publishing
@matthewmccullough
matthewmccullough / dallas.md
Created May 19, 2012 22:52
Mac OSX BoOF in Dallas

Mac OSX BOF

Questions:

  1. Key mapping
  • Keyboard pref pane for shortcuts
  • Type to navigate
  • Safari ⌘1 to bookmarks
  1. VM mapping of keys
@matthewmccullough
matthewmccullough / game-theory-books.markdown
Created May 17, 2012 22:10
Game Theory Book list by Matthew McCullough

Economics & Software Development - Book List

The following books are ordered in descending order of Matthew's preference.

by Avinash K. Dixit

Recommended by Ted Neward. A different perspective and writing style from the other volumes listed.

“I am hard pressed to think of another book that can match the combination of practical insights and reading enjoyment.”—Steven Levitt

@matthewmccullough
matthewmccullough / git-compressing-and-deltas.md
Created May 14, 2012 19:05
Git, Compression, and Deltas - An explanation

Git Compression of Blobs and Packfiles.

Many users of Git are curious about the lack of delta compression at the object (blob) level when commits are first written. This efficiency is saved until the pack file is written. Loose objects are written in compressed, but non-delta format at the time of each commit.

A simple run though of a commit sequence with only the smallest change to the image (in uncompressed TIFF format to amplify the observable behavior) aids the understanding of this deferred and different approach efficiency.

The command sequence:

Create the repo:

@matthewmccullough
matthewmccullough / Notes-from-GitHub-Free-Git-Class-on-2012-05-02.md
Created May 2, 2012 19:10
Notes from GitHub Free Git Class on 2012-05-02