Skip to content

Instantly share code, notes, and snippets.

View 0xhaz's full-sized avatar

0xhaz 0xhaz

View GitHub Profile
use anchor_lang::prelude::*;
use anchor_spl::token::{self, Mint, Token, TokenAccount, Transfer};
use std::mem::size_of;
pub mod error;
use error::*;
pub mod constants;
use constants::*;
declare_id!("9ZmxLBeqLtxzJ2TRg5YdniyCcVuauB3aL3oTVBBK4Z4K");
@dabit3
dabit3 / demoday.md
Last active March 21, 2025 17:33
How to Give a Killer Pitch or Hackathon Demo
@claraj
claraj / git_submodule_fix.md
Last active May 21, 2025 07:57
Fixing git submodule AKA git repo inside another git repo

Problem, and symptoms:

You experience one or more of these symptoms

  • you have code in a directory but it's not being pushed to GitHub. You just see an empty directory icon
  • you see this message when you add code to your git repository from the command prompt
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.