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
board2=['','','','','','','','','_'] | |
#####choose if x or 0 | |
positionlist=[] | |
first='X' | |
second='0' | |
print('{}|{}|{}\n{}|{}|{}\n{}|{}|{}'.format(*board2)) | |
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 random | |
counter=0 | |
heads = 0 | |
while counter < 100: | |
counter+=1 | |
counting = random.randint(1, 2) | |
if counting == 1: | |
heads += 1 |
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
cnt = 0 | |
while cnt < 100: | |
print("In da loop \n") | |
if cnt % 2 == 0: | |
print("In da loop as well\n") | |
print("In da loop, cnt = {}\n".format(cnt)) | |
cnt += 1 | |
print("After the loop\n") |
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
void set_array(int array[4]); | |
void set_int(int x); | |
//--------------------------- | |
int main(void) | |
{ | |
int a = 10; | |
int b[4] = {0, 1, 2, 3}; | |
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
TESTS/mbedmicro-mbed/attributes/attributes.c:182:MBED_DEPRECATED("this message should not be displayed") | |
TESTS/mbedmicro-mbed/attributes/attributes.c-183-void testDeprecatedUnused(); | |
TESTS/mbedmicro-mbed/attributes/attributes.c-184-void testDeprecatedUnused() { } | |
TESTS/mbedmicro-mbed/attributes/attributes.c-185- | |
TESTS/mbedmicro-mbed/attributes/attributes.c:186:MBED_DEPRECATED("this message should be displayed") | |
TESTS/mbedmicro-mbed/attributes/attributes.c-187-int testDeprecatedUsed(); | |
TESTS/mbedmicro-mbed/attributes/attributes.c-188-int testDeprecatedUsed() | |
TESTS/mbedmicro-mbed/attributes/attributes.c-189-{ | |
TESTS/mbedmicro-mbed/attributes/attributes.c-190- return 0; | |
TESTS/mbedmicro-mbed/attributes/attributes.c-191-} |
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
TESTS/mbedmicro-mbed/attributes/attributes.c:164:MBED_DEPRECATED("this message should not be displayed") | |
TESTS/mbedmicro-mbed/attributes/attributes.c-165-void testDeprecatedUnused(); | |
TESTS/mbedmicro-mbed/attributes/attributes.c-166-void testDeprecatedUnused() { } | |
TESTS/mbedmicro-mbed/attributes/attributes.c-167- | |
TESTS/mbedmicro-mbed/attributes/attributes.c:168:MBED_DEPRECATED("this message should be displayed") | |
TESTS/mbedmicro-mbed/attributes/attributes.c-169-int testDeprecatedUsed(); | |
TESTS/mbedmicro-mbed/attributes/attributes.c-170-int testDeprecatedUsed() | |
TESTS/mbedmicro-mbed/attributes/attributes.c-171-{ | |
TESTS/mbedmicro-mbed/attributes/attributes.c-172- return 0; | |
TESTS/mbedmicro-mbed/attributes/attributes.c-173-} |
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
; Example memory map/addresses | |
; ADDR SIZE DESC | |
; 0x00000000 1M SPI Flash (Or is it 2M?) | |
; 0x10000000 512K SRAM | |
; 0x30000000 1M SDRAM | |
LR_ROM 0x00000000 0x00100000 { ; Flash | |
ROM_SDRAM 0x30000000 0x00100000 { ; Bottom half of SDRAM for ROM | |
*.o (RESET, +First) | |
*(InRoot$$Sections) |
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
mbed test -v --run -m arch_pro -n features-feature_lwip-tests-mbedmicro-net-tcp_echo_parallel | |
[mbed] Working path "/Users/barsza01/devel/mbed/code/mbed-os" (program) | |
[mbed] Exec "mbedgt --test-spec /Users/barsza01/devel/mbed/code/mbed-os/BUILD/tests/arch_pro/GCC_ARM/test_spec.json -n features-feature_lwip-tests-mbedmicro-net-tcp_echo_parallel -V" in /Users/barsza01/devel/mbed/code/mbed-os | |
mbedgt: greentea test automation tool ver. 1.2.5 | |
mbedgt: test specification file '/Users/barsza01/devel/mbed/code/mbed-os/BUILD/tests/arch_pro/GCC_ARM/test_spec.json' (specified with --test-spec option) | |
mbedgt: using '/Users/barsza01/devel/mbed/code/mbed-os/BUILD/tests/arch_pro/GCC_ARM/test_spec.json' from current directory! | |
mbedgt: detecting connected mbed-enabled devices... | |
mbedgt: detected 1 device | |
+---------------+----------------------+-----------------------+---------------+--------------------------+ | |
| platform_name | platform_name_unique | serial_port | mount_point | target_id | |
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 project mbed-os-example-wifi (REALTEK_RTL8195AM, GCC_ARM) | |
Scan: . | |
Scan: FEATURE_BLE | |
Scan: FEATURE_COMMON_PAL | |
Scan: FEATURE_LWIP | |
Scan: FEATURE_UVISOR | |
Scan: FEATURE_ETHERNET_HOST | |
Scan: FEATURE_LOWPAN_BORDER_ROUTER | |
Scan: FEATURE_LOWPAN_HOST | |
Scan: FEATURE_LOWPAN_ROUTER |