This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sign in with Twitter. | |
passport.use( | |
new TwitterStrategy( | |
secrets.twitter, function(req, accessToken, tokenSecret, profile, done) { | |
if (req.user) { | |
User.findOne({ twitter: profile.id }, function(err, existingUser) { | |
if (err) { return done(err); } | |
if (existingUser) { | |
req.flash('errors', { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In the next 60 seconds, you'll learn how to open your browser's Developer Tools and write a line of code! You'll need to use Chrome or Firefox to complete this challenge. | |
1) First, let's open up the developer tools. In Chrome, click "Menu" then "More tools" then "Developer Tools". In Firefox, click "Menu", then "Developer", then "Toggle Tools". | |
2) Click the "Console" tab at the top of the Developer Tools window | |
3) Now lets try some code! Type the following into the console prompt: alert('Hello World!'); | |
Did the message pop up? If so, nicely done! If not, click here to get help. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We're looking for help expanding our Free Code Camp "flavor text". The more, the better - as long as it's uplifting and fun: | |
https://www.evernote.com/shard/s116/sh/a7d0cc69-0b0f-4f60-a9f3-9ac0fbf2d556/b1a13584e321ac6a480f6ebc2d9862bc/deep/0/Challenge--Build-a-Personal-Website---Free-Code-Camp.png | |
https://www.evernote.com/shard/s116/sh/e5621566-7074-433f-b3d4-478752e8d361/4505c93fad9cc3f555d7b7cf18fbb230/deep/0/Share-a-link-on-Twitter.png | |
Here's our current flavor text: | |
var verbs = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ $and: [ {'password': { $exists: true } } , { $or: [ { 'twitter': {$exists: false} }, {'linkedin': {$exists: false } }, {'facebook': {$exists: false } }, {'google': {$exists: false } } ] } ] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###Zipline Challenge Ideas### | |
We have a Trello board for this here: https://trello.com/b/oNrPhmI4/bonfires-ziplines-basejumps | |
Zipline challenges involve building simple single-page applications using tools like Bootstrap, jQuery and public APIs in CodePen. These challenges will be reviewed by a human (rather than automatically like the bonfires). | |
These Front End Challenges shouldn't require a database (if the APIs you want to use require keys, Free Code Camp can create an API endpoint for you so you don't have to put they key itself on CodePen). | |
Agreed upon challenge ideas: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
var cal = new CalHeatMap(); | |
var calendar = !{JSON.stringify(calender)}; | |
cal.init({ | |
itemSelector: "#cal-heatmap", | |
domain: "month", | |
subDomain: "day", | |
data: calendar, | |
cellSize: 15, | |
align: 'center', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEST |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Actual Cost of Coding Bootcamps | |
##Raw cost## | |
***Wage Garnishing Bootcamps*** | |
App Academy (18% * $105,000) = $18,900 + 12 weeks | |
Viking Code School (18% * $105,000) = $18,900 + 14 weeks | |
***Cash Up-front Bootcamps*** | |
Hack Reactor ($17,780 over 3 years at 5.5 APR = $19,328 (financing through Upstart)) + 12 weeks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JavaScript Benchmarking | |
O notation and O(n) time complexity | |
Storing things in the Window, Cookies, Session and Local Storage | |
RegexOne-style content | |
Parsing and Traversing JSON |