Skip to content

Instantly share code, notes, and snippets.

Avatar

Matthew J. McCullough matthewmccullough

View GitHub Profile
View 2012-09-21-github-open-enrollment-notes.md

2012-09-21 GitHub Open Enrollment Notes

Course Topics Overview

Day 1

  • Introductions
  • History of Git and your initial setup
  • Git configuration and its inheritance
  • SSH Authentication and your first repository
@matthewmccullough
matthewmccullough / sfojug-commandlinehistory.md
Created Sep 13, 2012
Command Line History from San Francisco JUG 2012-09-11 Event
View sfojug-commandlinehistory.md

CLI History

git hash-object -t tree /dev/null

git init project1
echo "Hello World" > hello.txt
git add hello.txt
git commit -m"First hello"

printf “blob 12\000Hello World\n” | shasum
@matthewmccullough
matthewmccullough / comox-github-talks.md
Created Sep 6, 2012
Comox Valley Web Posse GitHub Class
View comox-github-talks.md

Comox Valley Web Posse GitHub Talks

Git & GitHub Foundations - A 90 Minute Workshop

@matthewmccullough
matthewmccullough / emerge-lunch-github-teaching-notes.md
Created Sep 5, 2012
Emerge Interactive Lunch and Learn GitHub Training Event on 2012-09-04
View emerge-lunch-github-teaching-notes.md
View rulesofprogramming.md

Rules of Programming

  • All Development is Interface Driven Development, be it Web, Desktop, Mobile, or API.
  • statics or class methods should be inconsequential and isolated to be used in a production method. Inconsequential means that the method doesn’t go outside the VM to another system, doesn’t block, or requires a hard dependency that isn’t guaranteed.
  • The new keyword should be inconsequential and isolated to be used in a production method, unless it used inside of either a Builder or Factory pattern.
  • If a class has already met the requirements for it’s existence, leave it alone, use the Adapter, Observer pattern or AOP to enhance it’s functionality.
  • Using floating-point may not be a good solution, use an integral based number for the smallest unit in your domain (e.g. seconds, pennies, pence)
  • Copying and pasting the same thing multiple times is a sign that refactoring is in order, but do so after making sure your tests run.
  • Matthew McCullough: The tool you use the most should be the most
@matthewmccullough
matthewmccullough / github-office-hours-notes-2012-08-06.md
Created Aug 6, 2012
GitHub Office Hours Notes from 2012-08-06
View github-office-hours-notes-2012-08-06.md
  • Differences and benefits of merging versus rebase
  • Rebase
    • Reshaping history
    • Clearer for the next users
  • Preparing for merging feature1 into master
  • Rebase feature
    • Combine commits (2 into 1)
    • Reorder commits (javascript early in the series, the html last)
    • Remove commits
  • Rebase (2 flavors)
View ga-git-history.md

GA Git Class Command History

on 2012-07-26

echo STARTING CLASS
git --version
which git
brew update
ls
clear
pwd
View 2012-07-24-github-free-class-and-office-hours-notes.md
View hello.asciidoc

This is body text

Optional Title
Code listing line one

Code listing line two

And more body text.

@matthewmccullough
matthewmccullough / cli-history.md
Created Jul 14, 2012
GitHub Online Class History for 2012-07-13
View cli-history.md
git clone git://github.com/matthewmccullough/hellogitworld.git practice1
cd practice1
git log

cd ..
git clone git@github.com:matthewmccullough/hellogitworld.git practice2
ls
cd practice2
mkdir thousands
cd thousands