Merge remote-tracking branch 'origin/staging' into curriculum/JSONAndAJAX
:ting with '#' will be ignored, and an empty message aborts : aad] dad
This commit is contained in:
@ -378,7 +378,7 @@
|
|||||||
"truncate(\"A-tisket a-tasket A green and yellow basket\", 11, \"\");"
|
"truncate(\"A-tisket a-tasket A green and yellow basket\", 11, \"\");"
|
||||||
],
|
],
|
||||||
"tests": [
|
"tests": [
|
||||||
"assert(truncate(\"A-tisket a-tasket A green and yellow basket\", 11) === \"A-tisket...\", 'message: <code>truncate(\"A-tisket a-tasket A green and yellow basket\", 1)</code> should return \"A-tisket...\".');",
|
"assert(truncate(\"A-tisket a-tasket A green and yellow basket\", 11) === \"A-tisket...\", 'message: <code>truncate(\"A-tisket a-tasket A green and yellow basket\", 11)</code> should return \"A-tisket...\".');",
|
||||||
"assert(truncate(\"Peter Piper picked a peck of pickled peppers\", 14) === \"Peter Piper...\", 'message: <code>truncate(\"Peter Piper picked a peck of pickled peppers\", 14)</code> should return \"Peter Piper...\".');",
|
"assert(truncate(\"Peter Piper picked a peck of pickled peppers\", 14) === \"Peter Piper...\", 'message: <code>truncate(\"Peter Piper picked a peck of pickled peppers\", 14)</code> should return \"Peter Piper...\".');",
|
||||||
"assert(truncate(\"A-tisket a-tasket A green and yellow basket\", \"A-tisket a-tasket A green and yellow basket\".length) === \"A-tisket a-tasket A green and yellow basket\", 'message: <code>truncate(\"A-tisket a-tasket A green and yellow basket\", \"A-tisket a-tasket A green and yellow basket\".length)</code> should return \"A-tisket a-tasket A green and yellow basket\".');",
|
"assert(truncate(\"A-tisket a-tasket A green and yellow basket\", \"A-tisket a-tasket A green and yellow basket\".length) === \"A-tisket a-tasket A green and yellow basket\", 'message: <code>truncate(\"A-tisket a-tasket A green and yellow basket\", \"A-tisket a-tasket A green and yellow basket\".length)</code> should return \"A-tisket a-tasket A green and yellow basket\".');",
|
||||||
"assert(truncate('A-tisket a-tasket A green and yellow basket', 'A-tisket a-tasket A green and yellow basket'.length + 2) === 'A-tisket a-tasket A green and yellow basket', 'message: <code>truncate(\"A-tisket a-tasket A green and yellow basket\", \"A-tisket a-tasket A green and yellow basket\".length + 2)</code> should return \"A-tisket a-tasket A green and yellow basket\".');"
|
"assert(truncate('A-tisket a-tasket A green and yellow basket', 'A-tisket a-tasket A green and yellow basket'.length + 2) === 'A-tisket a-tasket A green and yellow basket', 'message: <code>truncate(\"A-tisket a-tasket A green and yellow basket\", \"A-tisket a-tasket A green and yellow basket\".length + 2)</code> should return \"A-tisket a-tasket A green and yellow basket\".');"
|
||||||
|
@ -1039,7 +1039,7 @@
|
|||||||
],
|
],
|
||||||
"tests":[
|
"tests":[
|
||||||
"assert(test === 2, 'message: Your RegEx should have found two numbers in the <code>testString</code>.');",
|
"assert(test === 2, 'message: Your RegEx should have found two numbers in the <code>testString</code>.');",
|
||||||
"assert(editor.getValue().match(/\\/\\\\d\\+\\//gi), 'message: You should be using the following expression <code>/\\\\d+/gi</code> to find the numbers in the <code>testString</code>.');"
|
"assert(editor.getValue().match(/\\/\\\\d\\+\\//g), 'message: You should be using the following expression <code>/\\d+/g</code> to find the numbers in the <code>testString</code>.');"
|
||||||
],
|
],
|
||||||
"challengeSeed":[
|
"challengeSeed":[
|
||||||
"var test = (function() {",
|
"var test = (function() {",
|
||||||
@ -1047,7 +1047,7 @@
|
|||||||
"",
|
"",
|
||||||
" // Only change code below this line.",
|
" // Only change code below this line.",
|
||||||
"",
|
"",
|
||||||
" var expression = /.+/gi;",
|
" var expression = /.+/g;",
|
||||||
"",
|
"",
|
||||||
" // Only change code above this line.",
|
" // Only change code above this line.",
|
||||||
" // We use this function to show you the value of your variable in your output box.",
|
" // We use this function to show you the value of your variable in your output box.",
|
||||||
@ -1069,7 +1069,7 @@
|
|||||||
],
|
],
|
||||||
"tests":[
|
"tests":[
|
||||||
"assert(test === 7, 'message: Your RegEx should have found seven spaces in the <code>testString</code>.');",
|
"assert(test === 7, 'message: Your RegEx should have found seven spaces in the <code>testString</code>.');",
|
||||||
"assert(editor.getValue().match(/\\/\\\\s\\+\\//gi), 'message: You should be using the following expression <code>/\\\\s+/gi</code> to find the spaces in the <code>testString</code>.');"
|
"assert(editor.getValue().match(/\\/\\\\s\\+\\//g), 'message: You should be using the following expression <code>/\\s+/g</code> to find the spaces in the <code>testString</code>.');"
|
||||||
],
|
],
|
||||||
"challengeSeed":[
|
"challengeSeed":[
|
||||||
"var test = (function(){",
|
"var test = (function(){",
|
||||||
@ -1077,7 +1077,7 @@
|
|||||||
"",
|
"",
|
||||||
" // Only change code below this line.",
|
" // Only change code below this line.",
|
||||||
"",
|
"",
|
||||||
" var expression = /.+/gi;",
|
" var expression = /.+/g;",
|
||||||
"",
|
"",
|
||||||
" // Only change code above this line.",
|
" // Only change code above this line.",
|
||||||
" // We use this function to show you the value of your variable in your output box.",
|
" // We use this function to show you the value of your variable in your output box.",
|
||||||
@ -1092,12 +1092,12 @@
|
|||||||
"title": "Invert Regular Expression Matches with JavaScript",
|
"title": "Invert Regular Expression Matches with JavaScript",
|
||||||
"difficulty":"9.987",
|
"difficulty":"9.987",
|
||||||
"description":[
|
"description":[
|
||||||
"Use <code>/\\S/gi</code> to match everything that isn't a space in the string.",
|
"Use <code>/\\S/g</code> to match everything that isn't a space in the string.",
|
||||||
"You can invert any match by using the uppercase version of the selector <code>\\s</code> versus <code>\\S</code> for example."
|
"You can invert any match by using the uppercase version of the selector <code>\\s</code> versus <code>\\S</code> for example."
|
||||||
],
|
],
|
||||||
"tests":[
|
"tests":[
|
||||||
"assert(test === 49, 'message: Your RegEx should have found forty nine non-space characters in the <code>testString</code>.');",
|
"assert(test === 49, 'message: Your RegEx should have found forty nine non-space characters in the <code>testString</code>.');",
|
||||||
"assert(editor.getValue().match(/\\/\\\\S\\/gi/gi), 'message: You should be using the following expression <code>/\\\\S/gi</code> to find non-space characters in the <code>testString</code>.');"
|
"assert(editor.getValue().match(/\\/\\\\S\\/g/g), 'message: You should be using the following expression <code>/\\S/g</code> to find non-space characters in the <code>testString</code>.');"
|
||||||
],
|
],
|
||||||
"challengeSeed":[
|
"challengeSeed":[
|
||||||
"var test = (function(){",
|
"var test = (function(){",
|
||||||
@ -1105,7 +1105,7 @@
|
|||||||
"",
|
"",
|
||||||
" // Only change code below this line.",
|
" // Only change code below this line.",
|
||||||
"",
|
"",
|
||||||
" var expression = /./gi;",
|
" var expression = /./g;",
|
||||||
"",
|
"",
|
||||||
" // Only change code above this line.",
|
" // Only change code above this line.",
|
||||||
" // We use this function to show you the value of your variable in your output box.",
|
" // We use this function to show you the value of your variable in your output box.",
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"Now let's go back to our Cat Photo App. This time, we'll style it using the popular Bootstrap responsive CSS framework.",
|
"Now let's go back to our Cat Photo App. This time, we'll style it using the popular Bootstrap responsive CSS framework.",
|
||||||
"Bootstrap will figure out how wide your screen is and respond by resizing your HTML elements - hence the name <code>Responsive Design</code>.",
|
"Bootstrap will figure out how wide your screen is and respond by resizing your HTML elements - hence the name <code>Responsive Design</code>.",
|
||||||
"With responsive design, there is no need to design a mobile version of your website. It will look good on devices with screens of any width.",
|
"With responsive design, there is no need to design a mobile version of your website. It will look good on devices with screens of any width.",
|
||||||
"You can add Bootstrap to any app just by including it with <code><link rel=\"stylesheet\" href=\"//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css\"/></code> at the top of your HTML. But we've gone ahead and automatically added it to your Cat Photo App for you.",
|
"You can add Bootstrap to any app just by including it with <code><link rel=\"stylesheet\" href=\"//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css\"/></code> at the top of your HTML. But we've added it for you to this page behind the scenes.",
|
||||||
"To get started, we should nest all of our HTML in a <code>div</code> element with the class <code>container-fluid</code>."
|
"To get started, we should nest all of our HTML in a <code>div</code> element with the class <code>container-fluid</code>."
|
||||||
],
|
],
|
||||||
"tests": [
|
"tests": [
|
||||||
|
@ -5,13 +5,36 @@
|
|||||||
{
|
{
|
||||||
"id": "561add10cb82ac38a17513be",
|
"id": "561add10cb82ac38a17513be",
|
||||||
"title": "Claim Your Front End Development Certificate",
|
"title": "Claim Your Front End Development Certificate",
|
||||||
"difficulty": 0.00,
|
"challengeSeed": [
|
||||||
"challengeSeed": [],
|
{
|
||||||
|
"properties": ["isHonest", "isFrontEndCert"],
|
||||||
|
"apis": ["/certificate/honest", "/certificate/verify/front-end"],
|
||||||
|
"stepIndex": [1, 2]
|
||||||
|
}
|
||||||
|
],
|
||||||
"description": [
|
"description": [
|
||||||
[
|
[
|
||||||
"http://i.imgur.com/RlEk2IF.jpg",
|
"http://i.imgur.com/luMkKst.jpg",
|
||||||
"a picture of Free Code Camp's 4 benefits: Get connected, Learn JavaScript, Build your Portfolio, Help nonprofits",
|
"An image of our Front End Development Certificate",
|
||||||
"Welcome to Free Code Camp. We're an open source community of busy people who learn to code and help nonprofits.",
|
"This challenge will give you your verified Front End Development Certificate. Before we issue your certificate, we must verify that you have completed all of our basic and intermediate Bonfires, and all our basic and intermediate Ziplines. You must also accept our Academic Honesty Pledge. Click the button below to start this process.",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"http://i.imgur.com/HArFfMN.jpg",
|
||||||
|
"The definition of plagiarism: Plagiarism (noun) - copying someone else’s work and presenting it as your own without crediting them",
|
||||||
|
"By clicking below, you pledge that all of your submitted code A) is code you or your pair personally wrote, or B) comes from open source libraries like jQuery, or C) has been clearly attributed to its original authors. You also give us permission to audit your challenge solutions and revoke your certificate if we discover evidence of plagiarism.",
|
||||||
|
"#"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"http://i.imgur.com/14F2Van.jpg",
|
||||||
|
"An image of the text \"Front End Development Certificate requirements\"",
|
||||||
|
"Let's confirm that you have completed all of our basic and intermediate Bonfires, and all our basic and intermediate Ziplines. Click the button below to verify this.",
|
||||||
|
"#"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"http://i.imgur.com/16SIhHO.jpg",
|
||||||
|
"An image of the word \"Congratulations\"",
|
||||||
|
"Congratulations! We've added your Front End Development Certificate to your certificate to your portfolio page. Unless you choose to hide your solutions, this certificate will remain publicly visible and verifiable.",
|
||||||
""
|
""
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
@ -6,12 +6,36 @@
|
|||||||
"id": "660add10cb82ac38a17513be",
|
"id": "660add10cb82ac38a17513be",
|
||||||
"title": "Claim Your Full Stack Development Certificate",
|
"title": "Claim Your Full Stack Development Certificate",
|
||||||
"difficulty": 0.00,
|
"difficulty": 0.00,
|
||||||
"challengeSeed": [],
|
"challengeSeed": [
|
||||||
|
{
|
||||||
|
"properties": ["isHonest", "isFullStackCert"],
|
||||||
|
"apis": ["/certificate/honest", "/certificate/verify/full-stack"],
|
||||||
|
"stepIndex": [1, 2]
|
||||||
|
}
|
||||||
|
],
|
||||||
"description": [
|
"description": [
|
||||||
[
|
[
|
||||||
"http://i.imgur.com/RlEk2IF.jpg",
|
"http://i.imgur.com/qXublEe.jpg",
|
||||||
"a picture of Free Code Camp's 4 benefits: Get connected, Learn JavaScript, Build your Portfolio, Help nonprofits",
|
"An image of our Full Stack Development Certificate",
|
||||||
"Welcome to Free Code Camp. We're an open source community of busy people who learn to code and help nonprofits.",
|
"This challenge will give you your verified Full Stack Development Certificate. Before we issue your certificate, we must verify that you have completed all of Bonfires, Ziplines and Basejumps. You must also accept our Academic Honesty Pledge. Click the button below to start this process.",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"http://i.imgur.com/HArFfMN.jpg",
|
||||||
|
"The definition of plagiarism: Plagiarism (noun) - copying someone else’s work and presenting it as your own without crediting them",
|
||||||
|
"By clicking below, you pledge that all of your submitted code A) is code you or your pair personally wrote, or B) comes from open source libraries like jQuery, or C) has been clearly attributed to its original authors. You also give us permission to audit your challenge solutions and revoke your certificate if we discover evidence of plagiarism.",
|
||||||
|
"#"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"http://i.imgur.com/2qn7tHp.jpg",
|
||||||
|
"An image of the text \"Full Stack Development Certificate requirements\"",
|
||||||
|
"Let's confirm that you have completed all of our Bonfires, Ziplines and Basejumps. Click the button below to verify this.",
|
||||||
|
"#"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"http://i.imgur.com/16SIhHO.jpg",
|
||||||
|
"An image of the word \"Congratulations\"",
|
||||||
|
"Congratulations! We've added your Full Stack Development Certificate to your certificate to your portfolio page. Unless you choose to hide your solutions, this certificate will remain publicly visible and verifiable.",
|
||||||
""
|
""
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
@ -242,7 +242,7 @@
|
|||||||
[
|
[
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
"Free Code Camp will always be free. If you want to feel more motivated to earn our certificates faster, we encourage you to instead donate each month to a nonprofit.",
|
"Free Code Camp will always be free. If you want to feel more motivated to earn our certificates faster, we encourage you to instead pledge to donate to a nonprofit each day.",
|
||||||
""
|
""
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user