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
{"name":"Godot","settings":"{\"settings\":\"{\\r\\n \\\"chat.disableAIFeatures\\\": true,\\r\\n \\\"workbench.activityBar.location\\\": \\\"top\\\",\\r\\n \\\"workbench.sideBar.location\\\": \\\"right\\\",\\r\\n \\\"workbench.colorTheme\\\": \\\"True Godot\\\",\\r\\n \\\"workbench.iconTheme\\\": \\\"material-icon-theme\\\",\\r\\n \\\"editor.fontFamily\\\": \\\"'JetBrains Mono', Consolas, 'Courier New', monospace\\\",\\r\\n \\\"workbench.editor.enablePreview\\\": false,\\r\\n \\\"editor.bracketPairColorization.enabled\\\": false\\r\\n}\"}","extensions":"[{\"identifier\":{\"id\":\"geequlim.godot-tools\",\"uuid\":\"bbcbb8de-2baf-455f-a458-d5a6f084cebb\"},\"displayName\":\"godot-tools\",\"applicationScoped\":false},{\"identifier\":{\"id\":\"mrpogofu.true-godot\",\"uuid\":\"4608fd77-afc0-4ad8-b8e4-b17cb4c6c17a\"},\"displayName\":\"True Godot Theme\",\"applicationScoped\":false},{\"identifier\":{\"id\":\"pkief.material-icon-theme\",\"uuid\":\"5db78037-f674-459f-a236-db622c427c5b\"},\"display
@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.