Skip to content

Instantly share code, notes, and snippets.

@banderlog
banderlog / get_dataset_from_AWS_dataexchange_via_signedurls.py
Created November 10, 2020 14:54
Download dataset from AWS dataexchange via signedurls
#!/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
"""
;; fibonacci.asm ;;
;; print fibonacci numbers up to 1000000000 ;;
global _start
section .bss
array2 resb 512 ;for converted output
section .text
;; array.asm ;;
;;
global _start
section .bss
array resb 256
array2 resb 8
section .text
;; 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
@banderlog
banderlog / snake.pas
Created February 28, 2017 08:46
Snake game on Pascal
{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}