Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • Jun 19 20:09
    @krisb1220 banned @Gastony
  • May 14 22:39
    @bjorno43 banned @minitechtips_twitter
  • May 14 22:38
    @bjorno43 banned @real-action
  • Feb 01 00:27
    @bjorno43 banned @Ndoua
  • Jan 07 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 2019 17:13
    @mstellaluna banned @cmal
  • Jan 08 2019 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
Kaz Baig
It is trying to install them but the errors look something like npm ERR! tar.unpack untar error /tmp/npm-cache/6.12.3/core-js/2.5.3/package.tgz 3:20 PM
@MuhammedKarim all that stuff you're doing... when you find yourself writing the same line of code multiple times you should think about putting it into a reusable function
as for a random fish - you can make one just like you did - instead of putting in x,y values yourself - make x and y random
x = math.random
Tiago Correia
@kbaig it seems an issue with the package but never runned into it if you google it what comes up?
that doesnt work there for some reason @moT01
Kaz Baig
@tiagocorreiaalmeida since they named the site Glitch, it's not easy to search for issues specific to it lol
yea, that's not how to get a random number
that still doesn't work :( @moT01
what repo
Now that is amazing, that's really cool
but my main issue was making a random sized and coloured fish at each click...
start with putting a fish on in a random spot
get a random x and y
Math.floor(Math.random() * 20)) will give you a number between 0 and 19
you can console.log it to see for yourself
var random = Math.floor(Math.random() * 20));
@moT01 im working on it but things just dont add up :(
hi is there anyone who can help make my horizontal navigation bar be in straight?..getting that icon in the same line a others
@ogwel5 i would use flexbox
you can align things vertically
Eric Weiss
if you are recreating the google homepage, you can use the icons google provides, https://material.io/icons/
apps and notifications
@moT01 no luck maan :(
why not
can you make a random number?
but then to make it into a fish with all the shapes and coordinates....it just doesnt work out @moT01
@moT01 @eweiss17 thanks..it has workedd
ogwel5 sends brownie points to @mot01 and @eweiss17 :sparkles: :thumbsup: :sparkles:
:cookie: 989 | @mot01 |http://www.freecodecamp.org/mot01
:cookie: 610 | @eweiss17 |http://www.freecodecamp.org/eweiss17
Barbara Pentoney
@sjames1958gm are you still there...??
Christopher Susi
Hey everyone, if anyone could take a look at this TicTacToe game I would greatly appreciate it. I’m having an issue for one player I can’t seem to get the code just right for the computer to always win. https://codepen.io/chrisandsuch/pen/XZRYZE
@krckyboy You might try one of the sites listed here: https://github.com/neutraltone/awesome-stock-resources#videos
li.right img {
  vertical-align: middle;
@ogwel5 still around?
no offense but your ai is a bit dumb on your tictactoe
oh nvm
@flyfishingbarbara Instead of messing around with global variables, make your buttons hyperlinks (keep the class names the same so they still look like buttons). Then you can just update the href= value for the twitter link every time someone clicks "Get Quote"

For example, with this HTML:

<a id="tweetIt" class="btn btn-primary text-light">Tweet It</a>

Update the href with:

$("#tweetIt").attr("href", tweetUrl);
Do everything in your getJSON callback function so the data[0] is in scope
(be sure to add target="_blank" for codepen)