Example initial file: main_single_file.c.
Divided into several files:
main.ctypes.hspecial_functions.cspecial_functions.h
| -- Setting up database | |
| -- sudo -u posrgres | |
| CREATE USER my_user WITH PASSWORD '12356'; | |
| CREATE DATABASE db WITH OWNER='my_user'; | |
| -- sudo -u my_user psql db | |
| CREATE TABLE my_table( | |
| id int, | |
| name text, |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <link rel="stylesheet" href="styles.css" /> | |
| </head> | |
| <body> | |
| <div class="container"> |
| import SelectComp from "./selectcomp"; | |
| function App() { | |
| return <SelectComp />; | |
| } | |
| export default App; |
| # Sudoku solver from https://onestepcode.com/ | |
| from copy import deepcopy | |
| from typing import Callable | |
| import numpy as np | |
| def create_grid(puzzle_str: str) -> np.ndarray: | |
| """Create a 9x9 Sudoku grid from a string""" |
| from itertools import cycle | |
| from random import shuffle | |
| import numpy as np | |
| ### TODO: | |
| # - 2 player mode. | |
| # - Choose player/cpu token. | |
| class NoMove(Exception): |