This file contains hidden or 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 python3 | |
| import curses | |
| import time | |
| import random | |
| SNAKE_COLOR, FOOD_COLOR = 1, 2 | |
| UP, RIGHT, DOWN, LEFT = (0, -1), (1, 0), (0, 1), (-1, 0) | |
| INITIAL_LENGTH = 10 | |
| INITIAL_SPEED = 15 | |
| SPEED_INCREMENT = 0.5 |
This file contains hidden or 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
| # to compile: | |
| # gcc gaston.S -nostdlib -no-pie | |
| #define SYS_WRITE 1 | |
| #define SYS_OPEN 2 | |
| #define SYS_CLOSE 3 | |
| #define SYS_LSEEK 8 | |
| #define SYS_SENDFILE 40 | |
| #define SYS_SOCKET 41 | |
| #define SYS_ACCEPT 43 |
This file contains hidden or 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 python3 | |
| from random import randint | |
| size = 4 | |
| score = 0 | |
| grid = [[0 for i in range(size)] for i in range(size)] | |
| def display(grid): | |
| print() | |
| for i in range(size): |
This file contains hidden or 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 http://orteil.dashnet.org/randomgen/gens/names.txt | |
| $name : Classical piece title generator | |
| $author : Naïm Favier | |
| $description : Generates a random classical music title. | |
| $picture : http://i.imgur.com/YG6jDoC.png | |
| $amount : 1 | |
| $button : Compose! | |
| $form |
NewerOlder