Skip to content

Instantly share code, notes, and snippets.

@kaiquewdev
Created July 12, 2012 04:35
Show Gist options
  • Save kaiquewdev/3095759 to your computer and use it in GitHub Desktop.
Save kaiquewdev/3095759 to your computer and use it in GitHub Desktop.
Dojo
#!/usr/bin/env python
def cozimento( tempo_cozimento=0, a=0, b=0 ):
output = False
if tempo_cozimento and a and b:
if a > tempo_cozimento < b:
# Other stuff
tempo_minimo = min( a, b )
tempo_maximo = max( a, b )
tempo_processo = tempo_minimo - ( tempo_maximo - tempo_minimo )
output = ( tempo_processo == tempo_cozimento )
if tempo_cozimento == a and tempo_cozimento == b:
output = True
return output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment