Skip to content

Instantly share code, notes, and snippets.

Avatar

Matthew J. McCullough matthewmccullough

View GitHub Profile
@matthewmccullough
matthewmccullough / clone-on-two-machines.md
Created Dec 18, 2013
How to clone and update on two machines
View clone-on-two-machines.md

Web:

  • GitHub.com copy of the repo (central)

Machine 1 (Windows):

  • Clone (initial acquisition)
  • Make changes locally on laptop
  • Push changes back to GitHub.com
  • Pull to get any new central (GitHub.com) changes

Machine 2 (Linux):

@matthewmccullough
matthewmccullough / 0_reuse_code.js
Created Dec 5, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View git-and-github-anti-patterns.md

Git and GitHub Anti-Patterns

An idea prompted by Jeremy Deane via a Tweet

Committing

  • Lack of precision
  • No care about atomicity
  • Poor commit messages

History

View example-call-for-go-language-repos.md

> curl https://api.github.com/legacy/repos/search/Go?language=Go

{
  "repositories": [
    {
      "type": "repo",
      "username": "mattn",
      "name": "go-gtk",
      "owner": "mattn",
@matthewmccullough
matthewmccullough / information-workflows-presentation.md
Last active Nov 27, 2016
Information Workflows Presentation
View information-workflows-presentation.md

Information Workflow

Hi I'm Matthew McCullough. I'm at @matthewmccull on Twitter. I work at GitHub as a trainer and need to organize lots of information in order to write books like Presentation Patterns, the O'Reilly Git book, Gradle book, and over a thousand presentations.

Today's big ideas are:

  • Discover
  • Capture
  • Create
  • Process
@matthewmccullough
matthewmccullough / csosug-cd-talk.md
Created Oct 26, 2012
Colorado Springs Open Source User Group Continuous Delivery Talk
View csosug-cd-talk.md
View asciidoc-code-highlighting-sample.asciidoc

Raw

Raw

Example 1. Task list from the imported Ant project
$ gradle tasks
:tasks
@matthewmccullough
matthewmccullough / 2012-09-25-free-class-and-office-hours.md
Created Sep 26, 2012
2012-09-25 Free Class and Office Hours Notes
@matthewmccullough
matthewmccullough / clone.md
Created Sep 21, 2012
Open Enrollment GitHub Class - How to Clone and Push
View clone.md
git clone https://github.com/matthewmccullough/training-repo-09-12.git mytrainingrepo

cd mytrainingrepo
echo CHANGE >> caesar.txt
git add caesar.txt
git commit -m "Changes"
git push 
git branch matthewmccfeature
git checkout matthewmccfeature
vim matthewmcc.txt