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 and run: gcc -o Mikas t.c -lsdl2 && ./Mikas | |
| // | |
| #include <stdio.h> | |
| #include <stdbool.h> | |
| #include <SDL2/SDL.h> | |
| #include <stdlib.h> | |
| #define WINDOW_WIDTH 800 | |
| #define WINDOW_HEIGHT 600 | |
| #define RECT_SIZE 64 |
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
| import random | |
| import pygame | |
| import sys | |
| import math | |
| FPS = 80 | |
| WINDOW_WIDTH = 800 | |
| WINDOW_HEIGHT = 600 | |
| NRECTS = 16 | |
| RECT_SIZE = 64 |
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
| open Sqlite3 | |
| let result = ref [] | |
| let sqls = | |
| ["select id || ' ' || name || ' ' || address from x"; "select id from x"] | |
| let _ = | |
| let db = db_open "t" in | |
| sqls |
NewerOlder