See the new site: https://postgresisenough.dev
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
| """ | |
| Regular expressions for matching emoji sequences. | |
| For parsing single emoji, use either | |
| re.match(EMOJI_SEQUENCE, string) | |
| # or | |
| EMOJI_REGEXP.match(string) | |
| To match multiple emojis or custom patterns, insert `EMOJI_SEQUENCE` into pattern: |
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
| #ifdef GL_ES | |
| precision highp float; | |
| #endif | |
| uniform sampler2D u_texture_0; | |
| uniform vec2 u_resolution; | |
| uniform float u_time; | |
| const float PI = 3.14159265358979323846264; |
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
| with import <nixpkgs> { }; | |
| pkgs.mkShell rec { | |
| venvDir = "./.venv"; | |
| buildInputs = [ | |
| # Defines a python + set of packages. | |
| (python3.withPackages (ps: with python3Packages; [ | |
| jupyter | |
| ipython | |
| ipykernel |
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
| { config, lib, ... }: | |
| let | |
| serviceName = "paperless-ngx"; | |
| redisBroker = "${serviceName}-broker"; | |
| webServer = "${serviceName}-webserver"; | |
| gotenberg = "${serviceName}-gotenberg"; | |
| tika = "${serviceName}-tika"; | |
| port = "8000"; | |
| domain = "paperless.example.org"; | |
| url = "https://${domain}"; |
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
| package main | |
| /* | |
| #cgo CFLAGS: -I/usr/include/python3.8 | |
| #cgo LDFLAGS: -lpython3.8 | |
| #include <Python.h> | |
| */ | |
| import "C" | |
| import ( |
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
| #![warn(rust_2018_idioms)] | |
| use tokio::io::{AsyncReadExt, AsyncWriteExt}; | |
| use tokio::net::TcpListener; | |
| use std::env; | |
| use std::error::Error; | |
| #[tokio::main] | |
| async fn main() -> Result<(), Box<dyn Error>> { |