Commit Graph
100 Commits
Author SHA1 Message Date
Kris Koishigawaandmrugesh 1028310819 Changed bold to strong or code tags where possible 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 3ce97bbd81 Fixing other problems from comments 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 0544554b00 Fix curly quotes 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh a6ed1e51b7 Change links from http to https 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 32b24a3a20 Fixing merge conflicts 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh ae49dfd376 fix(challenges): Fix merge conflicts convert seconds and towers of hanoi 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 14bcbac669 fix(challenges): Added blockquote to department numbers and fixed fractions in fractran 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh aeb0dccb15 fix(challenges): Added left margin to blockquote footer in Babbage Problem 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 12d84e83a8 fix(challenges): Y problem 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 723ee2cfa5 W problem 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh a0e68a39a7 fix(challenges): V problems 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 74f70c19d8 fix(challenges): T problems 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 539e93d01b fix(challenges): The rest of the S problems 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 442c9c291d fix(challenges): More S problems 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh c752d57611 Added sorting algorithms 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 2053e99cd5 S problems 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh df88daa482 fix(challenges): J problems 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 263d2c496b fix(challenges): I problems 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh a3fd1aa284 fix(challenges): H problems 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 537d1ed642 fix(challenges): G problems 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh abbfee1189 fix(challenges): Formatted F challenges 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 1a56a5b0ae fix(challenges): Minor changes to D challenges. Add E challenges 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 461155f7ef fix(challenges): Replaced image with svg in Cut a Rectangle 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh da4999cb46 fix(challenges): Moved challenge instructions to instructions section 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 3a7ac2c0c0 fix(challenges): Forgot to remove the space between the function name and first parenthesis 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh bc1d2be822 fix(challenges): Added all D problems except Department Numbers 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh d024b96a92 fix(challenges): Went back and fixed a missing A problem. Fixed C problems. 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh f9f4048258 fix(challenges): Revert 24 game due to another PR being submitted 2019-06-26 17:34:03 +08:00
Kris Koishigawaandmrugesh 201c383148 fix(challenges): Fixed formatting for numbered and challenges starting with A 2019-06-26 17:34:03 +08:00
Kristofer Koishigawaandmrugesh 8f633299ef fix(challenges): Replace camper leaderboard project (#35763) 2019-06-09 05:23:28 +05:30
Kristofer KoishigawaandThe Coding Aviator 095188215f fix(challenges): Regex Asterisk Challenge (#34800)
* fix(challenges): Fixes description and adds tests to close #17872.

* fix(challenges): Removed unnecessary string arguments from testString

* fix: improved challenge instr and tests
2019-04-01 19:19:13 +05:30
Kristofer Koishigawaandmrugesh mohapatra 3e51ced41b fix(challenges): Remove duplicate Rosetta Code sorting problems (#35547)
<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->

- [x] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md).
- [x] My pull request has a descriptive title (not a vague title like `Update index.md`)
- [x] My pull request targets the `master` branch of freeCodeCamp.
- [x] None of my changes are plagiarized from another source without proper attribution.
- [x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
- [x] My changes do not use shortened URLs or affiliate links.

<!--If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.-->

This PR is to remove duplicate Rosetta Code sorting problems that exist in other parts of the curriculum. Here are the problems that are being removed: 
* Sorting algorithms/Bubble sort
* Sorting algorithms/Counting sort
* Sorting algorithms/Heapsort
* Sorting algorithms/Insertion sort
* Sorting algorithms/Merge sort
* Sorting algorithms/Quicksort
* Sorting algorithms/Radix sort
* Sorting algorithms/Selection sort

This PR only removes the challenges in English. I could remove the other languages in this PR, or in another PR.

Closes #34776
2019-03-21 13:05:02 +05:30
Kristofer Koishigawaandmrugesh mohapatra ccd45f77ff fix(client): collapsing reflex containers. (#35247) 2019-02-18 21:04:04 +05:30
Kris KoishigawaandStuart Taylor b57d3dddcf fix(Learn): Gives the search bar a defined height to prevent it from overflowing on Retina devices. 2019-02-14 11:01:35 +00:00
Kristofer Koishigawaandmrugesh mohapatra c779246645 docs(local): add npm clean command (#35072) 2019-02-11 16:28:05 +05:30
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