These are chat archives for dcsan/gitterbot

3rd
Nov 2015
Joe Purdy
@joepurdy
Nov 03 2015 23:37
explain code
CamperBot
@camperbot
Nov 03 2015 23:37

:point_right: -----

undefined
:pencil: -----
Joe Purdy
@joepurdy
Nov 03 2015 23:37
hmmm
explain JS
CamperBot
@camperbot
Nov 03 2015 23:37

:point_right: how jsonp is different from json [wiki]

JSONP is just JSON wrapped in a callback function.

JSONP is useful for making cross domain requests, which are often otherwise forbidden by browsers for security reasons.

 // an example of JSON
 {"weapon":"nunchucks","headband":"yellow"}

 // an example of JSONP
 myCallback({"weapon":"nunchucks","headband":"yellow"});

Then to access the data stored in your JSONP, you define the callback function:

myCallback = function(data){
  alert(data.weapon);
};

:pencil: read more about how jsonp is different from json on the FCC Wiki

Joe Purdy
@joepurdy
Nov 03 2015 23:45
explain code format
CamperBot
@camperbot
Nov 03 2015 23:45

:point_right: code format [wiki]

Inline code

This an inline `<paste code here>` code formatting with a single backtick(`) at start and end around the code.

Code Block

``` ⇦ Type 3 backticks and then press [shift + enter ⏎]

<paste your code here>,
then press [shift + enter ⏎]

``` ⇦ Type 3 backticks, then press [enter ⏎]

How to Code

See also: ☛ How to type Backticks | ☯ Compose Mode | ❄ Gitter Formatting Basics

:pencil: read more about code format on the FCC Wiki

Joe Purdy
@joepurdy
Nov 03 2015 23:45
explain code case
CamperBot
@camperbot
Nov 03 2015 23:45

:point_right: code case [wiki]

camelCase

In programming camelCase formatting for variable names looks like this:

var camelCase = "lower-case first word, capitalize each subsequent word";

PascalCase

Another form of this case, often refered to as PascalCase or just CamelCase, and differs by having each word in the variable capitalized like so:

var PascalCase = "upper-case every word";

snake_case

Another popular code case for variable naming called snake case involves sperating each word with underscores in this manner:

var snake_case = "lower-case everything, but separate words with underscores";

:pencil: read more about code case on the FCC Wiki

Joe Purdy
@joepurdy
Nov 03 2015 23:45
explain foo
CamperBot
@camperbot
Nov 03 2015 23:45

:point_right: _footer [wiki]

Learn to code and help nonprofits. Join our open source community in 15 seconds at http://freecodecamp.com

Follow our Medium blog
Follow Quincy on Quora
Follow us on Twitter
Like us on Facebook

And be sure to click the "Star" button in the upper right of this page.
:pencil: read more about _footer on the FCC Wiki

Joe Purdy
@joepurdy
Nov 03 2015 23:46
explain Bonfire
CamperBot
@camperbot
Nov 03 2015 23:46

:point_right: bonfire arguments optional [wiki]

Explanation:

It can be quite complicated to understand what needs to be done. There is always many ways to do something when coding but regardless of the algorithm used, we have to create a program that does the following:

  • It has to add two numbers passed as parameters and return the sum.
  • It has to check if any of the numbers are actual numbers, otherwise return undefined and stop the program right there.
  • It has to check if it has one or two arguments passed. More re ignored.
  • If it has only one then it has to return a function that used that number and expects another one, to then add it.

:pencil: read more about bonfire arguments optional on the FCC Wiki

Joe Purdy
@joepurdy
Nov 03 2015 23:48
explain css
CamperBot
@camperbot
Nov 03 2015 23:48

:point_right: html and css cheat sheet [wiki]

This a page that (hopefully) in time will grow to cover the basic and simple HTML and CSS solutions.

Please add to your alternate solutions if you know a different way.

:pencil: read more about html and css cheat sheet on the FCC Wiki
Joe Purdy
@joepurdy
Nov 03 2015 23:54
update wiki
CamperBot
@camperbot
Nov 03 2015 23:54
updating wiki...
format-@meet999.md | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 format-@meet999.md
Updating 1f7ee34..237e533 Fast-forward
done code: 0
:computer:
Joe Purdy
@joepurdy
Nov 03 2015 23:55
explain code
CamperBot
@camperbot
Nov 03 2015 23:55

:point_right: -----

undefined
:pencil: -----
Nicholas "LB" Braden
@LB--
Nov 03 2015 23:56
explain undefined
CamperBot
@camperbot
Nov 03 2015 23:56

:point_right: js undefined [wiki]

A primitive value automatically assigned to variables that have just been declared or to formal arguments for which there are no actual arguments.

MDN
:pencil: read more about js undefined on the FCC Wiki

Joe Purdy
@joepurdy
Nov 03 2015 23:56
Trying to hunt down cause for #191
Early guess is following the changes to the wiki following the spammer attack in FreeCodeCamp/FreeCodeCamp#4065 caused the gitterbot to fubar