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
Ian Gracia
@iangracia
someone wanna help me with my calc design?
i got a prob with an element
if you calc any equation, then press equals, the keypad doesnt relocate under the orange box
even tho the element thats in the way is empty
Miljan Grcic
@Nightimer
Guys help needed
Hafiz Mughees siddiqui
@Mughees605
@Nightimer what's the problem?
Miljan Grcic
@Nightimer
trying to upload pic
sec
Hafiz Mughees siddiqui
@Mughees605
@Nightimer so what's the problem
Miljan Grcic
@Nightimer
How can i get this
left column is 1 lone text, top right is img
\and below img is text
Hafiz Mughees siddiqui
@Mughees605
@Nightimer Do you want to upload image from you pc?
Miljan Grcic
@Nightimer
I uploaded it on link
Hafiz Mughees siddiqui
@Mughees605
@Nightimer then?
Kaz Baig
@kbaig
@Nightimer Cleanest way would be grid but could also be done with float + flex / just flex
CamperBot
@camperbot
kbaig sends brownie points to @iangracia :sparkles: :thumbsup: :sparkles:
:cookie: 360 | @iangracia |http://www.freecodecamp.com/iangracia
Kaz Baig
@kbaig
@iangracia your float is messing with it so you would need a clearfix if you want to keep using float
CamperBot
@camperbot
kbaig sends brownie points to @iangracia :sparkles: :thumbsup: :sparkles:
api offline
Kaz Baig
@kbaig
Center is not a valid value for float btw
Henry
@GitHub-Henry
@Nightimer you can learn about flexbox in a kind of fun way with this app
piteto
@piteto
@alteducation I'd try to use either all vanilla JS or all jQuery - pick one. Replace innerText with textContent. If you want to reduce the list of vars at the top, remove filterState and filterApproach at the beginning and just use states.value and approach.value and then combine aproachnode and statenode into titleState and titleApproach.
  var card = document.getElementsByClassName("card-parent");
  var titleState = Array.from(document.getElementsByClassName("space-state"));
  var titleApproach = Array.from(document.getElementsByClassName("space-approach"));
Ian Gracia
@iangracia

"Design a cash register drawer function checkCashRegister() that accepts purchase price as the first argument (price), payment as the second argument (cash), and cash-in-drawer (cid) as the third argument.

cid is a 2D array listing available currency.

Return the string "Insufficient Funds" if cash-in-drawer is less than the change due. Return the string "Closed" if cash-in-drawer is equal to the change due.

Otherwise, return change in coin and bills, sorted in highest to lowest order."

Test:

checkCashRegister(19.50, 20.00, [["PENNY", 0.01], ["NICKEL", 0], ["DIME", 0], ["QUARTER", 0], ["ONE", 1.00], ["FIVE", 0], ["TEN", 0], ["TWENTY", 0], ["ONE HUNDRED", 0]]) should return "Insufficient Funds"

Shouldn't the above test return 0.5?? and not "Insufficient Funds"

Gersho
@Gersho
no
because you don't have the change for it
["PENNY", 0.01], ["NICKEL", 0], ["DIME", 0], ["QUARTER", 0],
Ian Gracia
@iangracia
I have 1.01 dollar, no?
Gersho
@Gersho
you have a 1 dollar bill and a 1 cent coin
how do you give back 0.50 ?
Ian Gracia
@iangracia
okay
i understand
thanks @Gersho
CamperBot
@camperbot
iangracia sends brownie points to @gersho :sparkles: :thumbsup: :sparkles:
Gersho
@Gersho
it is a cash register, not a bank account ;)
CamperBot
@camperbot
:cookie: 535 | @gersho |http://www.freecodecamp.com/gersho
Ian Gracia
@iangracia
Yeah, my fault in logic :)
the whole challenge got ALOT harder all of a sudden :laughing:
Matej Bošnjak
@mbosnjak01
Hi. @mbosnjak01
Hi. Just a quick question about ng-repeat in Amgular JS, if anyone could answer me here (angularjs room isn't much active). Is it possible to repeat items from multiple scopes? (an array of scopes with indentical properties) ... for example <div ng-repeat ="item in arrayOfScopes"></div> ? - where array of scopes would be something like this: arrayOfScopes = [$scopeOne, $scopeTwo ... ] ? Is something like this possible?
I really don't want to have separate div element for each scope
Lean Junio
@leanjunio
@mbosnjak01 Can’t you make an object that has access to different properties?
…
$scope.object = {}


// later use

$scope.object.propertyOne;
$scope.object.propertyTwo;

instead of multiple scopes?
Matej Bošnjak
@mbosnjak01
@leanjunio How would I implement that in a single div element?
I mean, is it possible ...
Lean Junio
@leanjunio
@mbosnjak01 I see what you mean now
@mbosnjak01 well, give it a try, create 2 arrays within a scope object, and then ng-repeat them both using 2 divs