Skip to content

Instantly share code, notes, and snippets.

View timbledum's full-sized avatar

Marcus Croucher timbledum

  • Auckland, New Zealand
View GitHub Profile
@jakelosh
jakelosh / vbaToggleR1C1
Created June 24, 2013 16:31
ToggleR1C1 allows you to toggle back and forth between R1C1 notation in Excel and A1 notation. I like to assign this macro to the keyboard shortcut CTRL + SHIFT + R
Public Sub ToggleR1C1()
If Application.ReferenceStyle = xlR1C1 Then
Application.ReferenceStyle = xlA1
Else
Application.ReferenceStyle = xlR1C1
End If
End Sub
@jagregory
jagregory / gist:710671
Created November 22, 2010 21:01
How to move to a fork after cloning
So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear!
Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy.
* Off the top of my head *
1. Fork their repo on Github
2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it
git remote add my-fork git@github...my-fork.git