These are chat archives for camperbot/testing

8th
Sep 2015
Anton Tyagniy
@oldcyber
Sep 08 2015 10:45
find chunky monkey
CamperBot
@camperbot
Sep 08 2015 10:45

find chunky monkey

:zero: bonfire chunky monkey

marzelin
@marzelin
Sep 08 2015 11:24
find slot machine
CamperBot
@camperbot
Sep 08 2015 11:24
find slod machine
nothing found
marzelin
@marzelin
Sep 08 2015 11:24
find slot machine
marzelin
@marzelin
Sep 08 2015 11:25
help
CamperBot
@camperbot
Sep 08 2015 11:25

Hi, I'm CamperBot! I can help you in this chatroom :smile:

Basic Commands:

  • find TOPIC find all entries about topic. ex: find js
  • wiki TOPIC show contents of topic page
  • thanks @username send brownie points to another user
  • about @username shows info on that user
  • bonfire BONFIRENAME info on a bonfire

:speech_balloon: meet CamperBot in this room!

:pencil: read more about camperbot on the FCC Wiki

marzelin
@marzelin
Sep 08 2015 11:25
about @marzelin
CamperBot
@camperbot
Sep 08 2015 11:25
:star: 130 | @marzelin | http://www.freecodecamp.com/marzelin
marzelin
@marzelin
Sep 08 2015 11:25
wiki slot machine
CamperBot
@camperbot
Sep 08 2015 11:25

:point_right: waypoint add your javascript slot machine slots [wiki]

Add your JavaScript Slot Machine Slots

For this part we should notify if they same number is returned three times or return null otherwise.

if(slotOne !== slotTwo || slotTwo !== slotThree){
      return (null);
    }

If slot one and to are different, or slot two and three are not the same, then return null.

:pencil: read more about waypoint add your javascript slot machine slots on the FCC Wiki

marzelin
@marzelin
Sep 08 2015 11:25
wiki friendly date
CamperBot
@camperbot
Sep 08 2015 11:25
no wiki entry for: friendly date
:pencil: click here to create one now!after creating your page type update to reload it here
marzelin
@marzelin
Sep 08 2015 11:26
bonfire friendly date
CamperBot
@camperbot
Sep 08 2015 11:26

:fire:Bonfire: Friendly Date Ranges :link:

function friendly(str) {
  return str;
}

friendly(['2015-07-01', '2015-07-04']);

Implement a way of converting two dates into a more friendly date range that could be presented to a user.

more info:  bf details | bf links | hint

marzelin
@marzelin
Sep 08 2015 11:26
bonfire friendly
CamperBot
@camperbot
Sep 08 2015 11:26

:fire:Bonfire: Friendly Date Ranges :link:

function friendly(str) {
  return str;
}

friendly(['2015-07-01', '2015-07-04']);

Implement a way of converting two dates into a more friendly date range that could be presented to a user.

more info:  bf details | bf links | hint

marzelin
@marzelin
Sep 08 2015 11:27
whatever bonfire friendly
bonfire friendly whatever
CamperBot
@camperbot
Sep 08 2015 11:27
Sorry, can't find a bonfire called friendly whatever. [ Check the map? ]
marzelin
@marzelin
Sep 08 2015 11:28
<html>rules</html>
html <p>some html</p>
<p></p>
ke pasa?
marzelin
@marzelin
Sep 08 2015 11:33
function() { just do it }
wiki no repeats
CamperBot
@camperbot
Sep 08 2015 11:37

:point_right: bonfire no repeats please [wiki]

Problem Explanation:

This task requires us to look at each possible permutation of a string. This is best done using a recursion function. Being able to build a function which collects all permutations of a string is a common interview question, so there is no shortage of tutorials out there on how to do this, in many different code languages.

Permutation Recursion Function

This task can still be daunting even after watching a tutorial. You will want to send each new use of the function 3 inputs: 1. a new string (or character array) that is being built, 2. a position in your new string that's going to be filled next, and 3. an idea of what characters (more specifically positions) from the original string have yet to be used. The pseudo code will look something like this:

