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
CamperBot
@camperbot

:point_right: help rooms [wiki]

Help Rooms

Choose the right room for your question!

:pencil: read more about help rooms on the FCC Wiki

Sergey
@SZharkov
Can anybody explain me what's wrong? Why new quotations don't appear? http://codepen.io/Zharkov/pen/pgQZNP
mrheffern
@mrheffern
It seems to be working to me
@SZharkov are you sure it isnt working?
bitgrower
@bitgrower
maybe different os/browser combos ? FF &chrome use more standard JS, safari, less so ...
Eddy Mogollon Soto
@Eddymogollon
Hi guys, I've basically finished the Weather API but I've realized that it tells me the district where I live and not the city. So even though it is pretty specific, it says, for example: Kendall West, FL instead of Miami, FL. Why that might be?
Joseph Morse
@jnmorse
@Eddymogollon Its partly do to how ever openweathermap processes your requests and handles data on there end, but also geolocation is generally only so accurate, for instance it says I'm Claremont, tech I'm in Charlestown, I just happen to be pretty close to Claremont.
Eddy Mogollon Soto
@Eddymogollon
@jnmorse In the example they have in FCC it says Miami though! I wonder what the difference is
Joseph Morse
@jnmorse
@Eddymogollon the example uses another api for locations, though that one tells me I'm in a different state...
@Eddymogollon least the old one did, not haven't checked the newer example I noticed they had..
Eddy Mogollon Soto
@Eddymogollon
@jnmorse I technically finished it, perhaps after I finish styling it I might look into the source code from FCC to see any difference
Joseph Morse
@jnmorse
@Eddymogollon I just 'finished' rewriting mine, on a kick of rewriting my projects using react right now. really should try to do the simon and tic tac toe one..
I even rewrote my pomodoro one at three times now...
Eddy Mogollon Soto
@Eddymogollon
@jnmorse That would be a great idea! I plan to refactor the other projects I've done too! Question, the Tic tac toe one, you just used HTML, CSS and JS without canvas, right?
Joseph Morse
@jnmorse
@Eddymogollon guess wasn't clear enough, I haven't actually got to those two yet, I started them and sorta only used html, css, and javascript. not sure about doing things with canvas
Eddy Mogollon Soto
@Eddymogollon
@jnmorse I see, well good luck then! I plan to start the tictactoe one probably this week!
Amir Ghafouri
@amirghafouri

@mutantspore

well when the timer is not greater than zero you need to swap to the “other” timer value. To keep track of which you should be counting down, I used a “flag” called timerType.
for example.
if (timerType == 'session') { …. and in that if I set things up for the break time, cleared the clock face, sounded the alarm and changed the flag to be timerType = “break”. So obviously if the timerType was “break” i’d do a similar thing but for the session values. there is no need to actually stop the timer … just change the values. You only really need to stop it for “stop” or “reset” or maybe “pause"

This is what I ended up doing and it works great:

function decTime() {
  // AG: check to see if timer is for session or break
  if (!onBreak) {
    //fill the circle
    filler(countDown);
    // display the current count down
    showCount();
    // decrement the counter if it's not at zero
    if (countDown > 0) {
      countDown--;
    } else {
      // AG: transition from session to break
      onBreak = true;
      countDown = breakTimerSeconds;
    }
  } else {  
    // unfill the circle
    unfiller(countDown);
    // display the current count down
    showCount();
    // decrement the counter if it's not at zero
    if (countDown > 0) {
      countDown--;
    } else {
      // AG: transition from break to session
      onBreak = false;
      countDown = workTimerSeconds;
    }
  }
}
Maciej Bembenista
@macbem
https://jsfiddle.net/9fyk4qev/ i might use a little debugging help here :( random quote machine doesn't show quotes at all - it was working before, i had to quickly end my work and I messed something up
I thought that the API provider might have locked me out after using his api for 200 times in 60 minutes
but this doesn't work even on codepen, even from another PC and town
Sam Reeves
@smreeves
Hey everyone! I think I've finished my calculator app. I'm going to monkey with the background to make it a little easier, but otherwise all functionality I wanted to incorporate is done. If you have some time to look it over, I'd be grateful! I'm sure there are a few things I could tweak to make it better. Thanks! http://codepen.io/sreeves89/full/gPBzjK/
Andrew Schmidthuber
@calicode
love the ui. took me a second to realize i had to turn it on. i think the user stories want both types of clear
Sam Reeves
@smreeves
Bottom-left has a "back" button when I would imagine is similar to the CE functionality. Yes, I was a bit worried about "turning it on" but I liked that functionality since I was basing off of a real calculator that I had in front of me. Maybe either I'll put a note that it needs to be turned on or have it automatically come on as soon as someone starts pressing buttons.
Andrew Schmidthuber
@calicode
i would go with the latter
Sam Reeves
@smreeves
Thank you @calicode for taking a look!
CamperBot
@camperbot
sreeves89 sends brownie points to @calicode :sparkles: :thumbsup: :sparkles:
:star: 328 | @calicode | http://www.freecodecamp.com/calicode
zackluckyf
@zackluckyf
Different question than usual. I built this pretty nice website in brackets and I'm not sure of the easiest way to put it on codepen without having to do a bunch of work to fix it to make it work.
any ideas?
Brett Guillory
@kurzninja
@zackluckyf just copy/paste your code into the appropriate sections in codepen
html to the html, css to the css, etc
what would you need to fix?
Dan Stockham
@DanStockham
Is there a higher order function that can test if all the items in an array of arrays is the same?
Brett Guillory
@kurzninja
like a built in function? I don't believe so
Dan Stockham
@DanStockham
Right
Brett Guillory
@kurzninja
there might be on in a library like underscore or lodash
maybe even jQuery
*one
Dan Stockham
@DanStockham
I keep seeing underscore. What is that?
Brett Guillory
@kurzninja
It's a utility library
for doing things similar to what you're asking for
Dan Stockham
@DanStockham
Is it similar to jQuery?
I mean how fast can I pick up on it?
Brett Guillory
@kurzninja
just include it in your page, search the docs for the type of function you're looking for
Dan Stockham
@DanStockham
gotcha
Brett Guillory
@kurzninja
It uses the underscore as it's main variable, like jQuery uses $
Dan Stockham
@DanStockham
I'm looking at the docs. Looks handy.
Brett Guillory
@kurzninja
:)
sigursiguros
@sigursiguros
@jondcoleman how do I fix the rest of the elements?