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
Christopher McCormack
@cmccormack
I'd also recommend making the player select static, as clicking then slightly moving the mouse causes the window to move instead of selecting the character
But these are all minor things, it looks good!
midnitedev101
@midnitedev101
Tested that out. Also, updated Firefox version to 60.0.2 and behavior is now similar to chrome's
Thank you! and thank you very much for helping me improve it!
Christopher McCormack
@cmccormack
@midnitedev101 no problem!
midnitedev101
@midnitedev101
For anyone else checking the project, I updated my changes in here: https://codepen.io/qwirkyrabbit/full/ZRBXqz/
Thank you!
Alexander R Bott
@Abott1222
@midnitedev101 that is legit!
richRocksCodeBlocks
@richRocksCodeBlocks
@midnitedev101 That's pretty sweet.
Daniel Simeonov
@dbsimeonov
Guys is there a way I can configure/edit a page for printable/downloadable file. For example - I want to create a grocery list, which to be displayed one way, and printable/downloadable with different styling. Lol hope you can understand what i'm trying
DarkxPunk
@DarkxPunk
@dbsimeonov Yes
@dbsimeonov Actually yes to printable not to downloadable.
@dbsimeonov At lease not without first converting to printable
Daniel Simeonov
@dbsimeonov
@DarkxPunk So can it be done with javascript ? About downloadable it might be possible after converting it to printable I think.
Bjorn van de Peut
@bjorno43
@midnitedev101 Very nice job! Finished the game and now I hate you! :laughing:
DarkxPunk
@DarkxPunk
@dbsimeonov Nope, you use CSS and @media print
Daniel Simeonov
@dbsimeonov
@DarkxPunk loool, did not know about that! Something new, thanks will read further !
DarkxPunk
@DarkxPunk
@dbsimeonov No problem. Bascially whatever is gonna convert it for download just apply the print style sheet first then convert and download
Daniel Simeonov
@dbsimeonov
Will try to do it once I build it :D Just one of those ideas before bed :D
Bjorn van de Peut
@bjorno43
@dbsimeonov You could also look at jsPDF: https://github.com/MrRio/jsPDF Which is generating PDF files with Javascript
Daniel Simeonov
@dbsimeonov
@bjorno43 Amazing, thanks ! @DarkxPunk
DarkxPunk
@DarkxPunk
@dbsimeonov Sleep well mate
Daniel Slatkin
@DSlatkin
Hey all. Someone who can help me with a css grid question? :smiley:
Trying to figure out how to make a grid template width be normally content-max of the column as long as it's less than 8em, otherwise it stays at 8em
Aymen
@AymenAlSalem
@DSlatkin you can use minmax(min,max) to define minimum and maximum column width.
here is a lesson from FCC youtube that helped me to fully understand CSS grid : https://www.youtube.com/watch?v=t6CBKf8K_Ac&t=28s
include*engine
@newtothat
what do you think about IT courses by google
Brad
@bradtaniguchi
@newtothat Do you want to learn IT stuff?
include*engine
@newtothat
@bradtaniguchi yes it helps to understand and going through history of technolgy and comparing tools that we had by than and what we have now
learning how computer works actually it helps me to understand .I mean everything you learn about computers.each skill helps to understand the other new ones easier and everything kinda starts to make sense
include*engine
@newtothat
or Learning IT stuff is like preperation for computer science. And computer science in english is more like for native englis speakers
midnitedev101
@midnitedev101
@bjorno43 , @Abott1222, @richRocksCodeBlocks Thanks guys!
mpmaan
@mpmaan
This program prints undefined. I don't know what's wrong. Can anybody help?
function checkCashRegister(price, cash, cid) {
  let hash = {
    "PENNY": 0.01,
    "NICKEL": 0.05,
    "DIME": 0.1,
    "QUARTER": 0.25,
    "ONE": 1,
    "FIVE": 5,
    "TEN": 10,
    "TWENTY": 20,
    "ONE HUNDRED": 100
  }
console.log(available(hash, cid));
}
function available(hash,cid){
  return cid.reduce((prev, curr)=>{
    prev += hash[curr[0]]*curr[1];
  },0);
}
checkCashRegister(19.5, 20, [["PENNY", 1.01], ["NICKEL", 2.05], ["DIME", 3.1], ["QUARTER", 4.25], ["ONE", 90], ["FIVE", 55], ["TEN", 20], ["TWENTY", 60], ["ONE HUNDRED", 100]]);
abraham anak agung
@padunk
@mpmaan you need to return inside your reduce function
mpmaan
@mpmaan
@padunk thanks
abraham anak agung
@padunk
@mpmaan np, if you want to calculate total in cid, you don't need hash
mpmaan
@mpmaan
i need to map "HUNDRED" to 100 then multiply it with available number of notes
second value in 1D arrays is the number of notes/coins
abraham anak agung
@padunk
@mpmaan i think the cid is like ONE HUNDRED, 100 means you have 1 ONE HUNDRED. TWENTY, 60 means you have 3 TWENTY notes
mpmaan
@mpmaan
lol..really..i need to check the problem statement
abraham anak agung
@padunk
yup :smile: so in total you have just about 300 something, not 11 thousand, that is too much
mpmaan
@mpmaan
i am unable to conclude that from the question
ok..got it
because for "PENNY" number of coins can't be fraction like 1.01
abraham anak agung
@padunk
@mpmaan PENNY is 0.01 notes so 1.01 will be 101 pennies
mpmaan
@mpmaan
yeah..now i need to modify a lot of code
Simon Cordova
@gbsimon87
Hey all! - was wondering if anyone could lend a quick hand
I've got an input, imagine a pinpad, and upon clicking a button, I only want to show the last digit on the input, but the previous digits must be an asterisk - any thoughts how to accomplish such a task?
mpmaan
@mpmaan
@gbsimon87 i don't understand what do you want to do? what do you mean by previous digits being asterick?