Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Brad
@bradtaniguchi
^ @Marmiz nice catch
Claudio Restifo
@Marmiz

@JoEeeezy_twitter fear not, getJson already return promises.
It's enough to:

getJSON(url, function(data) {console.log(data}).then(append)

or done I don't remeber JQuery exact syntax (haven't used in a while)

Boo Far
@vapidlyrapid
hello. I was wondering how I can install babel 7 beta using npm
Claudio Restifo
@Marmiz
or you can use async/await if you prefer :)
JoEezy
@JoEeeezy_twitter
@Marmiz thanks for the advice ... i'm gonna try that .then or .done as it seems simple enough for a noob like me :grin:
CamperBot
@camperbot
joeeeezy_twitter sends brownie points to @marmiz :sparkles: :thumbsup: :sparkles:
:star2: 1199 | @marmiz |http://www.freecodecamp.org/marmiz
JoEezy
@JoEeeezy_twitter
i need to do more learning on async
Brad
@bradtaniguchi
omg this package karma-jasmine-html-reporteris messed up I think :/
JoEezy
@JoEeeezy_twitter
@Marmiz works like a charm :), ty
CamperBot
@camperbot
joeeeezy_twitter sends brownie points to @marmiz :sparkles: :thumbsup: :sparkles:
api offline
Claudio Restifo
@Marmiz

@JoEeeezy_twitter it's pretty easy to use async/await as well since you write your code in a synchronous style:

async myGetDataFunction() {
  const data = await myMethodToObtainData();

   // keep on writing like if it were a sync function
   const newData = normalize(data);
   return aMethodWtih(newData)
}

Anyway if you never used it, defeinitely get confortable with promises bf using async/await

@JoEeeezy_twitter don't forget to catch any errors! :+1:
coderNewby
@coderNewby
@DarrenfJ thanks for PM, checked.. great tip
CamperBot
@camperbot
codernewby sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2453 | @darrenfj |http://www.freecodecamp.org/darrenfj
Rahsheen Porter
@rahsheen
Watch out with async/await. You need to use try/catch or you're screwed if any errors happen.
Brad
@bradtaniguchi
Does anyone know how the npm command view works? Like npm view gulp? Cuse I used it and it said one version, but I manually checked the package's package.json and it said something else
Alexandro Pequeno
@Argestis
Hi guys, anyone good with JS?
Brad
@bradtaniguchi
@Argestis I was about to get off but I might be able to help, whats up?
Alexandro Pequeno
@Argestis
@brad what this would do? $(".counter .something ").data("example"); where .counter is the parent div of .something
from what div would jquery get data "example"?
@bradtaniguchi whoops i called the wrong brad xD
srry
Brad
@bradtaniguchi
@Argestis All is good, this is more of a Jquery question that JS, but regardless. The double class selector works the same as CSS selectors, so if you have 2 child div with class something, then it would return both
I gotta hit the hay, need to wake up early and its super late XD, if you have any more questions you can always mention me and Ill reply tomorrrow, otherwise someone else might help ya out :)
Alexandro Pequeno
@Argestis
@bradtaniguchi thanks, man! have a good one.
CamperBot
@camperbot
argestis sends brownie points to @bradtaniguchi :sparkles: :thumbsup: :sparkles:
:cookie: 453 | @bradtaniguchi |http://www.freecodecamp.org/bradtaniguchi
zootechdrum
@zootechdrum
hey guys
I was wondering how you could place buttons right below images in css
here is the link to my pen
Justin
@Syncthetic
Just wrap the items in a container div, and have the button element after the image
if it sets next to it, just use display: block, or clear: both
@zootechdrum looks like you set the button styling as clear: "left" when it should just be something like clear: left
Dennis Magnusson
@magnden
Hey guys, I'm working on the freeCodeCamp weather app. Having some issues getting the latitude and longitude with the navigator object. It takes sooo long. I set up a timer in the app and it takes more than a minute to get the coordinates. Was wondering if you guys get the same if you try it? Link to it: https://codepen.io/dennismagnusson/pen/EEOaZy?editors=0010
Justin
@Syncthetic
@magnden 59.1s
then 37.96s
Dennis Magnusson
@magnden
I can't figure out why it takes so long... should be pretty quick, right? I need help if someone can help
thanks @Syncthetic
CamperBot
@camperbot
magnden sends brownie points to @syncthetic :sparkles: :thumbsup: :sparkles:
:cookie: 297 | @syncthetic |http://www.freecodecamp.org/syncthetic
Ian
@toianw
@magnden I think those results are out by a factor of ten. Divide ms by 1000 (not 100) to get seconds
Dennis Magnusson
@magnden
Thats right. Thanks @toianw!
CamperBot
@camperbot
magnden sends brownie points to @toianw :sparkles: :thumbsup: :sparkles:
:cookie: 514 | @toianw |http://www.freecodecamp.org/toianw
Corey Pennington
@JuiceyDuecy
Guys newbie question: what's the difference between a function and a method?
Markus Kiili
@Masd925
@JuiceyDuecy If a function is an object property value, it is called a method.