These are chat archives for GitterBotX/playground

14th
Mar 2016
Abhisek Pattnaik
@abhisekp
Mar 14 2016 15:15
bot res
GitterBotX
@GitterBotX
Mar 14 2016 15:15

:point_right: angular resources [wiki]

A collection of helpful Angular resources

General Pages

Specific-topic Pages

  • Directives - Excellent guide going into detail on Angular Directives (Part 1)
  • Directives - Excellent guide going into detail on Angular Directives (Part 2)

Videos

Abhisek Pattnaik
@abhisekp
Mar 14 2016 15:15
bot python res
Abhisek Pattnaik
@abhisekp
Mar 14 2016 15:17
update
GitterBotX
@GitterBotX
Mar 14 2016 15:17
updating wiki...
Updating d04b741..4092a13 Fast-forward
List-of-Free-Code-Camp-city-based-Campsites.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
done code: 0
:computer:
Abhisek Pattnaik
@abhisekp
Mar 14 2016 15:17
bot python res
Abhisek Pattnaik
@abhisekp
Mar 14 2016 15:23
bot python res
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 16:22
bot bot
GitterBotX
@GitterBotX
Mar 14 2016 16:22

:point_right: git delete a branch both locally and remotely [wiki]

When to Delete branches?

Normally in a contribution flow Branches are a great way to work on different features, fixes, etc. while isolating them from the main codebase. So a repo may have a master branch, and separate branches to work on different features.

Typically once the work is completed on a feature and it is recommended to delete the branch.

The Delete workflow:

Lets say you have a repo called as AwesomeRepo, and its hosted on Github, at a location such as https://github.com/my_username/AwesomeRepo.

Also lets assume it has the branches like: <br>
master<br>
feature/some-cool-new-stuff<br>
fix/authentication<br>
staging<br>

For consistency we will assume branch names are same on local as well as on the remote.

Now, lets say you are done with that fix for authentication and want to remove the branch fix/authentication.

:pencil: read more about git delete a branch both locally and remotely on the FCC Wiki

Rafael J. Rodriguez
@Rafase282
Mar 14 2016 16:22
bot
GitterBotX
@GitterBotX
Mar 14 2016 16:22

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
  • Algorithm BONFIRENAME info on a Algorithm

:speech_balloon: meet CamperBot in this room!

:pencil: read more about camperbot on the FCC Wiki

