| AA | BB | CC |
|---|---|---|
| 1 | Kolommetje BB | CC dan maar |
| 2 | En BB op regel 2 | CC 22 omdat het kan. |
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
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
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
| ntfy: | |
| image: binwiederhier/ntfy | |
| container_name: ${PROJECT}-ntfy | |
| command: | |
| - serve | |
| environment: | |
| - TZ=UTC # optional: set desired timezone | |
| user: 1000:1000 # optional: replace with your own user/group or uid/gid | |
| # volumes: | |
| # - /var/cache/ntfy:/var/cache/ntfy |
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 os | |
| import time | |
| import re | |
| import subprocess | |
| from watchdog.observers import Observer | |
| from watchdog.events import FileSystemEventHandler | |
| def get_relative_path(path): | |
| return os.path.relpath(path) |
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
| create table deps_saved_ddl | |
| ( | |
| deps_id serial primary key, | |
| deps_view_schema varchar(255), | |
| deps_view_name varchar(255), | |
| deps_ddl_to_run text | |
| ); | |
| create or replace function deps_save_and_drop_dependencies(p_view_schema varchar, p_view_name varchar) returns void as | |
| $$ |
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
| {"menu": { | |
| "id": "file", | |
| "value": "File", | |
| "popup": { | |
| "menuitem": [ | |
| {"value": "New", "onclick": "CreateNewDoc()"}, | |
| {"value": "Open", "onclick": "OpenDoc()"}, | |
| {"value": "Close", "onclick": "CloseDoc()"} | |
| ] | |
| } |
I hereby claim:
- I am remcoboerma on github.
- I am rlboerma (https://keybase.io/rlboerma) on keybase.
- I have a public key ASCJVIwNFznwphcGvpJgzkVfA_mcFQxty1yst0g1vJ47UAo
To claim this, I am signing this object:
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
| from invoke import task | |
| @task | |
| def mp_up(ctx, omgeving, mp_name='dockers'): | |
| ctx.run(f'multipass exec {mp_name} -d {omgeving} ../.local/bin/invoke up', echo=True) | |
| @task | |
| def mp_remount(ctx, mp_name='dockers'): | |
| if mp_name == 'dockers': | |
| ctx.run(f'multipass unmount {mp_name}:', echo=True) |
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
| from microbit import i2c | |
| RTC_ADDR = 0x68 | |
| def bcd2bin(v): | |
| return v - 6 * (v >> 4) | |
| def bin2bcd(v): | |
| return v + 6 * (v // 10) |
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
| from pydal import DAL | |
| from voodoodal import DB, Table, Field, model | |
| import aiosqlite | |
| import asyncio | |
| # async sqlexecuter | |
| class SQLExecuter: | |
| def __init__(self, pydal_adapter, adb_executer): | |
| self.adb_executer = adb_executer | |
| self.adapter = pydal_adapter |
NewerOlder