Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:33
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • May 10 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 25 17:12
    @mstellaluna banned @cmal
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:09
    thecodingaviator commented #31179
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:07
    thecodingaviator commented #31182
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator commented #31190
  • Apr 01 18:05
    thecodingaviator commented #31157
  • Apr 01 18:04

    thecodingaviator on master

    remove A (#31157) (compare)

  • Apr 01 18:04
    thecodingaviator closed #31157
  • Apr 01 18:04
    thecodingaviator closed #33788
  • Apr 01 18:04
    thecodingaviator commented #33788
  • Apr 01 18:02
    thecodingaviator closed #31059
  • Apr 01 18:02
    thecodingaviator commented #31059
Pieter Stokkink
@forkerino
@JLuboff yep
Jason Luboff
@JLuboff
Does it work with openweathermap? cross-origin stopped working with it
Pieter Stokkink
@forkerino
cross-origin.me was down a lot back when I did my projects and found this alternative.
it did
still does (had to check).
tam1r
@tam1r
hi, on chunky monkey I have an unclear problem
Pieter Stokkink
@forkerino
@evan17gr hahaha they have 2 languages, you can use a parameter for english.
tam1r
@tam1r
function chunkArrayInGroups(arr, size) {
var arr2=[];
var j=0;
var i=0;
var k=0;
var numOfGroups=0;
if(arr.length%size===0)
numOfGroups=arr.length/size;
else numOfGroups=arr.length/size+1;
while((i<numOfGroups)&&(j<arr.length))
{
if(j%size===0)
{
i++;
}
arr2[i].push=(arr[j]);
j++;
}
return arr2;
}
Pieter Stokkink
@forkerino
or just use russian quotes @evan17gr
tam1r
@tam1r
can anyone help?
Jason Luboff
@JLuboff
@forkerino It does indeed work! Sweet. My weather app works across browsers again haha
Evan Kalvis
@evan17gr
@forkerino ok ty i ll try
CamperBot
@camperbot
evan17gr sends brownie points to @forkerino :sparkles: :thumbsup: :sparkles:
:cookie: 543 | @forkerino |http://www.freecodecamp.com/forkerino
Ashraful Islam
@iashraful
@BrianCodes33 here is a layman's solution

function fearNotLetter(str) {

  var alphabets = 'abcdefghijklmnopqrstuvwxyz'.split('');
  var startFrom = alphabets.indexOf(str[0]);
  var missingChar;

  for(var i = 0, len = str.length; i < len; ++i) {
    if (str[i] !== alphabets[startFrom+i]) {
      missingChar = alphabets[startFrom+i];
      break;
    }
  }
  return missingChar;
}

fearNotLetter("abce");
^ seems to pass all tests
Pieter Stokkink
@forkerino
@evan17gr use &lang=en in your url.
tam1r
@tam1r
Hi can anyone help in chunky monkey http://pastebin.com/0DMUcg66
stevebhansen
@stevebhansen
I'm having some troubles with two of the tests from the exact change algorithm. My output isn't passing: [ [ "QUARTER", 0.5 ] ] Does my .5 need to be formatted as 0.50? Not sure how to do this unless I format as a string.
Pieter Stokkink
@forkerino
@iashraful @BrianCodes33 It really is a lot easier if you use the suggested methods in the instructions.
Ashraful Islam
@iashraful
@forkerino I think it'll be all confusing
the String.fromCharCode and str.charCodeAt looks all magicky
or so it did when I initially did that challenge
Pieter Stokkink
@forkerino
probably, but magic is cool, no?
tam1r
@tam1r
CHUNKYYYY MONKEYYYY HELPPPPPP DESPERATE http://pastebin.com/0DMUcg66
Pieter Stokkink
@forkerino
@5ubz3r0 your push command is not pushing the right thing in the right place
Evan Kalvis
@evan17gr
@forkerino so should i put that at the end of this var url="http://api.forismatic.com/api/jsonp/"; ???
tam1r
@tam1r
why?
i deleted the =, was a typo
Ashraful Islam
@iashraful
here, @forkerino endorsed and recommended way @BrianCodes33

function fearNotLetter(str) {
  var curr;
  var prev;
  var missing;

  for(var i = 1, len = str.length; i < len; ++i) {
    curr = str.charCodeAt(i);
    prev = str.charCodeAt(i-1);
    if (curr > prev+1) {
      missing = String.fromCharCode(prev+1);
      break;
    }
  }

  return missing;
}

fearNotLetter("abce");
Pieter Stokkink
@forkerino
@evan17gr you also need to specify a method... Check the site http://www.forismatic.com/en/api/
Ashraful Islam
@iashraful
@forkerino I think I used the jsonp method for forismatic
it gave me a lot of pain
for some reasons, forismatic doesn't have CORS support, but its a public api, very strange
Jason Luboff
@JLuboff
Have a good weekend all
Ashraful Islam
@iashraful
^ Likewise
Pieter Stokkink
@forkerino
@5ubz3r0 well, you push only 1 item in the result arr2, instead of an item the size of size, and you push it in a subarray of the result instead of the array itself.
Ashraful Islam
@iashraful
^ that sounded very complex @forkerino
Pieter Stokkink
@forkerino
well he's making it very complex.
Ashraful Islam
@iashraful
what is it?
let me at 'em
Pieter Stokkink
@forkerino
Ashraful Islam
@iashraful
@forkerino his help message was very SEO optimized
:smile:
Pieter Stokkink
@forkerino
indeed
Ashraful Islam
@iashraful
a lot of unnecessary if/else there
I think my eyes tried to run off
tam1r
@tam1r
mine?
Brian
@BrianCodes33
this isnt laymans, but thx anyway
tam1r
@tam1r
so how would you do it more simply? :)