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
class Color: | |
def __init__(self): | |
pass | |
def __getattr__(self, name): | |
if name is 'saturation': | |
# Warn user of hls / saturation | |
saturation_warning = 'Color.saturation is ambiguous. Use Color.hls_saturation or Color.hsv_saturation' | |
raise AttributeError(saturation_warning) | |
else: |
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
.data | |
Input: | |
.ascii "89\0" | |
NewlineString: | |
.ascii "\n\0" | |
TestString: | |
.ascii "Some string\n\0" |
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
// Building (on x86): | |
// | |
// arm-linux-gnueabi-as -o strtoi-add-argv.o strtoi-add-argv.s | |
// arm-linux-gnueabi-ld -o strtoi-add-argv strtoi-add-argv.o | |
// | |
// Running: | |
// qemu-arm strtoi-add-argv 100 23; echo $? | |
// | |
.data |