Skip to content

Instantly share code, notes, and snippets.

View ZanzyTHEbar's full-sized avatar
👨‍💻
Doing the codes

DaOfficialWizard ZanzyTHEbar

👨‍💻
Doing the codes
View GitHub Profile

MISSION

Act as ExpertZacariahManager🧑‍🔧, a conductor of expert agents who have expertise in guiding Zacariah towards his personal and professional goals, leveraging his unique life experiences. Your expertise lies in personal development, sustainable technology, content creation, and integrating life's journey into success and abundance. You are well-versed in critical thinking, resilience, and the intersection of personal growth with technological innovation. Your job is to support Zacariah in accomplishing his goals by aligning with him, then calling upon an expert agent perfectly suited to the task by init:

Expert = "[emoji]: I am an expert in [role&domain]. I know [context]. I will reason step-by-step to determine the best course of action to achieve [goal]. I will use [tools(Vision, Web Browsing, Advanced Data Analysis, Actions, and/or DALL-E], [specific techniques] and [relevant frameworks] to help in this process.

Let's accomplish your goal by following these steps:

[3 reasoned steps]

MISSION

Act as HBATProcessMapExpert 🧩, a conductor of expert agents who combine the HBAT business strategy (Mark Cuban’s principles, cultural imperatives, operational focus) with process-mapping expertise. Your role is to help me:

  1. Identify and define critical processes within HBAT (e.g., from lead to happy customer).
  2. Create or refine process maps that make these “invisible assembly lines” visible and actionable.
  3. Facilitate ongoing improvement based on data, stakeholder insights, and HBAT’s strategic objectives of turning humidity into hope.

Expert = "[emoji]: I am an expert in [role & domain]. I know [context]. I will reason step-by-step to determine the best course of action to achieve [goal]. I will use [tools(Vision, Web Browsing, Advanced Data Analysis, Actions, and/or DALL-E], [specific techniques], and [relevant frameworks] to help in this process.

@ZanzyTHEbar
ZanzyTHEbar / Gateway.cpp
Last active September 16, 2024 11:01
ESPNow and Wifi simultaneously
// use ESP-NOW to do something based on a message from another device
// and also connect to WiFi to display a web page, deal with MQTT etc
// in this case just light an LED and get UNIX timestamp from an NTP server
// NOTE: WiFi router must be on Channel 1 for this simple version to work
// Compiled using Arduino 1.8.19, and ESP32 v2.0.2
// Compiled for board: ESP32 Dev Module
// (but running on an AI Thinker ESP-CAM since I have a bunch of them)
@ZanzyTHEbar
ZanzyTHEbar / api.tsx
Last active April 15, 2024 17:22
tauri_local_http_plugin.rs
import { removeFile, readTextFile, BaseDirectory, writeTextFile } from '@tauri-apps/api/fs'
import { getClient, ResponseType } from '@tauri-apps/api/http'
import { appConfigDir, join } from '@tauri-apps/api/path'
import { invoke, convertFileSrc } from '@tauri-apps/api/tauri'
import { createContext, useContext, createMemo, Accessor, type ParentComponent } from 'solid-js'
import { createStore, produce } from 'solid-js/store'
import { debug, error, trace, warn } from 'tauri-plugin-log-api'
import { download, upload } from 'tauri-plugin-upload-api'
import { useAppDeviceContext } from './device'
import { useAppNotificationsContext } from './notifications'
@ZanzyTHEbar
ZanzyTHEbar / logger.hpp
Created March 12, 2024 16:16
Logger using variadic templating
#pragma once
#include <algorithm>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <utilities/helpers.hpp>
class Logger {
public:
@ZanzyTHEbar
ZanzyTHEbar / error.txt
Created February 11, 2024 19:32
Room Schema Error
Expected:
TableInfo{
name='airports',
columns={
longitudeDeg=Column{name='longitudeDeg', type='REAL', affinity='4', notNull=true, primaryKeyPosition=0, defaultValue='undefined'},
elevationFt=Column{name='elevationFt', type='REAL', affinity='4', notNull=false, primaryKeyPosition=0, defaultValue='undefined'},
continent=Column{name='continent', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'},
isoRegion=Column{name='isoRegion', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'},
gpsCode=Column{name='gpsCode', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='undefined'},
keywords=Column{name='keywords', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='undefined'},
@ZanzyTHEbar
ZanzyTHEbar / index.css
Last active January 5, 2024 20:48
Solid-UI tailwindcss
@layer base {
/* This style is REQUIRED due to how kobalte handles focus-visible state */
* {
@apply outline-none [&[data-focus-visible]]:outline-white;
}
:root {
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;
import { createDraggable, transformStyle } from '@thisbeyond/solid-dnd'
import { JSXElement, createSignal, type ParentComponent, onMount } from 'solid-js'
import { TabsTrigger } from '@components/ui/tabs'
import { UITab, useAppContextUI } from '@context/ui'
/* Handle Dockable using solid-dnd */
const activeTabClasses = [
'tab-active',
'drop-shadow-2xl',
@ZanzyTHEbar
ZanzyTHEbar / resizer.tsx
Last active April 28, 2024 19:17
Resizing Component in SolidJS
import { throttle } from '@solid-primitives/scheduled'
import {
splitProps,
createSignal,
createEffect,
onCleanup,
JSXElement,
type Component,
type ComponentProps,
children,
@ZanzyTHEbar
ZanzyTHEbar / index.tsx
Created August 16, 2023 23:31
solid-dnd
import {
useDragDropContext,
DragDropProvider,
DragDropSensors,
DragOverlay,
SortableProvider,
createSortable,
closestCenter,
} from '@thisbeyond/solid-dnd'
import { For, JSXElement, createSignal } from 'solid-js'