Where communities thrive


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

    thecodingaviator on master

    remove A (#31157) (compare)

  • Apr 01 2019 18:04
    thecodingaviator closed #31157
  • Apr 01 2019 18:04
    thecodingaviator closed #33788
Gersho
@Gersho
i did most of my learning skipping stuff, so i'm kinda at the part "let's do it properly this time"
artbohr
@artbohr
I'm going to other way now xD coz I was always like: I need to do every piece of it, then I find myself thinking I'm losing too much time on inefficient things
Gersho
@Gersho
well, i'll consider this part "learning to use stuff poorly designed"
artbohr
@artbohr
haha
Gersho
@Gersho
like the old Casio watch that had complicated input
artbohr
@artbohr
that was long ago :D in my school years
Albert Cardona II
@daddycardona
Hello everyone :) this Javascript project is angering me LOL but i think I need to start over in the coding section ;)
Kyle Holm
@thekholm80
@daddycardona you got this
Albert Cardona II
@daddycardona
@thekholm80 how do you get the math link you had work on codepen
Kyle Holm
@thekholm80
have you tried
switch (userInput) {
  case "1 + 1":
    return 2;
    break;
  case "1 + 2":
    return 3;
    break;
  ...
}
@daddycardona are you building this on codepen or locally?
Albert Cardona II
@daddycardona
no man not that I am talking about that link you sent me that helped with the mat
math
Kyle Holm
@thekholm80
you should be able to just Settings => Javascript => and then paste in https://cdnjs.cloudflare.com/ajax/libs/mathjs/3.10.0/math.min.js
Albert Cardona II
@daddycardona
I mean that math library to work on codepen
Gersho
@Gersho

@daddycardona you got this

wrong room :P

Kyle Holm
@thekholm80
i know, i was being a smart ass
Albert Cardona II
@daddycardona
lol
Gersho
@Gersho
load it in the html ?
hello btw
Albert Cardona II
@daddycardona
I think I have too because I was gettin a lot of errors on codepen when I did it kyles way by the way hey :)
Kyle Holm
@thekholm80
@daddycardona after you include the library it should be available as a variable called math
Albert Cardona II
@daddycardona
I am going to read upon it
Kyle Holm
@thekholm80
so you would have a string with all the input
var userInput = '1 + 2 * 4';  // don't hard-code this lol

// then let the library do it's work
var total = math.eval(userInput);  // 9
Gersho
@Gersho
Finally done with that stupid scratch thing
https://scratch.mit.edu/projects/197806607/
Kyle Holm
@thekholm80
@Gersho how come when it hits the side of the window it falls straight down?
Gersho
@Gersho
because for some reason bounce wasn't working for this and i was too lazy to make another random direction block
it's a feature
Kyle Holm
@thekholm80
ah, the old 'Apple Approach'
Albert Cardona II
@daddycardona
I don't get how to use that
I am trying to parse something with it and it basically is not working on there
Gersho
@Gersho
also after bouncing it falls like a rock, but no way i'm making some curved angle
link your pen ?
Kyle Holm
@thekholm80
@daddycardona i don't see where you're using that library in your code
also, i don't understand your code
Albert Cardona II
@daddycardona
refresh it
i might be doing it wrong LOL
Kyle Holm
@thekholm80
meaningful variable names are super useful, just sayin
Albert Cardona II
@daddycardona
I am just trying the switch statment and the 1through0 work fine lol
Gersho
@Gersho
always make code as if the person reading/maintaining it is a sociopath that knows where you live
Albert Cardona II
@daddycardona
I might have to start over
LOL I welcome the interaction if someone came to my place LOL
Gersho
@Gersho
you forgot the sociopath part
Albert Cardona II
@daddycardona
what I was trying to do is make variable temp store what is in the add variable for the moment lol
Oh so then there will be 2 sociopaths in the same building lol
Kyle Holm
@thekholm80
i had an array, and every button pressed would be pushed to the array and when the equals button was pressed I had math.js evaluate the joined array
with a little extra work you could have it evaluate after each operand is pressed
Gersho
@Gersho
well on a calculator it doesn't wait for = to start doing math
like 1+5+3+7+8