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
# !!!!! | |
# VEJA A VERSÃO SIMPLIFICADA ABAIXO | |
# !!!!! | |
# Change these variables as necessary. | |
MAIN_PACKAGE_PATH := ./cmd/example | |
BINARY_NAME := example | |
# ==================================================================================== # | |
# HELPERS |
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
def make_adder(): | |
grand_total = 0 | |
def adder(to_add): | |
print "Grand total moved from: %s" % grand_total | |
grand_total += to_add | |
print "To: %s \n" % grand_total | |
return grand_total | |
return adder | |
adder = make_adder() |
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
#include <setjmp.h> | |
#include <stdio.h> | |
int | |
main(int argc, char *argv[]) | |
{ | |
jmp_buf jump; | |
int status = setjmp(jump); | |
puts("yes"); | |
longjmp(jump, status); |