```
var str = ???;
perm(current position in original string, what's been used in original string, current string build thus far){
if(current string is finished) {
print current string;
}else{
for(var i = 0; i < str.length; i++) {
if(str[i] has not been used) {
put str[i] into the current position;
mark str[i] as used
perm(current position in original string, what's been used in original string, current string build thus far)
unmark str[i] as used because another branch in the tree for i + 1 will still likely use it;
}
}
:pencil: read more about bonfire no repeats please on the FCC Wiki

marzelin
@marzelin
Sep 08 2015 12:09
wiki chunky monkey
CamperBot
@camperbot
Sep 08 2015 12:09

:point_right: bonfire chunky monkey [wiki]

Our goal for this bonfire is to split arr (first argument) into smaller chunks of arrays with the length provided by size (second argument). There are 4 green checks (objectives) our code needs to pass in order to complete this bonfire:

  1. (['a', 'b', 'c', 'd'], 2) is expected to be [['a', 'b'], ['c', 'd']]
  2. ([0, 1, 2, 3, 4, 5], 3) is expected to be [[0, 1, 2], [3, 4, 5]]
  3. ([0, 1, 2, 3, 4, 5], 2) is expected to be [[0, 1], [2, 3], [4, 5]]
  4. ([0, 1, 2, 3, 4, 5], 4) is expected to be [[0, 1, 2, 3], [4, 5]]

Click More information under the bonfire title and read the helpful links if you haven't yet.

How to approach the bonfire

The helpful links suggest to use Array.push() so let's start by first creating a new array to store the smaller arrays we will soon have like this:

var newArray = [];

Next we'll need a for loop to loop through arr then finally we need a method to do the actual splitting and we can use Array.slice() to do that. The key to this bonfire is understanding how a for loop, size, Array.slice() and Array.push() all work together.

How does a for loop and Array.slice() work

For Loop

:pencil: read more about bonfire chunky monkey on the FCC Wiki

VandheerMan
@VandheerMan
Sep 08 2015 17:56
find yeoman
CamperBot
@camperbot
Sep 08 2015 17:56
VandheerMan
@VandheerMan
Sep 08 2015 17:57
help yeoman
CamperBot
@camperbot
Sep 08 2015 17:57

:point_right: intro to yeoman angular fullstack basejumps [wiki]

Hey FreeCodeCampers! This guide is here to help you navigate creating your first basejump. When I encountered the first basejump, I had no idea what was going on and spent weeks learning all of these things myself. Everything here is stuff I wish I had known coming into the basejumps. Oh and by the way, if you have a question that isn't answered by this guide, that's an issue, and you should report it as an issue to this repository! —@clnhll

Yeoman is a tool that allows you to generate barebones apps based on different software stacks using “generator” packages made by developers who want to make your life easier. These packages streamline your time developing and deploying websites using your platform of choice. We’re using a full-stack MEAN (MongoDB, ExpressJS, AngularJS, NodeJS) generator called generator-angular-fullstack by DaftMonk (https://github.com/DaftMonk/generator-angular-fullstack).

Once you’ve completed the Waypoint: Get Set for Basejumps, use this guide to navigate the base structure of your new app and learn how to interact with the database as well as the user.

NEXT

Sourced from (https://github.com/clnhll/guidetobasejumps) with permission.
:pencil: read more about intro to yeoman angular fullstack basejumps on the FCC Wiki

Abhisek Pattnaik
@abhisekp
Sep 08 2015 18:50
update
CamperBot
@camperbot
Sep 08 2015 18:50
updating wiki...
Updating 2913713..33ce25f Fast-forward
... do I belong.md => Bonfire-Where-do-I-belong.md | 17 ++++- Creating-a-New-Github-Issue.md | 2 +- ...Code-Camp-Full-Stack-Development-Certificate.md | 4 +- ....md => Free-Code-Camp-JavaScript-Style-Guide.md | 0 How-Long-Free-Code-Camp-Takes.md | 10 +++ How-long-Free-Code-Camp-takes-to-complete.md | 10 --- ...that-Free-Code-Camp-recommends-to-nonprofits.md | 5 +- _Sidebar.md | 2 +- bonfire-no-repeats-please.md | 34 ++++++++++ code-formatting.md | 6 +- git-merge.md | 72 ++++++++++++++++++++++ git-rebase.md | 43 +++++++++++++ 12 files changed, 185 insertions(+), 20 deletions(-) rename Bonfire Where do I belong.md => Bonfire-Where-do-I-belong.md (78%) rename Free-Code-Camp-Full-Stack-Developent-Certificate.md => Free-Code-Camp-Full-Stack-Development-Certificate.md (54%) rename Code-Style-Guide.md => Free-Code-Camp-JavaScript-Style-Guide.md (100%) create mode 100644 How-Long-Free-Code-Camp-Takes.md delete mode 100644 How-long-Free-Code-Camp-takes-to-complete.md create mode 100644 git-merge.md create mode 100644 git-rebase.md
done code: 0
:computer:
Maritimesailor
@Maritimesailor
Sep 08 2015 20:31
bonfire mutations
CamperBot
@camperbot
Sep 08 2015 20:31

:fire:Bonfire: Mutations :link:

function mutation(arr) {
  return arr;
}

mutation(['hello', 'hey']);

Return true if the string in the first element of the array contains all of the letters of the string in the second element of the array.

more info:  bf details | bf links | hint

Maritimesailor
@Maritimesailor
Sep 08 2015 20:31
hint
CamperBot
@camperbot
Sep 08 2015 20:31
:construction: Spoilers are only in the Bonfire's Custom Room :point_right:
max77p
@max77p
Sep 08 2015 23:58
wiki topic
CamperBot
@camperbot
Sep 08 2015 23:58

:point_right: topic [wiki]

This is an example. You should replace topic with the thing you want to find info on.
For example:

wiki css    # find a wiki page on css
find js     # find all pages related to css

:pencil: read more about topic on the FCC Wiki

max77p
@max77p
Sep 08 2015 23:58
wiki bracket notation
CamperBot
@camperbot
Sep 08 2015 23:58

:point_right: waypoint use bracket notation to find the first character in a string [wiki]

Use Bracket Notation to Find the First Character in a String

Bracket notation is a way to get a character at a specific index within a string.

Computers don't start counting at 1 like humans do. They start at 0. firstLetterOfLastName = lastName[0];

:pencil: read more about waypoint use bracket notation to find the first character in a string on the FCC Wiki

max77p
@max77p
Sep 08 2015 23:59
wiki jquery selector
CamperBot
@camperbot
Sep 08 2015 23:59

:point_right: waypoint create a class to target with jquery selectors [wiki]

Create a Class to Target with jQuery Selectors

Not every class needs to have corresponding CSS. Sometimes we create classes just for the purpose of selecting these elements more easily using jQuery.

For this we use the target class on the button elements.

:pencil: read more about waypoint create a class to target with jquery selectors on the FCC Wiki