This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#reduce(function, sequence) | |
print reduce(lambda x, y: x+y, range(1,11)) | |
def red(funct, seq): | |
for x in seq: #do this for every x in this list | |
return funct(seq) # ovde ti je greska zbog toga sto ce ovaj return da vrati | |
# rezultat poziva funct(seq) vec na prvom elementu. Probaj da prvo napravis | |
# promenljivu u kojoj ces drzati rezultat. To ti je "akumulator". Dodatni hint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.netm.platform.auxiliary.backendbox.exception.BackendboxAccessException; | |
import net.netm.platform.auxiliary.backendbox.service.AvsService; | |
import net.netm.portals.tapestry.kino.services.PinValidator; | |
import net.netm.portals.tapestry.kino.services.impl.PinValidatorImpl | |
import spock.lang.Specification | |
class PinValidatorImplTest extends Specification{ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> | |
<script type="text/javascript"> | |
function toggleDiv(divId) { | |
$("#"+divId).toggle(); | |
} | |
</script> | |
<FONT COLOR="blue">Treba ti mrak da bi video svetlo</FONT> | |
<a href="javascript:$('#div1').toggle();">13</a> |