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
Jeremy Roe
@jeremyroe
Would anyone have a moment to QA my weather zipline? http://codepen.io/jeremyroe/full/qbzVRO/
Maulik Darji
@maulikdarji
@jeremyroe nice :+1:
DJ
@qualitymanifest
@jeremyroe the temperature is about 14 degrees faherenheit low to me. but, that's just open weather map's inaccuracy. so i think it's fine. the only thing i might change is to make it more obvious how to switch between f and c
Jeremy Roe
@jeremyroe
Ok Thanks @qualitymanifest
CamperBot
@camperbot
jeremyroe sends brownie points to @qualitymanifest :sparkles: :thumbsup: :sparkles:
:star: 1010 | @qualitymanifest | http://www.freecodecamp.com/qualitymanifest
Jeremy Roe
@jeremyroe
Thanks also @maulikdarji
CamperBot
@camperbot
jeremyroe sends brownie points to @maulikdarji :sparkles: :thumbsup: :sparkles:
:star: 511 | @maulikdarji | http://www.freecodecamp.com/maulikdarji
Chris Davis
@chrisdav6
just noticed that you can use emmet features, same used in sublime text for code shortcuts in the editor. Sweet!
ul.class1>li*5 then press tab, produces...
<ul class="class1">
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
</ul>
Chris Davis
@chrisdav6

do you guys stagger your html, like this...

<a href="#">
    Some Link
</a>

<button class="btn">
    Like
</button>

or do you keep it inline?

<a href="#">Some Link</a>

<button class="btn">Like</button>
CodingwithGreenTea
@CodingwithGreenTea
I keep it inline if the content is short, otherwise I use line breaks
(Sorry for reposting; didn't get a response before) For the Twitch API, why is my array only printing the last array item inside the $.getJSON function?
 for (i = 0; i < streamers.length; i++) {
    var currentStreamer = streamers[i];
    console.log(currentStreamer); //prints list of all streamers

    $.getJSON(endpointURL + streamers[i], function(json) {
      var isStreaming = json.stream;
      console.log(currentStreamer); //prints list of only last streamer in array

      if (isStreaming) {
        var streamer = json.stream.channel.name,
          streamTitle = json.stream.channel.status,
          streamImage = json.image,
          game = json.stream.game;
          //do stuff
Joshua McKenzie
@mckenzieja
I've been looking over this for about an hour now. Cant seem to understand why it's not displaying. Any tips? Thanks
 if(navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
  var lat = position.coords.latitude;
  var lon = position.coords.longitude;
  loadWeather(lat,lon);
  });

 } else {
   document.getElementbyId("city").innerHTML = "Either you did not allow your browser to ping your location or this browser is not supported.";
    }
var loadWeather = function(lat,lon){
var api = "&APPID=7d764d9a5887edcac1258090cce472a8";
var apiurl = "http://api.openweathermap.org/data/2.5/weather&lat="+lat+"&lon="+lon+api;
  $.ajax({
    type: GET,
    url: apiurl,
    dataType: 'jsonp',
    success: function(json){
        $("#city").text(json.name);
    }
});
};
kirbyedy
@kirbyedy
could you link your pen
Joshua McKenzie
@mckenzieja
is my pen corrupted?
lol
Maulik Darji
@maulikdarji
@metaljacke1 try checking the generated api url, by alert or printing it somewhere on the page
@metaljacke1 it returns invalid API key
{"cod":401, "message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."}
Joshua McKenzie
@mckenzieja
Well its the right api key according to openweather
maybe they blocked for a couple of mins since it's a free api?
Maulik Darji
@maulikdarji
try reseting the key
Joshua McKenzie
@mckenzieja
Ok I just reset and copy pasted
still nothing.
Im gonna call it a night.
3am here.
Thanks for trying @maulikdarji
CamperBot
@camperbot
metaljacke1 sends brownie points to @maulikdarji :sparkles: :thumbsup: :sparkles:
:star: 512 | @maulikdarji | http://www.freecodecamp.com/maulikdarji
anthonygallina1
@anthonygallina1
@metaljacke1 have you tried "lat"+"lon"+"api";
Bruce Young
@mutantspore
@metaljacke1 here is your error fixed. you had an & instead of a ? for the first of the parameters.
var apiurl = "http://api.openweathermap.org/data/2.5/weather?lat="+lat+"&lon="+lon+api;
it works now
Bruce Young
@mutantspore
@metaljacke1 however if you do it this way with the data listed out in an object, you don’t have to worrry about the & and ? as it’s done for you. See the fork of your pen below.
http://codepen.io/MutantSpore/pen/WwNJBP?editors=1010
anthonygallina1
@anthonygallina1
@mutantspore mine was wrong to but was try to lead in a direction @metaljacke1
@mutantspore I think he will do much better after he gets data thank you @mutantspore
CamperBot
@camperbot
anthonygallina1 sends brownie points to @mutantspore and @mutantspore :sparkles: :thumbsup: :sparkles:
:star: 1182 | @mutantspore | http://www.freecodecamp.com/mutantspore
:star: 1182 | @mutantspore | http://www.freecodecamp.com/mutantspore
Jesus Vega
@ParagonChuy
Can somebody help me with getting the Quote Generator to work?
Bruce Young
@mutantspore
@ParagonChuy go for it
Jesus Vega
@ParagonChuy
I'm trying to use the Quotes on Design API , but have little to no idea on how to parse the JSON data .
Bruce Young
@mutantspore
well did you get something back and then log it to the console console.log(data); so you can see the structure of it.
do you have a pen?
Jesus Vega
@ParagonChuy
I'm reading the documentation but I feel it is very vague
And I'm on Jsfiddle currently
Bruce Young
@mutantspore
well? i neeed to see something.. fiddle… docs?
Jesus Vega
@ParagonChuy
That's what I'm reading and trying to make sense of