mkdir testcd testgit clone git@github.com:vielhuber/test.git .# clone empty repository- create
.gitignore,README.MD,index.html,index.md - follow
README.MD
cd test
| @view-transition { | |
| navigation: auto; | |
| } | |
| @keyframes fade-in { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| @keyframes fade-out { |
| 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 -ynpm install whatsapp-web.jsnpm install qrcode-terminalnode --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 |