These are chat archives for camperbot/testing

30th
Aug 2015
Saad Mehmood
@saadmehmood233
Aug 30 2015 10:48
explain brownie points
CamperBot
@camperbot
Aug 30 2015 10:48

:point_right: brownie points [wiki]

The number beside your picture on Free Code Camp tells you how many Brownie Points you have.

A user profile picture next to a with Brownie Points score

There are three ways you can get Brownie Points:

  1. Complete challenges - you get one point per challenge you complete
  2. Post relevant links on Camper News - you get 1 point for posting a link, and another point for each upvote your link gets
  3. Help other campers in chat - each time you help another camper and they thank you (by typing "thanks @yourname"), you will get a point

Brownie Points help you look like the kind of person who codes a lot, shares relevant links, and helps people.

They also add to your Streak.
:pencil: read more about brownie points on the FCC Wiki

Abhisek Pattnaik
@abhisekp
Aug 30 2015 14:30
explain es6
CamperBot
@camperbot
Aug 30 2015 14:30

:point_right: write and run es6 code in browser [wiki]

Include the following code in the page.

<!-- Write these first. Here `bootstrap.js` doesn't mean Twitter Bootstrap. -->
<script src="https://google.github.io/traceur-compiler/bin/traceur.js"></script>
<script src="https://google.github.io/traceur-compiler/src/bootstrap.js"></script>

<!-- Edit the src. Write `type="module"` (important) for linked script -->
<script src="app.js" type="module"></script>

<!-- Remember to write `type="module"` for embedded script -->
<script type="module">
    //→ write your script here
</script>

See: Traceur Compiler Getting Started

Demo: ES6 Demo Repo Source

:pencil: read more about write and run es6 code in browser on the FCC Wiki

John Sanchez
@john8801
Aug 30 2015 16:42
rollem
CamperBot
@camperbot
Aug 30 2015 16:42
John Sanchez
@john8801
Aug 30 2015 16:42
wiki video
CamperBot
@camperbot
Aug 30 2015 16:42

:point_right: video demo [wiki]

you can add inline video to the wiki with just a google link. Inside the chatwiki this will show up as an embedded video.

https://www.youtube.com/watch?v=BMUiFMZr7vk

:pencil: read more about video demo on the FCC Wiki

Johannes Andersen
@johand199
Aug 30 2015 18:18
Just need to test something
@\all thanks
CamperBot
@camperbot
Aug 30 2015 18:18
if you want to thank someone, put an @ before their name!
Abhisek Pattnaik
@abhisekp
Aug 30 2015 19:08
update
CamperBot
@camperbot
Aug 30 2015 19:08
updating wiki...
Updating d57a9b4..6b3dc67 Fast-forward
...Generate Random Whole Numbers within a Range.md | 6 --- ...Generate-Random-Whole-Numbers-within-a-Range.md | 55 ++++++++++++++++++++++ 2 files changed, 55 insertions(+), 6 deletions(-) delete mode 100644 Waypoint Generate Random Whole Numbers within a Range.md create mode 100644 Waypoint-Generate-Random-Whole-Numbers-within-a-Range.md
done code: 0
:computer:
Abhisek Pattnaik
@abhisekp
Aug 30 2015 19:08
explain random whole
CamperBot
@camperbot
Aug 30 2015 19:08

:point_right: waypoint generate random whole numbers with javascript [wiki]

Generate Random Whole Numbers with JavaScript

It's great that we can create random decimal numbers, but it's even more useful if we lot more useful to generate a random whole number.

To achieve this we can multiply the random number by ten and use the Math.floor() to convert the decimal number to a whole number

return(Math.floor(Math.random()*10));

:pencil: read more about waypoint generate random whole numbers with javascript on the FCC Wiki

Abhisek Pattnaik
@abhisekp
Aug 30 2015 19:17
update
CamperBot
@camperbot
Aug 30 2015 19:17
updating wiki...
done code: 0
:computer:
Updating 6b3dc67..8c7840d Fast-forward
Waypoint-Generate-Random-Whole-Numbers-within-a-Range.md | 2 ++ 1 file changed, 2 insertions(+)
Abhisek Pattnaik
@abhisekp
Aug 30 2015 19:17
explain random whole
CamperBot
@camperbot
Aug 30 2015 19:17

:point_right: waypoint generate random whole numbers with javascript [wiki]

Generate Random Whole Numbers with JavaScript

It's great that we can create random decimal numbers, but it's even more useful if we lot more useful to generate a random whole number.

To achieve this we can multiply the random number by ten and use the Math.floor() to convert the decimal number to a whole number

return(Math.floor(Math.random()*10));

:pencil: read more about waypoint generate random whole numbers with javascript on the FCC Wiki

Abhisek Pattnaik
@abhisekp
Aug 30 2015 19:59
update
CamperBot
@camperbot
Aug 30 2015 19:59
updating wiki...
Updating 8c7840d..03f79cd Fast-forward
Waypoint-Generate-Random-Whole-Numbers-within-a-Range.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
done code: 0
:computer:
Abhisek Pattnaik
@abhisekp
Aug 30 2015 19:59
explain random whole
CamperBot
@camperbot
Aug 30 2015 19:59

:point_right: waypoint generate random whole numbers with javascript [wiki]

Generate Random Whole Numbers with JavaScript

It's great that we can create random decimal numbers, but it's even more useful if we lot more useful to generate a random whole number.

To achieve this we can multiply the random number by ten and use the Math.floor() to convert the decimal number to a whole number

return(Math.floor(Math.random()*10));

:pencil: read more about waypoint generate random whole numbers with javascript on the FCC Wiki

Abhisek Pattnaik
@abhisekp
Aug 30 2015 20:01
update
CamperBot
@camperbot
Aug 30 2015 20:01
updating wiki...
Updating 03f79cd..9847cbf Fast-forward
Waypoint Generate Random Whole Numbers with JavaScript.md | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 Waypoint Generate Random Whole Numbers with JavaScript.md
done code: 0
:computer:
Abhisek Pattnaik
@abhisekp
Aug 30 2015 20:01
explain random whole
CamperBot
@camperbot
Aug 30 2015 20:01

:point_right: waypoint generate random whole numbers within a range [wiki]

Generate Random Whole Numbers within a Range

We can use a certain mathematical expression to get a random number between two numbers.

Math.floor(Math.random() * (max - min + 1)) + min

See Also: :scroll: Explanation

:pencil: read more about waypoint generate random whole numbers within a range on the FCC Wiki