Skip to content

Instantly share code, notes, and snippets.

View quilt9's full-sized avatar

Helen Shiu quilt9

  • Markham, Canada
View GitHub Profile
@quilt9
quilt9 / .gitignore
Last active November 25, 2016 16:29 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@quilt9
quilt9 / gist:87552267ff573f4be92a4f219c984518
Created June 14, 2017 20:54
Udacity > JavaScript Design Patterns > Closures and Event Listeners
// https://www.udacity.com/course/viewer#!/c-ud989/l-3417188540/m-3480348671
// Let's say we're making an element for every item in an array. When each is clicked, it should alert its number.
// The solution involves utilizing closures. We're going to create an inner scope to hold the value of num at the exact moment we add the event listener. There are a number of ways to do this -- here's a good one.
// clear the screen for testing
document.body.innerHTML = '';
var nums = [1,2,3];
@quilt9
quilt9 / New repo from another boilerplate repo.sh
Created February 9, 2018 19:42
Create a new repo based on another remote boilerplate repo.
# Cloning the boilerplate remote repo
git clone -o [boilerplate name] [boilerplate remote repo] [new-project repo folder name]
# Enter the cloned repo folder
cd [new-project repo folder name]
# Clean the README
rm README.md && touch README.md
# If you have LICENSE, you can clean it too.
@quilt9
quilt9 / README.md
Created February 23, 2018 17:55 — forked from hofmannsven/README.md
My simply Git Cheatsheet