Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 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
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
Stephen James
@sjames1958gm
@lestairon
If you set variable units to match "C" or "F"
$("$cof").text(units)
Adel
@AdelMahjoub
@Deepak2322 group 1 is the first 4 digits group 2 is the last 2 digits
const regex = /([0-9]{4})([0-9]{2})/g;
    const str = `201709`;
    let m;

    while ((m = regex.exec(str)) !== null) {
        // This is necessary to avoid infinite loops with zero-width matches
        if (m.index === regex.lastIndex) {
            regex.lastIndex++;
        }

        // The result can be accessed through the `m`-variable.
        m.forEach((match, groupIndex) => {
            console.log(`Found match, group ${groupIndex}: ${match}`);
        });
    }
Liam Docherty
@ldocherty1
@moT01 Yes exactly I was just messing around with that. I removed it. My point is that I'm not sure what to put there and if someone could tell me it would be very appreciated.
Please can someone scroll up and help me with my post if anyone is free?
Fernando
@lestairon
@sjames1958gm Like, how...?
Stephen James
@sjames1958gm
@lestairon I think I misunderstood your question.
you mean change the units, not just the C <> F
Fernando
@lestairon
Yeah
Stephen James
@sjames1958gm
@lestairon You can add a click handler to #cof and in there recalculate the temp and replace in the DOM.
You will need to put temperature value where it can be accessed by another click handler
Fernando
@lestairon

@sjames1958gm

$("#cof").on("click", function () {
            $("temp").html(data.main.temp * 9 / 5 + 32);

Shouldn't this work?

Stephen James
@sjames1958gm
@lestairon #temp
@lestairon Of course you'd probably want it to toggle. This only goes one way
Fernando
@lestairon
Yeah, i was thinking about that, but i still wanted to try
But is not even working 1 way
And #temp is the id of the element that i want to change
Stephen James
@sjames1958gm
@lestairon But you have "temp" not "#temp" in the code above
Fernando
@lestairon
Oh, true
stupid mistakes, lol
@sjames1958gm Thanks man, haha
CamperBot
@camperbot
lestairon sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8893 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Fernando
@lestairon
I wonder how many time will that happen
Nate Mallison
@NJM8
@lestairon forever. :smile:
Stephen James
@sjames1958gm
@lestairon :+1:
well I am into my 38th year of programming and it still happens
supercalifragilisticthisbesuchacodekid
@ICodedGod
Gday my good people
Pieter Stokkink
@forkerino
@sjames1958gm Congrats on passing 8888 points, I missed it!
supercalifragilisticthisbesuchacodekid
@ICodedGod
What're you guys up to
Stephen James
@sjames1958gm
@forkerino :)
@forkerino Thanks
CamperBot
@camperbot
sjames1958gm sends brownie points to @forkerino :sparkles: :thumbsup: :sparkles:
:star2: 2974 | @forkerino |http://www.freecodecamp.org/forkerino
Fernando
@lestairon
Woah
38 years programming
That's amazing
Kaz Baig
@kbaig
Most people here haven't even been breathing for 38 years, let alone programming
@sjames1958gm must be better at programming than we are at breathing then ;)
Fernando
@lestairon
Yeah haha
Stephen James
@sjames1958gm
@kbaig Nice :)
Fernando
@lestairon
You've been programming like my whole age times 2
Plus 4
Kaz Baig
@kbaig
@ICodedGod Still trying to build this reporting system in Wolfram Language
caused a heated argument amongst our devs lol
Stephen James
@sjames1958gm
@lestairon lol
Jorge
@flawedLogic506
whats happening fellow campers :D
how come you can no longer see the solutions to all of your submitted algos
Kaz Baig
@kbaig

@OrangeKulture If you go to your profile, you will find the explanation

Note: We have temporarily disabled viewing and sharing solutions, however they are safely stored in your profile. You can learn more about this here.

Jorge
@flawedLogic506
ahh shit, sry hehe .. noticed that after I asked
@kbaig thanks a lot !
CamperBot
@camperbot
orangekulture sends brownie points to @kbaig :sparkles: :thumbsup: :sparkles:
:cookie: 551 | @kbaig |http://www.freecodecamp.org/kbaig
Jorge
@flawedLogic506
brownies are back ??? niceee !