[ Launch: from video 3 little circles ] a645353d7fbd42342901 by romanarellano[ Launch Inlet ]Gist #3200444
[ Launch: Tributary inlet ] 7e4c284d9b6926881304 by romanarellano[ Launch: Tributary inlet ] e91a0833dfd6b4bdbc76 by romanarellano
| /** | |
| * This function logs to the console each element in an Array of Strings. | |
| * This function accepts an Array of Strings as an argument and returns nothing. | |
| * | |
| * printArray(['Such', 'Hawks', 'Such', 'Hounds']); | |
| * | |
| * Will display in the console as: | |
| * Such | |
| * Hawks | |
| * Such |
Use these as a guides
http://passportjs.org/guide/configure/
http://passportjs.org/guide/username-password/
The app will need to setup and enable sessions.
#tl;dr
git remote add [maintainer's name] [paste URL here]
git branch --track [maintainer's name]_[branch] [remote name from step 2]/[branch you want to track]
git checkout [maintainer's name]_[branch]
git pull
git checkout master
git merge [maintainer's name]_[branch]
| // in your express app, add this module | |
| var methodOverride = require('method-override') | |
| // then add this middleware AFTER bodyParser | |
| app.use(methodOverride('_method')) | |
| // you should now be able to handle that DELETE route | |
| app.delete('/todos/:id', function(){ | |
| // handle the action here | |
| }); |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).



