Skip to content

Instantly share code, notes, and snippets.

View adophilus's full-sized avatar
💭
Learning 🤓

Uchenna Ofoma adophilus

💭
Learning 🤓
View GitHub Profile
@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
@adophilus
adophilus / whkd.log
Created July 31, 2023 21:08
whkd log
e[5 qkomorebic toggle-monocle
komorebic toggle-monocle
komorebic focus-workspace 3
komorebic focus-workspace 4
komorebic manage
komorebic manage
komorebic focus-workspace 0
komorebic toggle-monocle
komorebic toggle-monocle
komorebic focus left
@adophilus
adophilus / init.lua
Created July 14, 2023 21:13
neovide/neovim config
if vim.g.neovide then
vim.o.cursorline = false
vim.o.guifont = "ComicShannsMono Nerd Font Mono:h9"
vim.g.neovide_transparency = 0.8
vim.g.neovide_floating_blur_amount_x = 2.0
vim.g.neovide_floating_blur_amount_y = 2.0
vim.g.neovide_scale_factor = 1
vim.g.gui_font_default_size = 12
vim.g.gui_font_size = vim.g.gui_font_default_size
vim.g.gui_font_face = "ComicShannsMono Nerd Font Mono"
@adophilus
adophilus / famasi-recurring-debits.md
Last active June 20, 2023 16:28
Famasi recurring debits documentation

This is the documentation for the recurring debits endpoint on Famasi API.

  • the endpoint is protected by a JWT authentication layer.
  • only users with admin level privileges can access this endpoint.
  • the endoint can be accessed by hitting up /admin/user-plans/due.
  • upon hitting up the endpoint, it would return user plans in the following format:
{
    "statusCode": 200,
    "responseMessage": "",
    "data": {
COURSE TYPE PRICE
ENG 224 manual 1500
ENG 206 workbook 1500
ENG 224 textbook 2500
ENG 224 workbook 1500
MTH 202 manual 1500
ENG 208 workbook 1500
ENG 226 workbook 2000
ENG 214 workbook 1500
EEE 202 workbook 1500
# this is a ps1 script, so you can actually just copy the entire contents
# of this gist and paste it into powershell (and press enter) and it should
# work.
# NOTE: # signifies comments
# install powershell from the microsoft store
# use this command to install wezterm
scoop install wezterm
local wezterm = require('wezterm')
local default_prog = { 'C:\\Windows\\System32\\cmd.exe' }
-- local default_prog = { 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe' }
-- local default_prog = { 'C:\\Program Files\\WindowsApps\\Microsoft.PowerShell_7.3.3.0_x64__8wekyb3d8bbwe\\pwsh.exe' }
-- local default_prog = { 'C:\\Users\\hp\\AppData\\Local\\Microsoft\\WindowsApps\\pwsh.exe' }
return {
default_prog = default_prog,
use_fancy_tab_bar = true,
@adophilus
adophilus / drop-all-tables-postgres.sql
Created May 7, 2023 09:04
An SQL script to drop all tables in the current schema (for postgres db)
DO $$ DECLARE
r RECORD;
BEGIN
FOR r IN (SELECT tablename FROM pg_tables WHERE schemaname = current_schema()) LOOP
EXECUTE 'DROP TABLE ' || quote_ident(r.tablename) || ' CASCADE';
END LOOP;
END $$;
@adophilus
adophilus / wezterm.lua
Created April 28, 2023 21:52
my wezterm config
local wezterm = require('wezterm')
-- local default_prog = { 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe' }
local default_prog = { 'C:\\Program Files\\WindowsApps\\Microsoft.PowerShell_7.3.3.0_x64__8wekyb3d8bbwe\\pwsh.exe' }
return {
default_prog = default_prog,
use_fancy_tab_bar = true,
window_decorations = 'NONE',
-- font = wezterm.font('Fira Code', { weight = 'Regular' }),
const std = @import("std");
const math = std.math;
const rand = std.rand;
const time = std.time;
// const POPULATION_SIZE = 10;
// const MAX_NUMBER_OF_GENERATIONS = 1500;
const MAX_NUMBER_OF_GENERATIONS = 100000;
const POPULATION_SIZE = 1000;