Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • 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
  • 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
so if the array had a 0, it was a wall or something, and if it had a 1 it was a hallway
room whatever
like i said, that's probly not the best way to go
but, i dunno, it was what i was familiar with at the time
i feel u
thats what i did for game of life
the blocks are those also pngs?
yea, i think all the images are pngs
i had to do so gimp work with some of them
and i must have put another element in the <td> of the table for the items and stuff
cheap man's version of photoshot
Ben Hart
I seem to have broken codepen...
what did I do?
welp, fixed it enough for codepen to let me debug at least
you didn't ask much of a question for me to be able to help, but the twitchSort function wasn't closed
Ben Hart
yeah i figured that out
now on to my real question -- are there any good resources for figuring out promises on foreach loops? the more i read about promises and deferred objects the more confused i am
I dont have anything specific
i dont think promises are necessary for this project
nesting them in a forEach loop, im not sure about that
Ben Hart
oh, maybe someone sent me on a wild goose chase, how would you approach it?
the forEach loop should be enough by itself
Ben Hart
hmm, ok, well I was able to get back a bunch of objects, the problem is that the data seems to be scrambled when I put it through the operation make it HTML
specifically twitchers[i] seems to survive long enough to be passed into the ajax call, but turns into a single letter when i try to reference it in the success function - is there something weird going on with scope?)
im not seeing what you're seeing
but I think that twitchers variable next to the data in the success shouldn't be there
  $.each(twitchers, function(i){ 
        type: "GET",
        dataType: "jsonp",
        url: 'https://wind-bow.gomix.me/twitch-api/streams/'+twitchers[i],
        success: function(data){
Ben Hart
it was a scope issue, apparently I don't need to pass the twitchers variable into the anon function in the success. thanks
thanks @moT01
benjmhart sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:cookie: 873 | @mot01 |http://www.freecodecamp.com/mot01
Ben Hart
any idea why I'm only getting the online users returned now?
it's like failure to qualify for the IF is cancelling the rest of the operations
that is strange
not quite sure yet
Ben Hart
or is the object just getting overwritten by the next response
not sure what's happening
but if you change your if
to if(data.stream)
it works
you can't have a single = in an if statement like that
needs to be to two or three
Ben Hart
awesome, thanks so much!
Stephen Peters
Hey, I’m trying to integrate gulp functionality in my portfolio project, and I’m wondering if it’s okay to concat and minify font awesome css and bootstrap css together?