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-09-21-github-open-enrollment-notes.md
Created September 21, 2012 14:16
2012-09-21 GitHub Open Enrollment Notes

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 September 13, 2012 04:06
Command Line History from San Francisco JUG 2012-09-11 Event

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 September 6, 2012 19:34
Comox Valley Web Posse GitHub Class

Comox Valley Web Posse GitHub Talks

Git & GitHub Foundations - A 90 Minute Workshop

@matthewmccullough
matthewmccullough / emerge-lunch-github-teaching-notes.md
Created September 5, 2012 18:37
Emerge Interactive Lunch and Learn GitHub Training Event on 2012-09-04
@matthewmccullough
matthewmccullough / rulesofprogramming.md
Created August 13, 2012 02:56
Rules of Programming

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 August 6, 2012 18:21
GitHub Office Hours Notes from 2012-08-06
  • 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)
@matthewmccullough
matthewmccullough / ga-git-history.md
Created July 26, 2012 20:40
GA Git Class History

GA Git Class Command History

on 2012-07-26

echo STARTING CLASS
git --version
which git
brew update
ls
clear

pwd

@matthewmccullough
matthewmccullough / 2012-07-24-github-free-class-and-office-hours-notes.md
Created July 24, 2012 20:49
Git and GitHub Free Class Notes from 2012-07-24

This is body text

Optional Title
Code listing line one

Code listing line two

And more body text.

@matthewmccullough
matthewmccullough / cli-history.md
Created July 14, 2012 23:29
GitHub Online Class History for 2012-07-13
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