Skip to content

Instantly share code, notes, and snippets.

View bobmagicii's full-sized avatar
🤌

Bob Magic II bobmagicii

🤌
View GitHub Profile
@bobmagicii
bobmagicii / custom-synthwave84-padparadscha.css
Created October 14, 2024 18:34
custom-synthwave84-padparadscha.css
/*** Synthwave '84 - Padparadscha Edition **************************************
**** bobmagicii [https://github.com/bobmagicii] I******************************/
/***
**** note that this is tuned for PHP not all languages have been audited for
**** sanity or completion
***/
:root {
<?php
$GetValueCSS = (fn(?string $Input)=> match(TRUE) {
(str_starts_with($Input, '--'))
=> sprintf('var(%s)', $Input),
(!!preg_match('/^[0-9a-fA-F]{6,8}/', $Input))
=> sprintf('#%s', $Input),
default
{
"Atlantis Surface Area Objects": {
"scope": "php, html",
"prefix": "--atlantis-areadoc",
"body": [
"use Nether\\Atlantis;",
"use Nether\\Avenue;",
"use Nether\\Common;",
"use Nether\\Database;",
"use Nether\\Surface;",
{
"name": "Padparadscha Retro Terminal",
// a GoCoEdit (iPad) theme
// 2024-10-10 - bobmagicii
// based on my Synthwave Padparadscha for VS Code.
// based on Robb's Synthwave '84 for VS Code.
"defaults": {
<?php
class Container {
static protected
$Instance;
////////
static public function
@bobmagicii
bobmagicii / dp.php
Created May 17, 2024 04:59
quick wrapper for displayplacer on mac os
#!env php
<?php
// placed in ~/Local/bin, chmoded, with that added to PATH.
// requires: https://github.com/jakehilborn/displayplacer
// use `displayplacer list` to find your screen id and supported modes. then
// update the screen id and sizes to have what you want.
// $ dp <size>
@bobmagicii
bobmagicii / WT-RightClickEmptySpace.reg
Created November 6, 2023 21:26
These two Regedit files will add an Executable to your right click folders in Explorer. This example adds my portable install of Windows Terminal.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\Windows Terminal (Default)\command]
@="C:\\Apps\\WindowsTerminal\\WindowsTerminal.exe nt -d \"%V\""
@bobmagicii
bobmagicii / tools.code-snippets
Created July 11, 2023 19:03
VS Code Date Snippet
{
"The Date": {
"prefix": "--date",
"body": "$CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE"
},
"The Date, Quoted": {
"prefix": "--dateq",
"body": "'$CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE'"
},
@bobmagicii
bobmagicii / composer.json
Last active May 17, 2024 05:30
lulz with Aspectus\Terminal
{
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"preferred-install": {
"netherphp/*": "source",
"*": "dist"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
<?php
// php -S localhost:80 -t www www/index.php
$Root = dirname(__FILE__);
$Mime = NULL;
$File = match($_SERVER['REQUEST_URI']) {
'/' => "{$Root}/index.html",
default => "{$Root}{$_SERVER['REQUEST_URI']}"
};