python -m venv venv
pip install ...
source venv/bin/activate
div { | |
height:100svh; /* fixed, no jumps */ | |
margin-bottom: calc(100lvh - 100svh); /* nice margin below, if nav is hidden */ | |
} |
<?php | |
$lock = fopen(sys_get_temp_dir() . '/' . md5(__FILE__) . '.lock', 'c'); | |
if (!flock($lock, LOCK_EX | LOCK_NB)) { | |
echo 'current script already running...'; | |
die(); | |
} | |
echo 'script running...'; | |
sleep(10); |
<?php | |
final class Test { | |
public function init() { | |
register_rest_route('v1', '/...', [ | |
/* ... */ | |
'callback' => function () { | |
// basic way | |
return new \WP_REST_Response([], 200); | |
// usage in inner functions | |
$this->fun1(); |
node --version
// >= 23npm init -y
npm install whatsapp-web.js
npm install qrcode-terminal
node --no-deprecation script.js
<IfModule mod_deflate.c> | |
SetEnv no-gzip 1 | |
</IfModule> |
import tiktoken | |
import torch | |
import torch.nn as nn | |
import urllib.request | |
import re | |
from torch.utils.data import Dataset, DataLoader | |
import numpy as np | |
import zipfile | |
import os | |
from pathlib import Path |
enum UserRole: string
{
case Admin = 'admin';
case Benutzer = 'user';
case Gast = 'guest';