Skip to content

Instantly share code, notes, and snippets.

View adophilus's full-sized avatar
💭
Learning 🤓

Adophilus adophilus

💭
Learning 🤓
View GitHub Profile
@adophilus
adophilus / sqlx-query-as-json-sqlite.md
Created October 6, 2026 15:57
sqlx query_as! with JSON columns: Postgres habits vs SQLite reality

sqlx query_as! with JSON columns: Postgres habits vs SQLite reality

Notes from porting a paginated-query pattern from a Postgres project to SQLite (sqlx 0.8.x). The query assembled its response shape — an items array plus a meta object — inside SQL, then tried to map it with query_as!. It worked on pg. On SQLite it failed in ways that took three iterations to fully understand.

TL;DR

  • query_as! never deserializes. It expands to a struct literal whose
{"name":"FlashLab Control Token","symbol":"FLCT","description":"Research control token for the crypto-flashing experiment — deliberately NOT impersonating any major asset. One-variable control: identical architecture, supply, and pool parameters to the experimental arm; only name/symbol/metadata differ.","image":"https://gist.githubusercontent.com/adophilus/e890b85da0ef7d8546580dd609121393/raw/logo.svg","external_url":"https://github.com/adophilus/crypto-flashing"}
@adophilus
adophilus / hackathons-2026.md
Last active October 3, 2026 07:54
Winnable Hackathons — research for @adophilus (Oct 2026)

Winnable Hackathons — Research for @adophilus

Compiled Oct 3, 2026 · source: dev.events — IT hackathons accessible from Nigeria, each event checked against its official page · profile: TS fullstack, Rust, Web3, payments

Of 36 listed events, 18 are open to a non-student in Nigeria. The rest are students-only, region-locked, or closed (see bottom).

Top picks (open now)

# Event Prize What to build Deadline
1 PayPal AI Hackathon (Devpost) $67.5k+ (1st $12k) AI app that meaningfully integrates ≥1 PayPal technology. Public OSS repo + <3 min video Nov 12
545827863
@adophilus
adophilus / Crowdfund.sol
Created March 30, 2024 20:46
A basic crowdfunding smart contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
// AGENDA
// Develop a crowdfund smart contract
// Adhere to best practices
// Transfer & withdrawal support
// Support for locked deposits
// Support for pull out window
// Multiple/concurrent funding
@adophilus
adophilus / flutter.md
Created August 23, 2023 14:41 — forked from jb0gie/flutter.md
Flutter Cheatsheet

Flutter

A quick cheatsheet of useful snippet for Flutter

Widget

A widget is the basic type of controller in Flutter Material. There are two type of basic Widget we can extend our classes: StatefulWidget or StatelessWidget.

Stateful

StatefulWidget are all the widget that interally have a dynamic value that can change during usage. It can receive an input value in the constructor or reference to functions. You need to create two classes like:

@adophilus
adophilus / alpine_edge_testing_tag.md
Created August 13, 2023 06:26
Enabling installation of packages from the edge/testing repo in Alpine Linux

Add the following line of code to /etc/apk/repositories to enable the @testing tag to install packages from the edge/testing repo

@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing
@adophilus
adophilus / komorebi.log
Created July 31, 2023 21:10
komorebi log
2023-07-31T20:29:10.914426Z  INFO komorebi: creating window manager from static configuration file: C:\Users\hp\.config\komorebi\komorebi.json
2023-07-31T20:29:10.922855Z  INFO init: komorebi::window_manager: initialising
2023-07-31T20:29:10.991718Z  INFO komorebi::process_command: listening on komorebi.sock
2023-07-31T20:29:10.992115Z  INFO komorebi::process_event: listening
2023-07-31T20:29:19.837998Z  INFO process_command{FocusWorkspaceNumber(0)}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor
2023-07-31T20:29:19.838078Z  INFO process_command{FocusWorkspaceNumber(0)}:focus_workspace{idx=0}: komorebi::window_manager: focusi