Abhisek Pattnaik
@abhisekp
Mar 14 2016 18:50
botstatus
GitterBotX
@GitterBotX
Mar 14 2016 18:50
All bot systems are go!
botVersion: 0.0.12
env: GitterBotX
botname: GitterBotX
Abhisek Pattnaik
@abhisekp
Mar 14 2016 18:52
bot python res
Abhisek Pattnaik
@abhisekp
Mar 14 2016 18:52
@Rafase282 i downloaded the newest commit in the PR but the relative link isn't working :/ :point_up: March 15, 2016 12:22 AM
GitterBotX
@GitterBotX
Mar 14 2016 18:52
you called?
Abhisek Pattnaik
@abhisekp
Mar 14 2016 18:53
cbot
GitterBotX
@GitterBotX
Mar 14 2016 18:53
you called?
Abhisek Pattnaik
@abhisekp
Mar 14 2016 18:53
GitterBotX
GitterBotX
@GitterBotX
Mar 14 2016 18:53
you called?
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 18:53
they seem to be working
but the links are wrong
I'm streamign now so I'll check on that later today
Abhisek Pattnaik
@abhisekp
Mar 14 2016 18:53
@Rafase282 they're relative links in the wiki and working in the wiki but not here
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 18:54
could be the way the relative links are set
I see a #
Abhisek Pattnaik
@abhisekp
Mar 14 2016 18:54
@Rafase282 no. relative links are anchor tags to the same pg. headings
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 18:54
so they should either be changed to the page title#anchor or the script changed
Abhisek Pattnaik
@abhisekp
Mar 14 2016 18:55
@Rafase282 script change
@Rafase282 pg. title are not supposed to be in a relative link bcoz if the pg. title changes, so will all the relative links in the pg. And one has to change them manually.
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 21:45
I took at looka t the links
so the best thign woudl be to add a condition to check for the #after the ( and make it add the page title
Abhisek Pattnaik
@abhisekp
Mar 14 2016 21:46
@Rafase282 using regex?
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 21:46
yes
we are usign regex on the whole thing
Abhisek Pattnaik
@abhisekp
Mar 14 2016 21:47
\(\s*#
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 21:47
just add another layer of checking i guess
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 21:54
if (word.match(/\(\#/gi)){

              }
made a new untested commit
Abhisek Pattnaik
@abhisekp
Mar 14 2016 21:59
@Rafase282 so push it and i can pull and u can test it live here
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 21:59
is there, checking for test failures
do you have screenhero?
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:01
@Rafase282 the bot crashed due to ur typos :/
@Rafase282 TextLib L20:29
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:02
got it
but check the systax of the regex i added
if (word.match(/\(\#/gi)){
                word = word.replace(/\(\#/gi, '(' + baseUrl + fileName + '#' + '$1' + ')');
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:03
botstatus
GitterBotX
@GitterBotX
Mar 14 2016 22:03
All bot systems are go!
botVersion: 0.0.12
env: GitterBotX
botname: GitterBotX
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:03
bot python res
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:03
havent made the changes
GitterBotX
@GitterBotX
Mar 14 2016 22:03

:point_right: python resources [wiki]

Python Resources

Home
Tutorialstutorials)
Challengeschallenges)
Communitycommunity)

:pencil: read more about python resources on the FCC Wiki

Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:04
@Rafase282 nope! the regex is buggy :point_up: March 15, 2016 3:33 AM
GitterBotX
@GitterBotX
Mar 14 2016 22:04
you called?
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:04
knadna jdhbajds bhjabds kaj dkajs dGitterBotX
GitterBotX
@GitterBotX
Mar 14 2016 22:04
you called?
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:04
yeah! i called. Damn u!
@Rafase282 hey! u forgot the capture :point_up: March 15, 2016 3:32 AM
GitterBotX
@GitterBotX
Mar 14 2016 22:07
you called?
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:07
@GitterBotX shut up!!!!
GitterBotX
@GitterBotX
Mar 14 2016 22:07
you called?
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:08
why is this stupid bot behaving like this? Irritating
/\(\#(.+)/gi
botstatus
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:09
pushed
GitterBotX
@GitterBotX
Mar 14 2016 22:09
All bot systems are go!
botVersion: 0.0.12
env: GitterBotX
botname: GitterBotX
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:10
bot python res
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:10
@Rafase282 :D
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:10
ok
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:10
it works just have to remove the )
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:10
I I have to get the one without the md
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:11
update
GitterBotX
@GitterBotX
Mar 14 2016 22:11
updating wiki...
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:11
havent pushed
GitterBotX
@GitterBotX
Mar 14 2016 22:11
done code: 0
:computer:
Already up-to-date.
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:12
thinking if I should remove the ) or not
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:12
bot python res
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:12
@Rafase282 hey! can u check the links :point_up: March 15, 2016 3:42 AM?
are they working?
GitterBotX
@GitterBotX
Mar 14 2016 22:12
you called?
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:12
update
GitterBotX
@GitterBotX
Mar 14 2016 22:12
updating wiki...
Already up-to-date.
done code: 0
:computer:
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:13
ugh
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:13
@Rafase282 yeah! the .md appending is the issue
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:13
pushed a new commit, update the stuff and try again
it should work this time
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:13
k
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:14
bot python res
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:14
botstatus
GitterBotX
@GitterBotX
Mar 14 2016 22:14
All bot systems are go!
botVersion: 0.0.12
env: GitterBotX
botname: GitterBotX
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:14
bot python res
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:14
bot python res
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:14
$1?
@Rafase282 u forgot the capture !! :P
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:15
ugh
if (word.match(/\(\#(.+)/gi)){
     word = word.replace(/\(\#/gi, '(' + baseUrl + topicName + 
         '#' + '$1' + ')');
but that was adding ) to the end
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:16
in 2nd line if u wanna use '$1', u need to capture first
botstatus
bot python res
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:18
havent made new changes
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:18
botstatus
GitterBotX
@GitterBotX
Mar 14 2016 22:18
All bot systems are go!
botVersion: 0.0.12
env: GitterBotX
botname: GitterBotX
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:18
bot python res
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:19
@Rafase282 can u test the bot now? :point_up: March 15, 2016 3:48 AM
GitterBotX
@GitterBotX
Mar 14 2016 22:19
you called?
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:19
no
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:19
it works
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:19
@Rafase282 and what about other wiki pages?
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:19
home works
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:19
?
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:19
so did the other links with #
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:19
i mean other wiki pages
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:19
but what were the changes you made?
bot python
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:20
they work
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:21
diff --cc lib/utils/TextLib.js
index fa4a06a,6dd9d13..0000000
--- a/lib/utils/TextLib.js
+++ b/lib/utils/TextLib.js
@@@ -16,8 -16,8 +16,8 @@@ const TextLib = 
          line = line.split(' ').map((word) => {
            if (word.match(linkMatchRegExp)) {
              if (!word.match(/\:\/\//gi)) {
 -              if (word.match(/\(\#/gi)){
 -                word = word.replace(/\(\#(.+)/gi, '(' + baseUrl + fileName + '#' + '$1' + ')');
 +              if (word.match(/\(\#(.+)/gi)){
-                 word = word.replace(/\(\#/gi, '(' + baseUrl + topicName + '#' + '$1');
++                word = word.replace(/\(\#(.+)/gi, '(' + baseUrl + topicName + '#' + '$1');
                } else {
                  word = word.replace(/\((.+)\)/gi, '(' + baseUrl + '$1' + ')');
                }
bot git res
GitterBotX
@GitterBotX
Mar 14 2016 22:21

:point_right: git resources [wiki]

Resources for working with Git VCS

A collection of resources on the Git VCS.

$ git --distributed-is-the-new-centralized

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

:pencil: read more about git resources on the FCC Wiki

Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:22
bot js res
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:22
@Rafase282 :point_up: March 15, 2016 3:51 AM
GitterBotX
@GitterBotX
Mar 14 2016 22:22
you called?
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:23
no stupid bot i wud never call u ever
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:23
the links seem to be working but the url displayed is wrong
ugh
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:25
@Rafase282 which ones? I see everything is working
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:26
exploring es6, speaking js
check those
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:27
@Rafase282 working fine :+1:
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:28
well I pushed the changes you are using
bot js res
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:28
update
GitterBotX
@GitterBotX
Mar 14 2016 22:28
updating wiki...
Already up-to-date.
done code: 0
:computer:
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:28
bot js res
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:29
so when it takes you to the url, don't you see the nav bar address being wrong?
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:33
@Rafase282 hah! i saw http://eloquentjavascript.net// but others were fine
means there is an extra / at the end somehow?
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:34
no
hold on let me screenshot
nvm the screenshot
http://exploringjs.com/es6/ that's what i get
nvm
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:35
yeah! that's what i get too
so what's wrong?
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:35
chrome hides the http part
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:35
botstatus
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:35
so i was beign stupid
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:35
lol
GitterBotX
@GitterBotX
Mar 14 2016 22:35
All bot systems are go!
botVersion: 0.0.12
env: GitterBotX
botname: GitterBotX
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:35
I though it was exploringjs.com/es6/
that's what i see
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:36
plz rigorously test it, i've update with ur changes
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:39
as for that one i'm not sure why
that is not part of the changes we made
we don't touch the ones with http
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:40
so? what are u saying?
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:41
That http://eloquentjavascript.net// is some weird stuff because the script does not changes link like those.
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:42
@Rafase282 don't worry about it. We shud just rigorously test a lot of articles.
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:42
So far we have relative links, relative links pointing inside the same page, those are taken care of
hard links are not touched
bot js
GitterBotX
@GitterBotX
Mar 14 2016 22:42

:point_right: challenge accessing nested arrays in json [wiki]

Challenge: Accessing Nested Arrays in JSON

As we have seen in earlier examples, JSON objects can contain both nested objects and nested arrays. Similar to accessing nested objects, Array bracket notation can be chained to access nested arrays.

Here is an example of how to access a nested array:

```js
var ourPets = {
"cats": [
"Meowzer",
"Fluffy",
"Kit-Cat"
],
"dogs": [
"Spot",
"Bowser",
"Frankie"
]
};
ourPets.cats1; // "Fluffy"
:pencil: read more about challenge accessing nested arrays in json on the FCC Wiki

Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:43
bot slice
GitterBotX
@GitterBotX
Mar 14 2016 22:43

:point_right: js array prototype slice [wiki]

Array.prototype.slice()

The slice() method returns a shallow copy of a portion of an array into a new array object.

arr.slice([begin[, end]])
Necessity Parameter Description
Required arr An Array object.
Required begin The beginning of the specified portion of array.
Optional end The end of the specified portion of array.

Return: The slice method returns an Array object containing the specified portion of arrayObj.

MDN link | MSDN link

:pencil: read more about js array prototype slice on the FCC Wiki

Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:43
bot java
GitterBotX
@GitterBotX
Mar 14 2016 22:43

:point_right: advantages and disadvantages of javascript [wiki]

Advantages & Disadvantages of JavaScript

Like all computer languages, JavaScript has certain advantages and disadvantages. Many of the pros and cons are related to being a client-side language.

:pencil: read more about advantages and disadvantages of javascript on the FCC Wiki

Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:43
bot flask
GitterBotX
@GitterBotX
Mar 14 2016 22:43

:point_right: install django flask [wiki]

Setting Up Python Web-framework: Django and Flask

Previous

Home

In this article, we shall be discussing how to install Django and Flask - two popular web frameworks written in Python.

Perhaps you are already familiar with the widespread usage and community support for Python; in web-development. You might as well be aware as to what a web framework is; and the options available for Python.

In case these assumptions are untrue, you might want to take a look at this wiki article. If you are all caught up, let's go ahread with setting up Python web frameworks in your local development machine.

But it would be unfair if we completely ignore the Python 2 vs Python 3 debate.

Python 2 vs. Python 3

No, we wouldn't be taking a side in the debate. If you are interested in knowing more about it for academic purposes, perhaps this would intrigue you.

But; we cannot also be ignorant of the fact that there are two major flavors of Python out there. Why do we care, you ask? Well, because code written adhering to one style; would simply result in syntax error in interpreter of other flavor of Python.
:pencil: read more about install django flask on the FCC Wiki

Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:44
they seem fine to me
I'm goign to squash, then people can spam the bot with request to test
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:48
@Rafase282 lol. yeah! :D
btw, if u have fast net connection, then u may run the bot. It's already 5 AM here and i may die any moment
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:48
I do but I'm multitasking between the bot, coding, my son's homeework, and entertainig nmy gf
Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:55
@Rafase282 wait... entertainig nmy gf??? :confused:
why do u need to entertain ur gf while doing ur son's homework?
:question:
:confused:
lol
botstatus
bot git res
GitterBotX
@GitterBotX
Mar 14 2016 22:56
All bot systems are go!
botVersion: 0.0.12
env: GitterBotX
botname: GitterBotX

:point_right: git resources [wiki]

Resources for working with Git VCS

A collection of resources on the Git VCS.

$ git --distributed-is-the-new-centralized

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

:pencil: read more about git resources on the FCC Wiki

Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:56
bot git commit
GitterBotX
@GitterBotX
Mar 14 2016 22:56

:point_right: writing great git commit message [wiki]

The seven rules of a great git commit message

  1. Separate subject from body with a blank line
  2. Limit the subject line to 50 characters
  3. Capitalize the subject line
  4. Do not end the subject line with a period
  5. Use the imperative mood in the subject line
  6. Wrap the body at 72 characters
  7. Use the body to explain what and why vs. how

A properly formed git commit subject line should always be able to complete the following sentence:

If applied, this commit will <<your subject line here>>

:pencil: read more about writing great git commit message on the FCC Wiki

Abhisek Pattnaik
@abhisekp
Mar 14 2016 22:56
bot js res
Rafael J. Rodriguez
@Rafase282
Mar 14 2016 22:58
@abhisekp got mine running
@abhisekp she videocalle dme
I ginored her so she left, probably is mad at me
bot git res
GitterBotX
@GitterBotX
Mar 14 2016 23:01

:point_right: git resources [wiki]

Resources for working with Git VCS

A collection of resources on the Git VCS.

$ git --distributed-is-the-new-centralized

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

:pencil: read more about git resources on the FCC Wiki