Skip to content

Instantly share code, notes, and snippets.

View laturner42's full-sized avatar

Laura Turner laturner42

View GitHub Profile
@laturner42
laturner42 / gitting-started.md
Last active September 8, 2018 20:23
Gitting Started

General Flow of Development with git

Assuming our repository has already been set up with git init and git remote add origin, this is the general flow one might follow to keep a clean development space. If you need to create a new project, hit New Repository from GitHub and it will walk you through the steps to get going.

Once we're ready to develop, we always want to make sure we have the latest changes from master.

git checkout master
git pull

Now, we need to do our work. We first should check out our feature branch

@laturner42
laturner42 / .js
Created July 22, 2015 18:36
Notepad--
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}