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
{snake.pas} | |
{classic game: avoid your tail and walls, go for apples} | |
{TODO?: - if press key perpendicular to move + backwards - eats itself} | |
program SnakeGame; | |
uses crt; {ncurses analogue} | |
const | |
DelayDuration = 100; {movement delay} | |
TRIESNUM = 128; {umber of tries to find a free space} | |
MAXHEIGHT = 40; {heght of a game field} |
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
;; hello_2.asm ;; | |
;; prints 5 strings 'hello' with one syscall ;; | |
global _start ;should ALWAYS be global, or ld upsets | |
section .bss ;non-initialized but reserved memory | |
string resb 30 ;reserve 30 bytes | |
section .text ;executive code section | |
msg db "hello",10 ;our message + \r |
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
;; array.asm ;; | |
;; | |
global _start | |
section .bss | |
array resb 256 | |
array2 resb 8 | |
section .text |
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
;; fibonacci.asm ;; | |
;; print fibonacci numbers up to 1000000000 ;; | |
global _start | |
section .bss | |
array2 resb 512 ;for converted output | |
section .text |
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
#!/usr/bin/env python | |
""" | |
Download dataset from AWS dataexchange via signedurls | |
Docs on the matter: | |
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dataexchange.html#DataExchange.Client.create_job | |
For via bucket upproach look here: | |
https://github.com/aws-samples/aws-dataexchange-api-samples/blob/master/subscribers/python/download-entitled-assets/download-entitled-assets.py | |
""" |