diff --git a/app.js b/app.js
index 08058238d7..2831eb851c 100644
--- a/app.js
+++ b/app.js
@@ -234,57 +234,121 @@ app.use(express.static(__dirname + '/public', { maxAge: 86400000 }));
*/
app.get('/', homeController.index);
-app.get('/privacy', resourcesController.privacy);
+
+app.get('/privacy', function(req, res) {
+ res.redirect(301, "/wiki/free-code-camp's-privacy-policy");
+});
+
+app.get('/nonprofit-project-instructions', function(req, res) {
+ res.redirect(301, "/wiki/free-code-camp's-privacy-policy");
+});
+
app.get('/jquery-exercises', resourcesController.jqueryExercises);
+
app.get('/chat', resourcesController.chat);
-app.get('/live-pair-programming', resourcesController.livePairProgramming);
-app.get('/install-screenhero', resourcesController.installScreenHero);
-app.get('/javascript-in-your-inbox', resourcesController.javaScriptInYourInbox);
-app.get('/guide-to-our-nonprofit-projects', resourcesController.guideToOurNonprofitProjects);
-app.get('/chromebook', resourcesController.chromebook);
-app.get('/deploy-a-website', resourcesController.deployAWebsite);
-app.get('/gmail-shortcuts', resourcesController.gmailShortcuts);
-app.get('/nodeschool-challenges', resourcesController.nodeSchoolChallenges);
+
+app.get('/live-pair-programming', function(req, res) {
+ res.redirect(301, '/wiki/live-stream-pair-programming-on-twitch.tv');
+});
+
+app.get('/install-screenhero', function(req, res) {
+ res.redirect(301, '/wiki/install-screenhero');
+});
+
+app.get('/guide-to-our-nonprofit-projects', function(req, res) {
+ res.redirect(301, '/wiki/a-guide-to-our-nonprofit-projects');
+});
+
+app.get('/chromebook', function(req, res) {
+ res.redirect(301, '/wiki/chromebook');
+});
+
+app.get('/deploy-a-website', function(req, res) {
+ res.redirect(301, '/wiki/deploy-a-website');
+});
+
+app.get('/gmail-shortcuts', function(req, res) {
+ res.redirect(301, '/wiki/gmail-shortcuts');
+});
+
+app.get('/nodeschool-challenges', function(req, res) {
+ res.redirect(301, '/wiki/nodeschool-challenges');
+});
+
app.get('/stats', function(req, res) {
res.redirect(301, '/learn-to-code');
});
-app.get('/news', function(req, res) {
- res.redirect(301, '/stories/hot');
-});
-app.get('/learn-to-code', resourcesController.about);
+
app.get('/about', function(req, res) {
res.redirect(301, '/learn-to-code');
});
+
+app.get('/learn-to-code', resourcesController.about);
+
+app.get('/news', function(req, res) {
+ res.redirect(301, '/stories/hot');
+});
+
app.get('/signin', userController.getSignin);
+
app.get('/login', function(req, res) {
res.redirect(301, '/signin');
});
+
app.post('/signin', userController.postSignin);
+
app.get('/signout', userController.signout);
+
app.get('/logout', function(req, res) {
res.redirect(301, '/signout');
});
+
app.get('/forgot', userController.getForgot);
+
app.post('/forgot', userController.postForgot);
+
app.get('/reset/:token', userController.getReset);
+
app.post('/reset/:token', userController.postReset);
+
app.get('/email-signup', userController.getEmailSignup);
+
app.get('/email-signin', userController.getEmailSignin);
+
app.post('/email-signup', userController.postEmailSignup);
+
app.post('/email-signin', userController.postSignin);
+
+/**
+ * Nonprofit Project routes.
+ */
+
app.get('/nonprofits', contactController.getNonprofitsForm);
+
app.post('/nonprofits', contactController.postNonprofitsForm);
+
app.get('/nonprofits/home', nonprofitController.nonprofitsHome);
+
app.get('/nonprofits/are-you-with-a-registered-nonprofit', nonprofitController.areYouWithARegisteredNonprofit);
+
app.get('/nonprofits/are-there-people-that-are-already-benefiting-from-your-services', nonprofitController.areTherePeopleThatAreAlreadyBenefitingFromYourServices);
+
app.get('/nonprofits/in-exchange-we-ask', nonprofitController.inExchangeWeAsk);
+
app.get('/nonprofits/ok-with-javascript', nonprofitController.okWithJavaScript);
+
app.get('/nonprofits/how-can-free-code-camp-help-you', nonprofitController.howCanFreeCodeCampHelpYou);
+
app.get('/nonprofits/what-does-your-nonprofit-do', nonprofitController.whatDoesYourNonprofitDo);
+
app.get('/nonprofits/link-us-to-your-website', nonprofitController.linkUsToYourWebsite);
+
app.get('/nonprofits/tell-us-your-name', nonprofitController.tellUsYourName);
+
app.get('/nonprofits/tell-us-your-email', nonprofitController.tellUsYourEmail);
+
app.get('/nonprofits/your-nonprofit-project-application-has-been-submitted', nonprofitController.yourNonprofitProjectApplicationHasBeenSubmitted);
+
app.get('/nonprofits/other-solutions', nonprofitController.otherSolutions);
app.get(
@@ -297,11 +361,6 @@ app.post(
passportConf.isAuthenticated,
contactController.postDoneWithFirst100Hours
);
-app.get(
- '/nonprofit-project-instructions',
- passportConf.isAuthenticated,
- resourcesController.nonprofitProjectInstructions
-);
app.post(
'/update-progress',
passportConf.isAuthenticated,
@@ -309,7 +368,7 @@ app.post(
);
/**
- * Main routes.
+ * Camper News routes.
*/
app.get(
'/stories/hotStories',
@@ -395,6 +454,7 @@ app.post(
);
app.all('/account', passportConf.isAuthenticated);
+
app.get('/account/api', userController.getAccountAngular);
/**
@@ -402,7 +462,9 @@ app.get('/account/api', userController.getAccountAngular);
*/
app.get('/api/github', resourcesController.githubCalls);
+
app.get('/api/blogger', resourcesController.bloggerCalls);
+
app.get('/api/trello', resourcesController.trelloCalls);
/**
@@ -410,16 +472,24 @@ app.get('/api/trello', resourcesController.trelloCalls);
*/
app.get('/bonfires/getBonfireList', bonfireController.showAllBonfires);
+
app.get('/playground', bonfireController.index);
+
app.get('/bonfires', bonfireController.returnNextBonfire);
+
app.get('/bonfire-json-generator', bonfireController.returnGenerator);
+
app.post('/bonfire-json-generator', bonfireController.generateChallenge);
+
app.get('/bonfire-challenge-generator', bonfireController.publicGenerator);
+
app.post('/bonfire-challenge-generator', bonfireController.testBonfire)
+
app.get(
'/bonfires/:bonfireName',
bonfireController.returnIndividualBonfire
);
+
app.get('/bonfire', function(req, res) {
res.redirect(301, '/playground');
});
@@ -445,24 +515,36 @@ app.post('/completed-bonfire/', bonfireController.completedBonfire);
*/
app.get('/challenges/', coursewareController.returnNextCourseware);
+
app.get('/challenges/getCoursewareList', coursewareController.showAllCoursewares);
+
app.get(
'/challenges/:coursewareName',
coursewareController.returnIndividualCourseware
);
+
app.post('/completed-courseware/', coursewareController.completedCourseware);
+
app.post('/completed-zipline-or-basejump',
coursewareController.completedZiplineOrBasejump);
// Unique Check API route
app.get('/api/checkUniqueUsername/:username', userController.checkUniqueUsername);
+
app.get('/api/checkExistingUsername/:username', userController.checkExistingUsername);
+
app.get('/api/checkUniqueEmail/:email', userController.checkUniqueEmail);
+
app.get('/account', userController.getAccount);
+
app.post('/account/profile', userController.postUpdateProfile);
+
app.post('/account/password', userController.postUpdatePassword);
+
app.post('/account/delete', userController.postDeleteAccount);
+
app.get('/account/unlink/:provider', userController.getOauthUnlink);
+
app.get('/sitemap.xml', resourcesController.sitemap);
/**
* OAuth sign-in routes.
@@ -474,6 +556,7 @@ var passportOptions = {
};
app.get('/auth/twitter', passport.authenticate('twitter'));
+
app.get(
'/auth/twitter/callback',
passport.authenticate('twitter', {
@@ -507,6 +590,7 @@ app.get(
);
app.get('/auth/github', passport.authenticate('github'));
+
app.get(
'/auth/github/callback',
passport.authenticate('github', passportOptions), function (req, res) {
@@ -518,6 +602,7 @@ app.get(
'/auth/google',
passport.authenticate('google', {scope: 'profile email'})
);
+
app.get(
'/auth/google/callback',
passport.authenticate('google', passportOptions), function (req, res) {
@@ -525,10 +610,6 @@ app.get(
}
);
-app.get('/induce-vomiting', function(req, res, next) {
- next(new Error('vomiting induced'));
-});
-
// put this route last
app.get(
'/:username',
diff --git a/controllers/resources.js b/controllers/resources.js
index adb4606a72..8fa984e6ff 100644
--- a/controllers/resources.js
+++ b/controllers/resources.js
@@ -78,87 +78,18 @@ module.exports = {
});
},
- deployAWebsite: function deployAWebsite(req, res) {
- res.render('resources/deploy-a-website', {
- title: 'Deploy a Dynamic Website in 7 Minutes'
- });
- },
-
chat: function chat(req, res) {
res.render('resources/chat', {
title: "Enter Free Code Camp's Chat Rooms"
});
},
- nonprofitProjectInstructions: function nonprofitProjectInstructions(req, res) {
- res.render('resources/nonprofit-project-instructions', {
- title: 'Nonprofit Project Instructions'
- });
- },
-
- gmailShortcuts: function gmailShortcuts(req, res) {
- res.render('resources/gmail-shortcuts', {
- title: 'These Gmail Shortcuts will save you Hours'
- });
- },
-
- guideToOurNonprofitProjects: function guideToOurNonprofitProjects(req, res) {
- res.render('resources/guide-to-our-nonprofit-projects', {
- title: 'A guide to our Nonprofit Projects'
- });
- },
-
- chromebook: function chromebook(req, res) {
- res.render('resources/chromebook', {
- title: 'Win a Chromebook'
- });
- },
-
jqueryExercises: function jqueryExercises(req, res) {
res.render('resources/jquery-exercises', {
title: 'jQuery Exercises'
});
},
- livePairProgramming: function(req, res) {
- res.render('resources/live-pair-programming', {
- title: 'Live Pair Programming'
- });
- },
-
- installScreenHero: function(req, res) {
- res.render('resources/install-screenhero', {
- title: 'Install ScreenHero'
- });
- },
-
- javaScriptInYourInbox: function(req, res) {
- res.render('resources/javascript-in-your-inbox', {
- title: 'JavaScript in your Inbox'
- });
- },
-
- nodeSchoolChallenges: function(req, res) {
- res.render('resources/nodeschool-challenges', {
- title: 'NodeSchool Challenges'
- });
- },
-
- trelloCalls: function(req, res, next) {
- request('https://trello.com/1/boards/BA3xVpz9/cards?key=' + secrets.trello.key, function(err, status, trello) {
- if (err) { return next(err); }
- trello = (status && status.statusCode == 200) ? (JSON.parse(trello)) : "Can't connect to to Trello";
- res.end(JSON.stringify(trello));
- });
- },
- bloggerCalls: function(req, res, next) {
- request('https://www.googleapis.com/blogger/v3/blogs/2421288658305323950/posts?key=' + secrets.blogger.key, function (err, status, blog) {
- if (err) { return next(err); }
- blog = (status && status.statusCode == 200) ? JSON.parse(blog) : "Can't connect to Blogger";
- res.end(JSON.stringify(blog));
- });
- },
-
githubCalls: function(req, res) {
var githubHeaders = {headers: {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1521.3 Safari/537.36'}, port:80 };
request('https://api.github.com/repos/freecodecamp/freecodecamp/pulls?client_id=' + secrets.github.clientID + '&client_secret=' + secrets.github.clientSecret, githubHeaders, function(err, status1, pulls) {
@@ -177,6 +108,7 @@ module.exports = {
res.end(JSON.stringify(trello));
});
},
+
bloggerCalls: function(req, res, next) {
request('https://www.googleapis.com/blogger/v3/blogs/2421288658305323950/posts?key=' + secrets.blogger.key, function (err, status, blog) {
if (err) { return next(err); }
@@ -270,7 +202,6 @@ module.exports = {
});
},
-
randomPhrase: function() {
var phrases = resources.phrases;
return phrases[Math.floor(Math.random() * phrases.length)];
@@ -300,6 +231,7 @@ module.exports = {
return elem._id;
});
},
+
allBonfireNames: function() {
return bonfires.map(function(elem) {
return {
@@ -319,6 +251,25 @@ module.exports = {
});
},
+ allBonfireNames: function() {
+ return bonfires.map(function(elem) {
+ return {
+ name: elem.name,
+ difficulty: elem.difficulty,
+ _id: elem._id
+ }
+ })
+ .sort(function(a, b) {
+ return a.difficulty - b.difficulty;
+ })
+ .map (function(elem) {
+ return {
+ name : elem.name,
+ _id: elem._id
+ }
+ });
+ },
+
getAllCourses: function() {
"use strict";
return coursewares;
@@ -338,6 +289,7 @@ module.exports = {
return elem._id;
});
},
+
allCoursewareNames: function() {
return coursewares.map(function(elem) {
return {
@@ -356,9 +308,11 @@ module.exports = {
};
});
},
+
whichEnvironment: function() {
return process.env.NODE_ENV;
},
+
getURLTitle: function(url, callback) {
(function () {
var result = {title: '', image: '', url: '', description: ''};
@@ -379,6 +333,7 @@ module.exports = {
});
})();
},
+
updateUserStoryPictures: function(userId, picture, username, cb) {
var counter = 0,
diff --git a/seed_data/wikis.json b/seed_data/wikis.json
index 3dec5421f8..f356bfdfff 100644
--- a/seed_data/wikis.json
+++ b/seed_data/wikis.json
@@ -21,5 +21,281 @@
" ",
"Start learning to code (it's free)
"
]
+ },
+ {
+ "_id": "bd7158d9c443eddfaeb5bdef",
+ "name": "Win a Chromebook for Christmas",
+ "description": [
+ "
Once you've finished all the challenges, click the \"I'm done with all the challenges\" button, which will become enabled. We will prompt you for your email address, then give you further instructions on our Nonprofit Projects Instructions page.
", + "We will add you to our Nonprofit Project Trello board.
", + "Our goal at Free Code Camp is to help you land a job as a junior software developer (or, if you prefer, a 'pivot job' that leads your current career in a more technical direction).
", + "You'll continue to work on nonprofit projects until you've built a sufficiently impressive portfolio and references to start your job search. Your portfolio will ultimately have three to five nonprofit projects. We estimate that the 900 hours of nonprofit projects you're going to complete, in addition to the 100 hours of challenges you've already completed, will be enough to qualify you for your first coding job. This will produce a much broader portfolio than a traditional coding bootcamp, which generally only has one or two capstone projects.
", + "We've categorized all the nonprofit projects by estimated time investment per camper: 100 hours, 200 hours, and 300 hours. These are only rough estimates.
", + "Example: if you and the camper you're paired up with (your pair) each stated you could work 20 hours per week (on the form you filled out). If the project is a 100 hour per camper project, you should be able to complete it in about 5 weeks.
", + "Our team of nonprofit project camp counselors will match you and your pair based on:", + "
We won't take age or gender into account. This will provide you with valuable experience in meshing with diverse teams, which is a reality of the contemporary workplace.
", + "You'll only work on one project at a time. Once you start a nonprofit project, we'll remove you from all other nonprofit project Trello cards. There's a good chance those projects will no longer be available when you finish your current project, anyway. Don't worry, though - we get new nonprofit project requests every day, so there will be plenty more projects for you to consider after you finish your current one.
", + "Before you can start working on the project, our team of Nonprofit Project Coordinators will go through the following process:", + "
This lengthy process serves an important purpose: it reduces the likelihood that any of our campers or stakeholders will waste their precious time.
", + "Each nonprofit project was submitted by a nonprofit. A representative from this nonprofit has agreed to serve as a \"stakeholder\" - an authorative person who understands the organization and its needs for this particular project.
", + "Stakeholders have a deep understanding of their organizations' needs. Campers will work with them to figure out the best solutions to these needs.
", + "When you and your pair first speak with your nonprofit stakeholder, you'll:", + "
It's notoriously difficult to estimate how long building software projects will take, so feel free to ask camp counselors for help.
", + "You'll continue to meet with your stakeholder at least twice a month in your project's Gitter channel.
", + "You should also ask questions in your project's Gitter channel as they come up throughout the week, and your stakeholder can answer them asynchronously.
", + "Getting \"blocked\" on a task can take away your sense of forward momentum, so be sure to proactively seek answers to any ambiguities you encounter.
", + "Ultimately, the project will be considered complete once both the stakeholder's needs have been met, and you and your pair are happy with the project. Then you can add it to your portfolio!
", + "You and your pair will pair program (code together on the same computer virtually) about half of the time, and work independently the other half of the time.
", + "Here are our recommended ways of collaborating:", + "
We've created a custom virtual machine image with Ubuntu Linux, Git, Team Viewer, the MEAN Stack and all its dependencies. You can run this virtual image on any computer with at least 2 gigabytes of RAM and 16 gigabytes of hard drive space.
", + "The benefits of using this virtual machine are as follows:
", + "Install a bit torrent client, then download our virtual machine image.
", + "Please note that even though Bit Torrent is often used to download content illegally, all the content on our image is open source and perfectly legal to redistribute.
", + "Once you've downloaded the file, download VirtualBox and follow this tutorial to open the image in VirtualBox. You'll want to assign the virtual machine at least two gigabytes of ram.
", + "Now you have your own Linux development environment. You can shut it down when you're not using it and it will save its state. Please continue to seed the file in bit torrent so that other campers can download it as well. Enjoy!
", + "Unless your stakeholder has an existing modern host (AWS, Digital Ocean), you'll need to transition them over to a new platform. We believe Heroku is the best choice for a vast majority of web projects. It's free, easy to use, and has both browser and command line interfaces. It's owned by Salesforce and used by a ton of companies, so it's accountable and unlikely to go away.
", + "If you need help convincing your stakeholder that Heroku is the ideal platform, we'll be happy to talk with them.
", + "Once you complete a nonprofit project, your obligation to its stakeholder is finished. You goal is to leave behind a well documented solution that can be easily maintained by a contract JavaScript developer (or even a less-technical \"super user\").
", + "While you will no longer need to help with feature development, we encourage you to consider helping your stakeholder with occasional patches down the road. After all, this project will be an important piece of your portfolio, and you'll want it to remain in good shape for curious future employers.
", + "Quincy Larson and/or Michael Johnson will be in the Gitter Nonprofit Project Channel every Monday and Thursday from 9 - 10 p.m. EST.
", + "Our goal is to make the discussion as public as possible so all our campers can benefit from each camper’s questions.
", + "If necessary, we can also hop on Screen Hero with you to help you with issues more specific to your project.
", + "Your nonprofit stakeholder, your pair, and the volunteer camp counselor team are all counting on you to finish your nonprofit project. If you walk away from an unfinished nonprofit project, you'll become ineligible to ever be assigned another one.
", + "To confirm that you understand the seriousness of this commitment, we require that all campers sign this pledge before starting on their nonprofit projects.
", + "There will likely be times of confusion or frustration. This is normal in software development. The most important thing is that you do not give up and instead persevere through these setbacks. As Steve Jobs famously said, \"Real artists ship.\" And you are going to ship one successful nonprofit project after another until you feel ready to take the next step in your promising career.
", + "You can learn more about using Screen Hero by taking Challenge 34.
", + "Screen Hero was recently acquired by a collaboration tool called Slack.
", + "It's still available and free, but will go away in the indefinite future. We'll replace it.", + "Free Code Camp is committed to respecting the privacy of visitors to our web sites and web applications. The guidelines below explain how we protect the privacy of visitors to FreeCodeCamp.com and its features.
", + "Free Code Camp protects the identity of visitors to FreeCodeCamp.com by limiting the collection of personally identifiable information.
", + "Free Code Camp does not knowingly collect or solicit personally identifiable information from or about children under 13, except as permitted by law. If we discover we have received any information from a child under 13 in violation of this policy, we will delete that information immediately. If you believe Free Code Camp has any information from or about anyone under 13, please e-mail us at team@freecodecamp.com.
", + "All personally identifiable information you provide to us is used by Free Code Camp and its team to process and manage your account, analyze the demographic of our users, or to deliver services through the site.
", + "If you choose to provide personally identifiable information to us, you may receive occasional e-mails from us that are relevant to Free Code Camp, getting a job, or learning to code in general.
", + "Free Code Camp may also use other third-party providers to facilitate the delivery of the services described above, and these third-party providers may be supplied with or have access to personally identifiable information for the sole purpose of providing these services, to you on behalf of Free Code Camp.
", + "Free Code Camp may also disclose personally identifiable information in special legal circumstances. For instance, such information may be used where it is necessary to protect our copyright or intellectual property rights, or if the law requires us to do so.
", + "Anonymous aggregated data may be provided to other organizations we associate with for statistical purposes. For example, we may report to an organization that a certain percentage of our site's visitors are adults between the ages of 25 and 35.
", + "We use cookies and software logs to monitor the use of FreeCodeCamp.com and to gather non-personal information about visitors to the site. Cookies are small files that Free Code Camp transfers to the hard drives of visitors for record-keeping purposes. These monitoring systems allow us to track general information about our visitors, such as the type of browsers (for example, Firefox or Internet Explorer), the operating systems (for instance, Windows or Macintosh), or the Internet providers (for instance, Comcast) they use. This information is used for statistical and market research purposes to tailor content to usage patterns and to provide services requested by our customers. To delete these cookies, please see your browser's privacy settings.
", + "A beacon is an electronic file object (typically a transparent image) placed in the code of a Web page. We use third party beacons to monitor the traffic patterns of visitors from one Free Code Camp.com page to another and to improve site performance.
", + "None of the information we gather in this way can be used to identify any individual who visits our site.
", + "Any personally identifiable information collected through this site is stored on limited-access servers. We will maintain safeguards to protect these servers and the information they store.
", + "We may occasionally conduct on-line surveys. All surveys are voluntary and you may decline to participate.
", + "All of the content on FreeCodeCamp.com is copyrighted by Free Code Camp. If you'd like to redistribute it beyond simply sharing it through social media, please contact us at team@freecodecamp.com.
", + "If you have questions about Free Code Camp, or to correct, update, or remove personally identifiable information, please email us at team@freecodecamp.com.
", + "Free Code Camp's sites each contain links to other Web sites. Free Code Camp is not responsible for the privacy practices or content of these third-party Web sites. We urge all FreeCodeCamp.com visitors to follow safe Internet practices: Do not supply Personally Identifiable Information to these Web sites unless you have verified their security and privacy policies.
", + "We retain your information for as long as necessary to permit us to use it for the purposes that we have communicated to you and comply with applicable law or regulations.
", + "As we continue to develop our business, we might sell or buy subsidiaries, or business units. In such transactions, customer information generally is one of the transferred business assets but remains subject to the promises made in any pre-existing Privacy Policy (unless, of course, the customer consents otherwise). Also, in the unlikely event that Free Code Camp, or substantially all of its assets are acquired, customer information will be one of the transferred assets, and will remain subject to our Privacy Policy.
", + "If you are a California resident, you are entitled to prevent sharing of your personal information with third parties for their own marketing purposes through a cost-free means. If you send a request to the address above, Free Code Camp will provide you with a California Customer Choice Notice that you may use to opt-out of such information sharing. To receive this notice, submit a written request to team@freecodecamp.com, specifying that you seek your "California Customer Choice Notice." Please allow at least thirty (30) days for a response.
", + "By using this site, you signify your agreement to the terms and conditions of this FreeCodeCamp.com Privacy Policy. If you do not agree to these terms, please do not use this site. We reserve the right, at our sole discretion, to change, modify, add, or remove portions of this policy at any time. All amended terms automatically take effect 30 days after they are initially posted on the site. Please check this page periodically for any modifications. Your continued use of FreeCodeCamp.com following the posting of any changes to these terms shall mean that you have accepted those changes.
", + "If you have any questions or concerns, please send an e-mail to team@freecodecamp.com.
", + "Free Code Camp is committed to respecting the privacy of visitors to our web sites and web applications. The guidelines below explain how we protect the privacy of visitors to FreeCodeCamp.com and its features.
-Free Code Camp protects the identity of visitors to FreeCodeCamp.com by limiting the collection of personally identifiable information.
-Free Code Camp does not knowingly collect or solicit personally identifiable information from or about children under 13, except as permitted by law. If we discover we have received any information from a child under 13 in violation of this policy, we will delete that information immediately. If you believe Free Code Camp has any information from or about anyone under 13, please e-mail us at team@freecodecamp.com.
-All personally identifiable information you provide to us is used by Free Code Camp and its team to process and manage your account, analyze the demographic of our users, or to deliver services through the site.
-If you choose to provide personally identifiable information to us, you may receive occasional e-mails from us that are relevant to Free Code Camp, getting a job, or learning to code in general.
-Free Code Camp may also use other third-party providers to facilitate the delivery of the services described above, and these third-party providers may be supplied with or have access to personally identifiable information for the sole purpose of providing these services, to you on behalf of Free Code Camp.
-Free Code Camp may also disclose personally identifiable information in special legal circumstances. For instance, such information may be used where it is necessary to protect our copyright or intellectual property rights, or if the law requires us to do so.
-Anonymous aggregated data may be provided to other organizations we associate with for statistical purposes. For example, we may report to an organization that a certain percentage of our site's visitors are adults between the ages of 25 and 35.
-We use cookies and software logs to monitor the use of FreeCodeCamp.com and to gather non-personal information about visitors to the site. Cookies are small files that Free Code Camp transfers to the hard drives of visitors for record-keeping purposes. These monitoring systems allow us to track general information about our visitors, such as the type of browsers (for example, Firefox or Internet Explorer), the operating systems (for instance, Windows or Macintosh), or the Internet providers (for instance, Comcast) they use. This information is used for statistical and market research purposes to tailor content to usage patterns and to provide services requested by our customers. To delete these cookies, please see your browser's privacy settings.
-A beacon is an electronic file object (typically a transparent image) placed in the code of a Web page. We use third party beacons to monitor the traffic patterns of visitors from one Free Code Camp.com page to another and to improve site performance.
-None of the information we gather in this way can be used to identify any individual who visits our site.
-Any personally identifiable information collected through this site is stored on limited-access servers. We will maintain safeguards to protect these servers and the information they store.
-We may occasionally conduct on-line surveys. All surveys are voluntary and you may decline to participate.
-All of the content on FreeCodeCamp.com is copyrighted by Free Code Camp. If you'd like to redistribute it beyond simply sharing it through social media, please contact us at team@freecodecamp.com.
-If you have questions about Free Code Camp, or to correct, update, or remove personally identifiable information, please email us at team@freecodecamp.com.
-Free Code Camp's sites each contain links to other Web sites. Free Code Camp is not responsible for the privacy practices or content of these third-party Web sites. We urge all FreeCodeCamp.com visitors to follow safe Internet practices: Do not supply Personally Identifiable Information to these Web sites unless you have verified their security and privacy policies.
-We retain your information for as long as necessary to permit us to use it for the purposes that we have communicated to you and comply with applicable law or regulations.
-As we continue to develop our business, we might sell or buy subsidiaries, or business units. In such transactions, customer information generally is one of the transferred business assets but remains subject to the promises made in any pre-existing Privacy Policy (unless, of course, the customer consents otherwise). Also, in the unlikely event that Free Code Camp, or substantially all of its assets are acquired, customer information will be one of the transferred assets, and will remain subject to our Privacy Policy.
-If you are a California resident, you are entitled to prevent sharing of your personal information with third parties for their own marketing purposes through a cost-free means. If you send a request to the address above, Free Code Camp will provide you with a California Customer Choice Notice that you may use to opt-out of such information sharing. To receive this notice, submit a written request to team@freecodecamp.com, specifying that you seek your "California Customer Choice Notice." Please allow at least thirty (30) days for a response.
-By using this site, you signify your agreement to the terms and conditions of this FreeCodeCamp.com Privacy Policy. If you do not agree to these terms, please do not use this site. We reserve the right, at our sole discretion, to change, modify, add, or remove portions of this policy at any time. All amended terms automatically take effect 30 days after they are initially posted on the site. Please check this page periodically for any modifications. Your continued use of FreeCodeCamp.com following the posting of any changes to these terms shall mean that you have accepted those changes.
-If you have any questions or concerns, please send an e-mail to team@freecodecamp.com.
- script. - var challengeName = 'Privacy'; diff --git a/views/resources/programmer-interview-questions-app.jade b/views/resources/programmer-interview-questions-app.jade deleted file mode 100644 index 14dbada372..0000000000 --- a/views/resources/programmer-interview-questions-app.jade +++ /dev/null @@ -1,202 +0,0 @@ -extends ../layout -block content - script. - $(document).ready(function () { - var directions = { - 0: "To get started, open your Chrome DevTools. The #next-exercise button is disabled below. Try using jQuery's .attr() method to turn the disabled attribute to false.", - 1: "Move the .target element from #location1 to #location2.", - 2: "Change the background color of .target to red.", - 3: "Change the background color of the even-numbered targets to red.", - 4: "Change the background color of the target4 to red.", - 5: "Clone the target2 in #location1 so that it also exists in #location2.", - 6: "Remove the target3 from element from #location1.", - 7: "Check the following checkboxes using jQuery.", - 8: "Make the text input field read-only.", - 9: "Select the target2 option in the select box.", - 10: "Add the following css classes to .target: 'animated' and 'hinge'.", - 11: "Use jQuery to read the data of .target.", - 12: "Use 'length' to count the number of child elements in #location1, then display that value in #location2.", - 13: "There's an element hidden in #location1. Show it using jQuery, and then click on it." - }; - var hint = { - 0: "$('#next-exercise').attr('disabled', false);", - 1: "$('.target').appendTo('#location2');", - 2: "$('.target').css('background', 'red');", - 3: "$('.target:even').css('background', 'red');", - 4: "$('.target:nth-child(4)').css('background', 'red');", - 5: "$('.target:nth-child(2)').clone().appendTo($('#location2'));", - 6: "$('.target:nth-child(3)').remove();", - 7: "$('#location1 input').attr('checked', 'true')", - 8: "$('#location1 input').attr('readonly', 'true')", - 9: "$('#location1 select').val('target2');", - 10: "$('.target').addClass('animated hinge');", - 11: "$('.target').data();", - 12: "$('#location2').text($('#location1').children().length)", - 13: "$('#finished-button').show().click();" - }; - var elements = { - 0: "", - 1: "