Commit Graph
98 Commits
Author SHA1 Message Date
Kristofer KoishigawaandValeriy 84e28bd0f0 fix(challenges): update required links for d3 challenges (#34477) 2019-02-08 09:37:46 +03:00
Kris KoishigawaandValeriy c824ccb394 fix(flient): Moved the Mathjax config in SidePanel.js from constructor to componentDidMount. 2019-01-20 19:36:01 +03:00
Kristofer Koishigawaandmrugesh mohapatra 62059eeb3b fix(challenges): YAMLException warning (#34544) 2018-12-05 20:52:41 +05:30
Kristofer Koishigawaandmrugesh mohapatra a7a409a96e fix(guide): Lowercased the Tableau and Talend directories in all languages (#24240) 2018-10-20 19:28:21 +05:30
Kristofer Koishigawaandmrugesh mohapatra 4ed86a457e fix(guide): Deleted and or moved the directories/files in client/src/guide and client/src/pages... (#19732) 2018-10-20 16:17:50 +05:30
Kristofer Koishigawaandmrugesh mohapatra 862112ebc7 fix: mathjax rendering (#18468) 2018-10-20 16:14:42 +05:30
Kristofer Koishigawaandmrugesh mohapatra ae76c13f83 fix(guide): Lowercased 3D and Blender directories so Travis CI tests pass (#24167) 2018-10-20 16:12:43 +05:30
Kristofer Koishigawa 01ff1e4115 Update index.md 2018-10-15 21:06:54 +09:00
Kristofer Koishigawa 74086f9f8a Update index.md 2018-10-15 21:00:27 +09:00
Kristofer Koishigawa 22752616e7 Update index.md 2018-10-13 22:51:24 +09:00
Kristofer KoishigawaandMrugesh Mohapatra b19ebd0cdf Moved li element into Login and SignedIn components and added class names for more precise styling. Adjusted the search bar hits so they're centered on the page again. (#290) 2018-09-27 20:06:16 +05:30
Kris KoishigawaandMrugesh Mohapatra 2dc609efca Attempted to make the nav bar closer in style to the old beta site / current main site. Adjusted the font weights, the size and position of the search bar, and the nav bar on the right. Also made the <li> tags for the curriculum and forum buttons clickable and change styles when hovered over, just like on the main freecodecamp.org site.
Partially solves https://github.com/freeCodeCamp/freeCodeCamp/issues/17266
2018-09-27 20:06:07 +05:30
scissorsneedfoodtooandMrugesh Mohapatra b29ae0df28 Removed the base tag from the header of the preview iframe. The href and target attributes were causing links within the iframe to open a new tab and would point to /, which created problems with some challenges where users should link to other page elements like a footer.
Fixed an error found in QA where in-page anchors would work as expected in Chrome, but in FireFox would load another instance of Learn in the iframe. If the user goes back to the challenge, though, the in-page anchors work as expected. Readded <base> and had it point to href='' to get in-page anchors working in both Chrome and FF.
2018-09-27 20:06:04 +05:30
Kris KoishigawaandMrugesh Mohapatra b9d38ff901 Did some retooling and was able to disable MathJax for the entire page from a top-level div by adding the class name tex2jax_ignore. Brought the dasherize function into Show.js and used it to pass a new prop section down through Side-Panel.js into Challenge-Description.js to add a section class name to each of the challenge-instructions divs. Then was able to use the delimiters that caused problems before, but only for the Rosetta Code challenges. 2018-09-27 20:06:04 +05:30
Kris KoishigawaandMrugesh Mohapatra 670fe4194e Reimplemented MathJax with custom $inlineMath$ delimeters to prevent it from rendering SASS and other challenge descriptions as math functions. 2018-09-27 20:06:04 +05:30
scissorsneedfoodtooandMrugesh Mohapatra 2ec8cde148 Renabled MathJax and testing default 3324 delimeters to see if other challenge descriptions break. 2018-09-27 20:06:04 +05:30
Kristofer KoishigawaandMrugesh Mohapatra 02b009fd42 Add MathJax (#150)
Added a script tag to the header of the page in src/head/index.js via src/head/mathjax.js. Modified Side-Panel.js so that mathematical functions are rendered properly in the Rosetta Code problems. Had to use the CDN because I couldn't get the NPM package working, and a local package like the one used in Arcade Mode would be ignored if put into the public folder. We could probably use that local package if there's a better place to store it.

Since MathJax is set up currently to interpret anything between $...$ or $$...$$ as a math function, we will need to check some of the other problems that use those symbols on the same line.
2018-09-27 20:05:54 +05:30
Kristofer KoishigawaandMrugesh Mohapatra b0b51c656e Fix/monaco resizing (#82)
* Reworked the way that the editor and output are rendered when the browser window / panes are resized horizontally. Moved the ReflexContainer elements into the editors variable to get vertical resizing working. Also, removed the margin-bottom property from the .editor class in classic.css and set overflow to hidden in .react-monaco-editor-container. By doing this it prevents the browser scrollbars from appearing and removes the white space at the bottom of the editor / output panes when scrolling all the way down past the code.
2018-09-27 20:05:45 +05:30
Kristofer KoishigawaandMrugesh Mohapatra b014b23404 fix(schema): change schema and unpack script 2018-09-20 19:01:49 +05:30
scissorsneedfoodtooandmrugesh mohapatra 97360b0f29 docs(contributing): add Contributing Guide
Took the challenge guide from the main repo and reworked it for the Curriculum repo. Moved the
CONTRIBUTING.md file to the root directory. Added an image directory and sample image to more
clearly show how to open a PR and point it to the correct branch, like in the guide in the
main repo.

ISSUES CLOSED: #61
2018-06-29 23:47:58 +05:30
Kristofer Koishigawaandmrugesh mohapatra 4b1c5ebc7a fix(challenges): change test for template literals challenge (#37)
The original test was too rigid, and many users were forced to use one solution, usually map, to
complete the challenge. The test is changed here to allow for multiple solutions to the problem,
including the use of either single or double quotes when naming a class.

BREAKING CHANGE:
None
2018-06-29 23:47:58 +05:30
Kristofer Koishigawaandmrugesh mohapatra 20fac4e2c3 revert: "test(challenges): Corrected expected average value" (#17568) 2018-06-14 03:30:04 +05:30
Kristofer Koishigawaandmrugesh mohapatra 810a41c4d6 revert: "test(challenges): Corrected expected average value" (#17568) 2018-06-13 20:26:16 +05:30
Kristofer Koishigawaandmrugesh mohapatra d68c568490 fix(app): Change condition for points pluralization function (#17247) 2018-05-27 19:00:23 +05:30
Kristofer Koishigawaandmrugesh mohapatra d9d1e9c8b5 fix(common): Change Width of Update Settings Button (#17246)
Added `className='btn-link-social'` to the Update my settings button
element in Profile.jsx so that it's the same width as the other ones on
the settings page.

Closes #17230
2018-05-27 18:58:56 +05:30
Kristofer Koishigawaandmrugesh mohapatra bcee3174aa style(challenges): Format Descriptions for Project Euler 1-16 (#17172)
Here are a list of style changes made for problems 1-16:

* 2: Centered text
* 6: Centered text and `<sup>` tags
* 8: Centered text
* 9: Centered text, `<var>`, and `<sup>` tags
* 11: Centered text and spacing between number grid and next paragraph
* 12: Tab spacing (padding-left: 4em)
* 14: Centered text, `<var>` tags, and tab spacing (padding-left: 4em)
* 16: `<sup>` tags

BREAKING CHANGE: None
2018-05-23 12:58:03 +05:30
Kristofer Koishigawaandmrugesh mohapatra df1a97249d style(challenges): Format Descriptions for Project Euler 1-16 (#17172)
Here are a list of style changes made for problems 1-16:

* 2: Centered text
* 6: Centered text and `<sup>` tags
* 8: Centered text
* 9: Centered text, `<var>`, and `<sup>` tags
* 11: Centered text and spacing between number grid and next paragraph
* 12: Tab spacing (padding-left: 4em)
* 14: Centered text, `<var>` tags, and tab spacing (padding-left: 4em)
* 16: `<sup>` tags

BREAKING CHANGE: None
2018-05-23 12:58:03 +05:30
Kristofer Koishigawaandmrugesh mohapatra b996d86cc3 style(challenges): Format Descriptions for Project Euler 17-26 (#17175)
Here's a list of style changes made for problems 17-26:

*17: Bold tags
*18: Bold tags
*19: ul and li tags for leap year information
*20: var tags and line break
*21: var tags
*22: added code tag
*23: var tags
*24: centered text and var tag
*25: sup tags, tab-like spacing, and CSS grid for spacing
*26: sub, sup, and var tags, and CSS grid for spacing

BREAKING CHANGE: None
2018-05-23 12:56:51 +05:30
Kristofer Koishigawaandmrugesh mohapatra e4a8a0ab96 style(challenges): Format Descriptions for Project Euler 17-26 (#17175)
Here's a list of style changes made for problems 17-26:

*17: Bold tags
*18: Bold tags
*19: ul and li tags for leap year information
*20: var tags and line break
*21: var tags
*22: added code tag
*23: var tags
*24: centered text and var tag
*25: sup tags, tab-like spacing, and CSS grid for spacing
*26: sub, sup, and var tags, and CSS grid for spacing

BREAKING CHANGE: None
2018-05-23 12:56:51 +05:30
Kristofer KoishigawaandStuart Taylor 28eacebaf9 fix(challenges): Add Tests and Solution for Project Euler 50 (#17152)
Added an additional test and a solution adapted from the one
@elliotjz contributed to the fCC Arcade Mode.

BREAKING CHANGE: None
2018-05-14 15:12:04 +01:00
Kristofer KoishigawaandStuart Taylor ffde63c39b fix(challenges): Add Tests and Solution for Project Euler 50 (#17152)
Added an additional test and a solution adapted from the one
@elliotjz contributed to the fCC Arcade Mode.

BREAKING CHANGE: None
2018-05-14 15:12:04 +01:00
Kristofer Koishigawaandmstellaluna 58e82ea802 fix(challenges): Edit Description, Add Tests and Solution for Project Euler 47 (#17142)
Edited the description to more closely match the spacing and line breaks
from projecteuler.net. Added more tests, updated the challenge seed,
and added a solution from user @elliotjz contributed to the fCC
Arcade Mode.

BREAKING CHANGE: None
2018-05-11 22:15:55 -04:00
Kristofer Koishigawaandmstellaluna 058ec5d247 fix(challenges): Edit Description, Add Tests and Solution for Project Euler 47 (#17142)
Edited the description to more closely match the spacing and line breaks
from projecteuler.net. Added more tests, updated the challenge seed,
and added a solution from user @elliotjz contributed to the fCC
Arcade Mode.

BREAKING CHANGE: None
2018-05-11 22:15:55 -04:00
Kristofer Koishigawaandmstellaluna b7be885c73 fix(challenges): Edit challengeSeed and Add Solution for Project Euler 49 (#17146)
Changed the name of the function in the challengeSeed from euler49 to the
challenge name. Also added a solution that @elliotjz contributed to the
fCC Arcade Mode.

BREAKING CHANGE: None
2018-05-11 17:23:28 -04:00
Kristofer Koishigawaandmstellaluna e078d72d04 fix(challenges): Edit challengeSeed and Add Solution for Project Euler 49 (#17146)
Changed the name of the function in the challengeSeed from euler49 to the
challenge name. Also added a solution that @elliotjz contributed to the
fCC Arcade Mode.

BREAKING CHANGE: None
2018-05-11 17:23:28 -04:00
Kristofer Koishigawaandmstellaluna 080c27e7cb fix(challenges): Edit Description, Tests, and Add Solution for Project Euler 48 (#17145)
Added `<sup>` tags to the description to make it more like the one on
projecteuler.net. Also added additional tests and a solution.

Here's a solution for QA:

```
```

BREAKING CHANGE: None
2018-05-11 17:00:46 -04:00
Kristofer Koishigawaandmstellaluna aac8f58ec9 fix(challenges): Edit Description, Tests, and Add Solution for Project Euler 48 (#17145)
Added `<sup>` tags to the description to make it more like the one on
projecteuler.net. Also added additional tests and a solution.

Here's a solution for QA:

```
```

BREAKING CHANGE: None
2018-05-11 17:00:46 -04:00
Kristofer Koishigawaandmstellaluna 7235ca1def fix(challenges): Edit Description and Add Solution for Project Euler 46 (#17140)
Updated the problem description with `<sup>` tags. Also added a solution
that user @elliotjz contributed to the fCC Arcade Mode.

BREAKING CHANGE: None
2018-05-08 15:53:01 -04:00
Kristofer Koishigawaandmstellaluna ca1e466492 fix(challenges): Edit Description and Add Solution for Project Euler 46 (#17140)
Updated the problem description with `<sup>` tags. Also added a solution
that user @elliotjz contributed to the fCC Arcade Mode.

BREAKING CHANGE: None
2018-05-08 15:53:01 -04:00
Kristofer Koishigawaandmstellaluna 6586ecd5b6 fix(challenges): Edit Description and Add Solution for Project Euler 45 (#17126)
Updated the problem description with an inline CSS grid, <sup>, and
<var> tags. Also added a solution that user @elliotjz contributed
to the fCC Arcade Mode.

BREAKING CHANGE: None
2018-05-08 15:43:20 -04:00
Kristofer Koishigawaandmstellaluna 54dbf89fd7 fix(challenges): Edit Description and Add Solution for Project Euler 45 (#17126)
Updated the problem description with an inline CSS grid, <sup>, and
<var> tags. Also added a solution that user @elliotjz contributed
to the fCC Arcade Mode.

BREAKING CHANGE: None
2018-05-08 15:43:20 -04:00
Kristofer Koishigawaandmrugesh mohapatra cca9b8b3a8 fix(challenges): Edit Description and Add Solution for Project Euler 44 (#17127)
Updated the problem description with <sup> and <var> tags, and centered
some text. Also, added a solution that user @elliotjz contributed to the
fCC Arcade Mode.

BREAKING CHANGE: None
2018-05-06 21:48:17 +05:30
Kristofer Koishigawaandmrugesh mohapatra 1325cc0513 fix(challenges): Edit Description and Add Solution for Project Euler 44 (#17127)
Updated the problem description with <sup> and <var> tags, and centered
some text. Also, added a solution that user @elliotjz contributed to the
fCC Arcade Mode.

BREAKING CHANGE: None
2018-05-06 21:48:17 +05:30
Kristofer Koishigawaandmrugesh mohapatra 1b99e6d297 fix(challenges): Edit Description, Add Tests and Solution for Project Euler 40 (#17087)
Updated the problem description to more closely match the one on the Project Euler page. Also added more tests along with a solution that user @elliotjz contributed to the fCC Arcade Mode.

BREAKING CHANGE: None
2018-04-28 14:31:51 +05:30
Kristofer Koishigawaandmrugesh mohapatra 3629d35495 fix(challenges): Edit Description, Add Tests and Solution for Project Euler 40 (#17087)
Updated the problem description to more closely match the one on the Project Euler page. Also added more tests along with a solution that user @elliotjz contributed to the fCC Arcade Mode.

BREAKING CHANGE: None
2018-04-28 14:31:51 +05:30
Kristofer Koishigawaandmrugesh mohapatra a88cdee9c3 fix(challenges): Edit Description and Add Solution for Project Euler 38 (#17086)
Updated the problem description with `<val>` tags and improved the
formatting. Also added a solution that user @elliotjz contributed to
the fCC Arcade Mode.

BREAKING CHANGE: None
2018-04-28 14:31:23 +05:30
Kristofer Koishigawaandmrugesh mohapatra a2eaa120bb fix(challenges): Edit Description and Add Solution for Project Euler 38 (#17086)
Updated the problem description with `<val>` tags and improved the
formatting. Also added a solution that user @elliotjz contributed to
the fCC Arcade Mode.

BREAKING CHANGE: None
2018-04-28 14:31:23 +05:30
Kristofer Koishigawaandmrugesh mohapatra 831c6a6e15 fix(challenges): Edit Description and Add Solution for Project Euler 33 (#17085)
Updated the problem description with <sup> and <sub> tags. Also added a
solution that user @elliotjz contributed to the fCC Arcade Mode.

BREAKING CHANGE: None
2018-04-28 14:30:38 +05:30
Kristofer Koishigawaandmrugesh mohapatra fd2a004d2e fix(challenges): Edit Description and Add Solution for Project Euler 33 (#17085)
Updated the problem description with <sup> and <sub> tags. Also added a
solution that user @elliotjz contributed to the fCC Arcade Mode.

BREAKING CHANGE: None
2018-04-28 14:30:38 +05:30
Kristofer Koishigawaandmrugesh mohapatra 048734def0 fix(challenges): Port Solution for Project Euler 32 from Arcade Mode (#17084)
Ported the solution for Project Euler 32 user @elliotjz contributed to
the fCC Arcade Mode.

BREAKING CHANGE: None
2018-04-28 14:30:11 +05:30
Kristofer Koishigawaandmrugesh mohapatra 67b1c32184 fix(challenges): Port Solution for Project Euler 32 from Arcade Mode (#17084)
Ported the solution for Project Euler 32 user @elliotjz contributed to
the fCC Arcade Mode.

BREAKING CHANGE: None
2018-04-28 14:30:11 +05:30
Kristofer Koishigawaandmrugesh mohapatra 5fa947c852 fix(challenges): Edit Description, Add Tests and Solution for Project Euler 41 (#17088)
Updated the problem description with <i> tags. Removed a couple of tests
because they seemed too restrictive for the different approaches users
might take when solving this problem. Also added a solution
that user @elliotjz contributed to the fCC Arcade Mode.

BREAKING CHANGE: None
2018-04-28 13:49:06 +05:30
Kristofer Koishigawaandmrugesh mohapatra fa1cc4a436 fix(challenges): Edit Description, Add Tests and Solution for Project Euler 41 (#17088)
Updated the problem description with <i> tags. Removed a couple of tests
because they seemed too restrictive for the different approaches users
might take when solving this problem. Also added a solution
that user @elliotjz contributed to the fCC Arcade Mode.

BREAKING CHANGE: None
2018-04-28 13:49:06 +05:30
Kristofer KoishigawaandStuart Taylor 5e53ebded9 fix(seed): Simplify Unique Titles Test (#17056)
Originally the test would check for the index of a title in an array of
unique challenge titles. However, the index of the title within the
array isn't important for this test, so I simplified the code using
@Bouncey's suggestion in PR #17035.

Also changed grammar for the error that's thrown when a challenge
title isn't a valid string.

BREAKING CHANGE: None
2018-04-13 15:15:40 +01:00
Kristofer KoishigawaandStuart Taylor d6f217c1b9 fix(seed): Simplify Unique Titles Test (#17056)
Originally the test would check for the index of a title in an array of
unique challenge titles. However, the index of the title within the
array isn't important for this test, so I simplified the code using
@Bouncey's suggestion in PR #17035.

Also changed grammar for the error that's thrown when a challenge
title isn't a valid string.

BREAKING CHANGE: None
2018-04-13 15:15:40 +01:00
Kristofer KoishigawaandStuart Taylor 5fa098ea0d test(seed): Add Test for Unique Challenge Titles (#17035)
Due to the recent problem with two challenges having the same title, I
added a check for unique titles to the test suite so that hopefully
won't happen again.

Addresses a comment in issue #16906, which was recently closed.

BREAKING CHANGE: None

Closes #16906
2018-04-10 21:23:36 +01:00
Kristofer KoishigawaandStuart Taylor be693638de test(seed): Add Test for Unique Challenge Titles (#17035)
Due to the recent problem with two challenges having the same title, I
added a check for unique titles to the test suite so that hopefully
won't happen again.

Addresses a comment in issue #16906, which was recently closed.

BREAKING CHANGE: None

Closes #16906
2018-04-10 21:23:36 +01:00
Kristofer KoishigawaandStuart Taylor e6e6df3c6d feat(app): Add Motivational Quote Easter Egg (#16932)
Added a feature where a motivational quote is randomly selected from a
static list and displayed whenever the user closes all the panes on the
page. Also added a quotes.js file with an array of quote objects and a
function that returns a random quote object when called.

Edit: Forgot to add double quotes to the quote blocks after moving from
test strings to random quote objects from the quotes.js file. Added
them here as HTML encoded left and right double quotes.

Made changes @Bouncey requested.

Made further changes @Bouncey requested. Also added a componentDidUpdate
method to both ensure the quote is only changed when panes open and close,
and also to make sure the new quote is not the same as the one that
was last displayed.

Removed the fCC logo as it was redundant and clashed with the night mode.
Simplified the layout so the quote block is in the middle of the page and
changed the width so that it's more readable. Also added styling to change
the quote text color in night mode.

BREAKING CHANGE: None

Closes #16382
2018-04-10 16:13:46 +01:00
Kristofer Koishigawaandmrugesh mohapatra fcf4eb4d97 fix(challenges): Change Symmetric Differences Title (#16962) 2018-03-27 01:50:25 +05:30
Kristofer Koishigawaandmrugesh mohapatra ab3c9719dc fix(challenges): Change Symmetric Differences Title (#16962) 2018-03-27 01:50:25 +05:30
Kristofer KoishigawaandStuart Taylor 8d599d3e8a fix(seed): Format description, add tests and solution for Project Euler 18 (#16693)
Changed the description to more closely match the one on the Project
Euler page. Also added another test and solution.

Edit: Moved the numTriangle array to the head array to prevent lag.

Edit 2: Forgot to remove numTriangle from the solutions array. Should pass the test now.

BREAKING CHANGE: None
2018-03-06 10:52:22 +00:00
Kristofer KoishigawaandStuart Taylor 5f1ec53230 fix(seed): Format description, add tests and solution for Project Euler 18 (#16693)
Changed the description to more closely match the one on the Project
Euler page. Also added another test and solution.

Edit: Moved the numTriangle array to the head array to prevent lag.

Edit 2: Forgot to remove numTriangle from the solutions array. Should pass the test now.

BREAKING CHANGE: None
2018-03-06 10:52:22 +00:00
Kristofer KoishigawaandStuart Taylor 1ae4bf363c fix(common): Add Default Text to Heatmap Legend (#16802)
With the recent Reactifying of the profile page, I noticed that some of
the calendar heatmap legend text was missing. This fix changes the text
from the current ['less', '', '', 'more'] back to ['0 items', '1 item',
'2 items', '3 or more items'].

BREAKING CHANGE: None
2018-03-02 12:18:54 +00:00
Kristofer KoishigawaandStuart Taylor 6b6c9c9c54 perf(challenges): Add Head and Remove Multiple Function Calls in Project Euler 22 (#16741)
Added a head section and moved the large names array to it to prevent
the page from lagging. Also removed multiple calls to the challenge
funtion in the challenge seed.

BREAKING CHANGE: None
2018-02-26 12:58:53 +00:00
Kristofer KoishigawaandStuart Taylor 6d5f468067 perf(challenges): Add Head and Remove Multiple Function Calls in Project Euler 22 (#16741)
Added a head section and moved the large names array to it to prevent
the page from lagging. Also removed multiple calls to the challenge
funtion in the challenge seed.

BREAKING CHANGE: None
2018-02-26 12:58:53 +00:00
Kristofer KoishigawaandStuart Taylor ee086ae693 perf(challenges): Remove Multiple Calls to Challenge Function in Project Euler Problems (#16733)
Removed multiple calls to the challenge function in Project Euler
problems 11 and 14. Also adjusted the spacing of the tests array for
problem 23 to make it consistent with the rest of the file.

BREAKING CHANGE: None
2018-02-26 12:40:09 +00:00
Kristofer KoishigawaandStuart Taylor 11df3f3b0d perf(challenges): Remove Multiple Calls to Challenge Function in Project Euler Problems (#16733)
Removed multiple calls to the challenge function in Project Euler
problems 11 and 14. Also adjusted the spacing of the tests array for
problem 23 to make it consistent with the rest of the file.

BREAKING CHANGE: None
2018-02-26 12:40:09 +00:00
Kristofer KoishigawaandStuart Taylor 0136b82c0e fix(seed): Add tests and solution for Project Euler 19 (#16694)
Added additional tests and a working solution for this problem.

BREAKING CHANGE: None
2018-02-15 09:11:54 +00:00
Kristofer KoishigawaandStuart Taylor 2eafac5989 fix(seed): Add tests and solution for Project Euler 19 (#16694)
Added additional tests and a working solution for this problem.

BREAKING CHANGE: None
2018-02-15 09:11:54 +00:00
Kristofer KoishigawaandStuart Taylor 5d14e4bdd5 fix(seed): Add tests, solution, and edit description for Project Euler 16 (#16641)
Edited the description so the exponents are displayed properly, and
added more tests and a solution.

Amend: Edited the seed so that the challenge function in the seed is called only once.

BREAKING CHANGE: None
2018-02-15 09:06:41 +00:00
Kristofer KoishigawaandStuart Taylor 9ae25664b5 fix(seed): Add tests, solution, and edit description for Project Euler 16 (#16641)
Edited the description so the exponents are displayed properly, and
added more tests and a solution.

Amend: Edited the seed so that the challenge function in the seed is called only once.

BREAKING CHANGE: None
2018-02-15 09:06:41 +00:00
Kristofer KoishigawaandStuart Taylor 4a3d1c9dce fix(challenges): Add tests and solution for Project Euler problem 17 (#16685)
Added a couple of additional tests and a working solution for this
problem.

BREAKING CHANGE: None
2018-02-15 09:04:01 +00:00
Kristofer KoishigawaandStuart Taylor 38cee8bce5 fix(challenges): Add tests and solution for Project Euler problem 17 (#16685)
Added a couple of additional tests and a working solution for this
problem.

BREAKING CHANGE: None
2018-02-15 09:04:01 +00:00
Kristofer KoishigawaandStuart Taylor 8cdc783378 fix(seed): Add tests, solution, and image for Project Euler problem 15 (#16626)
Added more tests, a solution, and an image to make the description more
clear. The image is from Project Euler but is rehosted on imgur.

Amend: Edited the seed so that the challenge function in the seed is called only once.

BREAKING CHANGE: None
2018-02-15 09:02:17 +00:00
Kristofer KoishigawaandStuart Taylor 748b257234 fix(seed): Add tests, solution, and image for Project Euler problem 15 (#16626)
Added more tests, a solution, and an image to make the description more
clear. The image is from Project Euler but is rehosted on imgur.

Amend: Edited the seed so that the challenge function in the seed is called only once.

BREAKING CHANGE: None
2018-02-15 09:02:17 +00:00
Kristofer KoishigawaandStuart Taylor a3c546e1a3 fix(seed): Add tests for Project Euler problem 13 (#16617)
Added a head property to the challenge object and moved the large fiftyDigitNums array to it, preventing the browser from having to re-render it with every keystroke and causing lag. Also fixed a problem where the testNums and fiftyDigitNums arrays were not declared with const properly in my original PR.

BREAKING CHANGE: None
2018-02-14 10:55:21 +00:00
Kristofer KoishigawaandStuart Taylor 47ca691a14 fix(seed): Add tests for Project Euler problem 13 (#16617)
Added a head property to the challenge object and moved the large fiftyDigitNums array to it, preventing the browser from having to re-render it with every keystroke and causing lag. Also fixed a problem where the testNums and fiftyDigitNums arrays were not declared with const properly in my original PR.

BREAKING CHANGE: None
2018-02-14 10:55:21 +00:00
Kristofer KoishigawaandStuart Taylor 084ad620ec fix(seed): Add tests and solution for Project Euler 14 (#16621)
Added tests and a working solution for problem.
2018-02-10 21:13:22 +00:00
Kristofer KoishigawaandStuart Taylor 43eaff2957 fix(seed): Add tests and solution for Project Euler 14 (#16621)
Added tests and a working solution for problem.
2018-02-10 21:13:22 +00:00
Kristofer Koishigawaandmrugesh mohapatra 3ef9315310 fix(challenges): Add tests for Project Euler problem 12 (#16545) 2018-01-28 13:22:50 +05:30
Kristofer Koishigawaandmrugesh mohapatra 20b46cc6c4 fix(challenges): Add tests for Project Euler problem 12 (#16545) 2018-01-28 13:22:50 +05:30
Kristofer Koishigawaandmrugesh mohapatra c2e057aadc fix(challenges): Add Project Euler problem 11 solution and tests (#16480)
Added tests and a working solution for Project Euler problem 11. Also added some styling to the problem's description to highlight four numbers in red to be more in-line with the description on the projecteuler.net.
2018-01-18 23:03:17 +05:30
Kristofer Koishigawaandmrugesh mohapatra b1fcdbf9d4 fix(challenges): Add Project Euler problem 11 solution and tests (#16480)
Added tests and a working solution for Project Euler problem 11. Also added some styling to the problem's description to highlight four numbers in red to be more in-line with the description on the projecteuler.net.
2018-01-18 23:03:17 +05:30
Kristofer Koishigawaandmrugesh mohapatra 8c42b475a1 fix(challenges): Add tests and solution for Euler Problem 10 (#16431)
Added tests and working solution for Euler Problem 10.
2018-01-15 11:37:56 +05:30
Kristofer Koishigawaandmrugesh mohapatra cdd9c54192 fix(challenges): Add tests and solution for Euler Problem 10 (#16431)
Added tests and working solution for Euler Problem 10.
2018-01-15 11:37:56 +05:30
Kristofer Koishigawaandmrugesh mohapatra becef503fb fix(challenges): Add tests and solution for Euler problem 5 (#16421) 2018-01-15 11:36:42 +05:30
Kristofer Koishigawaandmrugesh mohapatra c79068e058 fix(challenges): Add tests and solution for Euler problem 5 (#16421) 2018-01-15 11:36:42 +05:30
scissorsneedfoodtoo 9a4623eef3 feat(challenges): Add Project Euler problem 22
Noticed that problem 22 was missing from the seed file and decided to
add it along with some additional tests. However, I didn't include a
solution because I would have had to repeat the entire names array in
the solution string.

BREAKING CHANGE: None
2018-01-07 19:46:33 +09:00
scissorsneedfoodtoo 19af4f6bc6 feat(challenges): Add Project Euler problem 22
Noticed that problem 22 was missing from the seed file and decided to
add it along with some additional tests. However, I didn't include a
solution because I would have had to repeat the entire names array in
the solution string.

BREAKING CHANGE: None
2018-01-07 19:46:33 +09:00
Kristofer KoishigawaandQuincy Larson ac37176d1b style(challenges): Style changes and added solutions (#16372)
Renamed some of the functions in the challengeSeeds/tests, and added a
couple of solutions.

BREAKING CHANGE: None
2018-01-01 17:33:18 -06:00
Kristofer KoishigawaandQuincy Larson 40d34c39dc style(challenges): Style changes and added solutions (#16372)
Renamed some of the functions in the challengeSeeds/tests, and added a
couple of solutions.

BREAKING CHANGE: None
2018-01-01 17:33:18 -06:00
Kristofer Koishigawaandmrugesh mohapatra b911a5d724 docs: Add Linux MailHog install commands (#16366) 2017-12-29 17:07:41 +05:30
Kristofer KoishigawaandQuincy Larson 3583633a39 fix(seed/challenges): Change cash register algorithm (#16244)
Edited the description and tests so that freeCodeCamp users learn to
write functions that return a similar data structure type each time.

BREAKING CHANGE: None.

Closes #16083
2017-12-22 22:15:16 -06:00
Kristofer KoishigawaandQuincy Larson 2109845ac1 fix(seed/challenges): Change cash register algorithm (#16244)
Edited the description and tests so that freeCodeCamp users learn to
write functions that return a similar data structure type each time.

BREAKING CHANGE: None.

Closes #16083
2017-12-22 22:15:16 -06:00
Kristofer KoishigawaandEthan Arrowood 3df65c30cd fix(common): Fix for loopProtect undefined error (#16263)
Edited the file so that the loopProtect code, which is in the head of
the iframe on www.freecodecamp.org, is in the same script tag as the
base challenge content that get's rendered to the page. While the
loopProtect code is not rendered to the page like the rest of the
challenge code, it's within the same scope and seems to function
normally.

BREAKING CHANGE: None that I know of, but will keep checking.

Closes #16260
2017-12-22 14:51:21 -05:00
scissorsneedfoodtoo 744476404c fix(challenges): Change regular expressions match characters that o
Originally the challenge's example code was a little unclear about what
the * character does. Also, the challenge could be solved without using
the * character.

BREAKING CHANGE: None

Closes #16119
2017-12-03 00:18:30 +09:00
scissorsneedfoodtoo 72fe47c609 fix(challenges): Change regular expressions match characters that o
Originally the challenge's example code was a little unclear about what
the * character does. Also, the challenge could be solved without using
the * character.

BREAKING CHANGE: None

Closes #16119
2017-12-03 00:18:30 +09:00
scissorsneedfoodtoo 924e7f19d6 fix(server/views/account): Change default text of heatmap legend
The default text of the legend is confusing given the low range of
values used. Cal-heatmap expects higher legend values, such as [10, 20,
30, 40], rather than [1, 2, 3]. This change will hopefully make the
mouseover text for the legend a little less confusing.

BREAKING CHANGE: None

Closes #16124
2017-11-29 20:40:04 +09:00