Skip to content

Instantly share code, notes, and snippets.

View matthewmccullough's full-sized avatar

Matthew J. McCullough matthewmccullough

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

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 December 5, 2013 02:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@matthewmccullough
matthewmccullough / git-and-github-anti-patterns.md
Last active September 10, 2021 12:12
Git and GitHub Anti-patterns

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

@matthewmccullough
matthewmccullough / example-call-for-go-language-repos.md
Created September 4, 2013 15:18
GitHub API Language Query for Go

> 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 November 27, 2016 08:12
Information Workflows Presentation

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 / myfavs.md
Created November 3, 2012 16:22
NFJS Reston, VA GitHub Advanced Notes
@matthewmccullough
matthewmccullough / csosug-cd-talk.md
Created October 26, 2012 01:18
Colorado Springs Open Source User Group Continuous Delivery Talk
@matthewmccullough
matthewmccullough / asciidoc-code-highlighting-sample.asciidoc
Created October 23, 2012 20:51
AsciiDoc Code Highlighting Sample

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 September 26, 2012 02:46
2012-09-25 Free Class and Office Hours Notes
@matthewmccullough
matthewmccullough / clone.md
Created September 21, 2012 16:46
Open Enrollment GitHub Class - How to Clone and Push
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