These are chat archives for FreeCodeCamp/HelpFrontEnd

29th
Oct 2018
Dhaval Vira
@dhavalveera
Oct 29 2018 00:12
@newmoon I didn't get you for file:// & https:// Path
Keggatron
@Keggatron
Oct 29 2018 00:23
@cmccormack sandbox uses CRA
in order to use decorators I believe you need to eject
I don't know if that's possible in sandbox
Christopher McCormack
@cmccormack
Oct 29 2018 00:26
Not sure. I'm not familiar with mobx enough to directly help so thought I would throw it in a sandbox and see what's mising
newmoon
@newmoon
Oct 29 2018 02:10

@dhavalveera in your :point_up: screen shot, you have a path to file:///c:/Users/....

Web pages need to be served over http:// not file://

That's what I meant by file:// vs https://
yozhikvtumane
@yozhikvtumane
Oct 29 2018 09:19
Can't complete Managing "Packages with Npm - How to Use package.json" challenge
Aditya
@ezioda004
Oct 29 2018 09:23
@yozhikvtumane You'd have to use the glitch boilerplate, github links wont work.
yozhikvtumane
@yozhikvtumane
Oct 29 2018 09:25
After completing each challenge you can copy your public Glitch url (to the homepage of your app) into the challenge screen to test it! Optionally you may choose to write your project on another platform but it must be publicly visible for our testing.
you may choose to write your project on another platform but it must be publicly visible for our testing.
Aditya
@ezioda004
Oct 29 2018 09:27
I know; its not supported.
The tests as of now is only available for glitch projects.
yozhikvtumane
@yozhikvtumane
Oct 29 2018 09:30
Alrighty then
Thanks!
Aditya
@ezioda004
Oct 29 2018 09:30
:thumbsup:
yozhikvtumane
@yozhikvtumane
Oct 29 2018 09:40
So, it's already running express by default?
Aditya
@ezioda004
Oct 29 2018 09:49
Their boilerplate has express, yes.
Mohammed Boudad
@matrixersp
Oct 29 2018 11:11
can someone tell me the difference between @babel/core and babel-core?
Alex
@Wulfheart
Oct 29 2018 12:09
Hello, someone online?
VitaliiLynnyk
@VitaliiLynnyk
Oct 29 2018 12:36
I have some little problem. My mask work only when integer < 1200
Can anybody explain why ?
let first = parseInt(1200, 10).toString(2); 
let second = parseInt(14, 10).toString(2); 
let third = parseInt(1000, 10).toString(2); 
let mask = first | second | third;
let res = mask & third;

console.log(first, ' ', second, '  ', third, '  ', res);
Fabusuyi David Oluwasegun
@dav4thevid
Oct 29 2018 13:01

hello guys....please i need help with #ES6: Use Destructuring Assignment to Assign Variables from Objects, i really dont understand why its not passing the last test '''const AVG_TEMPERATURES = {
today: 77.5,
tomorrow: 79
};

function getTempOfTmrw(avgTemperatures) {
"use strict";
// change code below this line

const {tomorrow:tempOfTomorrow} = AVG_TEMPERATURES; // change this line

// change code above this line
return tempOfTomorrow;
}

console.log(getTempOfTmrw(AVG_TEMPERATURES)); // should be 79'''

var code = '''const AVG_TEMPERATURES = {
today: 77.5,
tomorrow: 79
};

function getTempOfTmrw(avgTemperatures) {
"use strict";
// change code below this line

const {tomorrow:tempOfTomorrow} = AVG_TEMPERATURES; // change this line

// change code above this line
return tempOfTomorrow;
}

console.log(getTempOfTmrw(AVG_TEMPERATURES)); // should be 79'''

Marc
@MWBauer
Oct 29 2018 14:25
I would like someone to decode this command for me so that I can better understand it.
pacman -S --needed base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain \ git subversion mercurial \ mingw-w64-i686-cmake mingw-w64-x86_64-cmake
Marc
@MWBauer
Oct 29 2018 14:39
nvm
Alwin George
@siliconchild
Oct 29 2018 16:51
can i get some help with chart.js if anyone familiar with the library
Barbara Pentoney
@flyfishingbarbara
Oct 29 2018 20:42
hi peeps- would love some help to figure out how i can get my left-side nav to go up to the top of page when responsive....like in the example tech documentation page...
this one is the example https://codepen.io/freeCodeCamp/full/NdrKKL
this one is mine re sass...https://codepen.io/flyfishingbarbara/pen/MPovZJ?editors=0100
thanks!
yozhikvtumane
@yozhikvtumane
Oct 29 2018 20:55
@flyfishingbarbara it's in fixed position, so it won't go anywhere.
When you use position: fixed, that element becomes sort of out of the flow of the page and won't react to other elements
Barbara Pentoney
@flyfishingbarbara
Oct 29 2018 21:03
@yozhikvtumane okay thnx i'll take a look. i remember changing some of the element's positions but wasn't getting the result i wanted...will take another look...thanks!
yozhikvtumane
@yozhikvtumane
Oct 29 2018 21:04
I would recommend you to start over and first make a page for the small screens where this block at the top without being fixed
And then you just add media queries for bigger screens but instead of max-width use min-width
Victor Popescu
@VicPopescu
Oct 29 2018 22:21
@flyfishingbarbara the example you gave is using fixed position for screens bigger then 815px, then,with a media query max-width: 815px is switching the position to absolute and top 0and pushing the entire main-doc with a margin-top: 270px; to cover the height of the navigation
that being said, not the best solution, but it works
Christopher
@bradley1492
Oct 29 2018 22:33

Hello,
I have a question regarding git workflow.
Say I have a folder named "app" containing css-folder, js-folder, images-folder and an index.html.

Would I do git init in the folder containing the app folder and git addthe folder or would I go into the folder and add each subfolder and the index html?

Can git just track everything in my app-folder, or do I have to feed it "smaller" bits? What's common workflow here?

Barbara Pentoney
@flyfishingbarbara
Oct 29 2018 22:39
@VicPopescu u do understand that that is the example that freecodecamp gives in their curriculum, right? i'll take a look again...
Victor Popescu
@VicPopescu
Oct 29 2018 22:49
@flyfishingbarbara I sent you in private an example, to avoid spamming here. If you have questions, feel free to ask