Skip to content

Instantly share code, notes, and snippets.

View ShawnClake's full-sized avatar
💭
Coding

Shawn Clake ShawnClake

💭
Coding
  • Offstreet
  • Canada
View GitHub Profile
@ShawnClake
ShawnClake / github.md
Last active October 28, 2018 16:15
Github cheatsheet

Github command cheatsheet

Branching

If another_branch already exists locally and you are not on this branch, then git checkout another_branch switches to the branch.

If another_branch does not exist but origin/another_branch does, then git checkout another_branch is equivalent to git checkout -b another_branch origin/another_branch;git branch -u origin/another_branch. That's to create another_branch from origin/another_branch and set origin/another_branch as the upstream of another_branch.

If neither exists, git checkout another_branch returns error.

@ShawnClake
ShawnClake / css_circular_profile_pictures.html
Last active October 9, 2018 21:04
CSS Circular Profile Pictures
<div style='background-image:url("https://i.ytimg.com/vi/gaLIEUNv2YM/maxresdefault.jpg");background-position:50% 50%;background-size: cover;background-repeat:no-repeat;border-radius:50%;height:250px;width:250px;'></div>
@ShawnClake
ShawnClake / markdown.md
Created October 28, 2018 16:10
Markdown Cheat sheet