+++ title = "API" weight = 110 template = "page-api.html" aliases = [ "/api" ] +++
{{ api_listing_entry(fn_name="decode", namespace="base64", doc="```phel (decode s & [strict?])
| (--> | |
| id "2141" | |
| op "eval" | |
| session "e7d54de60c395159029a632e1196ef43" | |
| time-stamp "2026-04-28 13:10:03.659734210" | |
| code "(binding [*x* nil] (= (test-fn) nil))" | |
| column 17 | |
| file "*scratch*" | |
| line 32 |
| ~~~~~~~~~~ | |
| Error in 'validator-fn > always-falsey validator can't initialize atom' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6) | |
| Test: (thrown? (atom {} :validator (constantly nil))) | |
| threw exception: InvalidArgumentException | |
| ~~~~~~~~~~ | |
| Error in 'validator-fn > always-falsey validator can't initialize atom' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6) | |
| Test: (thrown? (atom {} :validator (constantly false))) | |
| threw exception: InvalidArgumentException |
| Stack trace: | |
| #0 /tmp/phel/cache/compiled/phel_core.php(13497): Phel\Lang\AbstractFn@anonymous->{closure:Phel\Lang\AbstractFn@anonymous() | |
| #1 /tmp/phel/cache/compiled/phel_core.php(14273): Phel\Lang\AbstractFn@anonymous->__invoke() | |
| #2 /tmp/phel/cache/compiled/phel_core.php(9003): Phel\Lang\AbstractFn@anonymous->__invoke() | |
| #3 /tmp/phel/cache/compiled/phel_core.php(9000): Phel\Lang\AbstractFn@anonymous->__invoke() | |
| #4 /tmp/phel/cache/compiled/phel_core.php(6245): Phel\Lang\AbstractFn@anonymous->__invoke() | |
| #5 /tmp/phel/cache/compiled/phel_test.php(422): Phel\Lang\AbstractFn@anonymous->__invoke() | |
| #6 /tmp/phel/cache/compiled/phel_test.php(468): Phel\Lang\AbstractFn@anonymous->__invoke() | |
| #7 /tmp/phel/cache/compiled/clojure_core-test_assoc-bang.php(3680): Phel\Lang\AbstractFn@anonymous->__invoke() | |
| #8 /tmp/phel/cache/compiled/phel_test.php(2014): Phel\Lang\AbstractFn@anonymous->__invoke() |
| (ns seo-tools\google-parser | |
| (:require phel\trace :refer [dbg]) | |
| (:use \DOMDocument) | |
| (:use \DOMXPath) | |
| (:use Dom\XPath) | |
| (:use Dom\HTMLDocument)) | |
| (php/libxml_use_internal_errors true) | |
| ;; TODO update with try catch as parse-search-page |
| #!/usr/bin/env bash | |
| # Senging expected message: | |
| # dbus-send --session --type=signal /org/example/Test org.example.Test.TestSignal | |
| set -euo pipefail | |
| # Match the precise signal we’re interested in. | |
| MATCH="type='signal',interface='org.example.Test',member='TestSignal'" |
| # Author: Jarkko Saltiola | |
| # License: BSD-3 | |
| # | |
| # Convert TSV time-series to SRT subtitles or burn overlays into a video aligned to --video-start. | |
| # | |
| # Also supports a real-time rolling plot overlay of selected columns via --plot-columns. | |
| # | |
| ## Example input TSV data format: | |
| # id timestamp device_id p1 p2 p3 w1 w2 w3 w-total | |
| # 53285 2025-09-14 13:01:12 1 3.6 3.61 3.73 828 830.3 857.9 2516.2 |
+++ title = "API" weight = 110 template = "page-api.html" aliases = [ "/api" ] +++
{{ api_listing_entry(fn_name="decode", namespace="base64", doc="```phel (decode s & [strict?])
| <?php | |
| // Example for https://github.com/jasalt/twig-templating-block (2025-08-15 714be3a) | |
| // Example template | |
| // <div class="favourited-videos {{ editor_classes }}"> | |
| // {% if videos %} | |
| // {% for video in videos %} | |
| // {{ include_template_part('cpt-video-card', video.id) }} | |
| // {% endfor %} |
| #!/usr/bin/env php | |
| <?php | |
| // PHP script `vendor-to-json` that is run on composer project root and traverses through folders in `./vendor/` storing each file handle into nested associative array in format required by PHP-WASM files constructor parameter (and data-files attribute). Ignores folders. | |
| // As of 2025-05-16 requires modified PhpBase.js with support to create missing dirs (Draft PR https://github.com/seanmorris/php-wasm/pull/82) | |
| // Usage: | |
| // ./vendor-to-json.php [prefix] | |
| // | |
| // Parameters: |
| #!/bin/bash | |
| input_image="full.jpg" | |
| output_prefix="part_" | |
| max_width=3840 | |
| max_height=2160 | |
| aspect_ratio=$(bc -l <<< "$max_width / $max_height") | |
| # Get image dimensions | |
| dimensions=$(identify -ping -format "%w %h" "$input_image") |