Skip to content

Instantly share code, notes, and snippets.

View gikdev's full-sized avatar
💻
Working at work

Mohammad Mahdi Bahrami gikdev

💻
Working at work
View GitHub Profile
@gikdev
gikdev / techie-gibberish.ts
Created March 28, 2025 23:11
Techie gibberish to use in apps and make fun console times!
/**
* @license
* **techie-gibberish** - A library for generating absurd debug messages.
* Warning: May cause existential crises in junior developers.
*/
export const MESSAGES = {
error: [
"CRITICAL: Quantum syntax mismatch in the GPU's emotional resonance layer.",
"404: Soul not found. Check your life choices and retry.",
@gikdev
gikdev / authz.ts
Created March 28, 2025 23:09
Sample TS file for authorization
const ACTIONS = ["view" , "edit" , "remove" , "create"] as const
type Action = typeof ACTIONS[number]
const RESOURCES = ["post", "product"] as const
type Resource = typeof RESOURCES[number]
const makePermission = (action: Action, resource: Resource) => `${action}:${resource}`
const PERMISSIONS = {
viewer: [
@gikdev
gikdev / replacer.js.md
Created December 11, 2021 21:11
Replacer

In The Name Of God

Replacer

Replacer is a micro JS library that replaces a variable texts with it's value.
To use:

  1. Create an array
  2. Create an array for each variable
  3. In every array, we have two strings:
  • The first string is the variable name.