Skip to content

Instantly share code, notes, and snippets.

View nhuxhr's full-sized avatar
🎯
Focusing

Rapheal nhuxhr

🎯
Focusing
View GitHub Profile
@heapwolf
heapwolf / realtime.js
Created January 27, 2024 15:41
socket runtime realtime demo
import { network, Encryption } from 'socket:network'
import process from 'socket:process'
import Buffer from 'socket:buffer'
import fs from 'socket:fs'
window.onload = async () => {
const peerId = await Encryption.createId()
const signingKeys = await Encryption.createKeyPair()
const clusterId = await Encryption.createClusterId('asdfasdfasdfasdfas') // change this!
@jeduan
jeduan / index.mjs
Last active June 2, 2024 17:31
Anchor.build.js
import BN from 'bn.js';
export { default as BN } from 'bn.js';
import { sendAndConfirmRawTransaction, PublicKey, Transaction, TransactionInstruction, SystemProgram } from '@solana/web3.js';
import * as web3_js from '@solana/web3.js';
export { web3_js as web3 };
import { Buffer } from 'buffer';
import camelCase from 'camelcase';
import * as borsh from '@project-serum/borsh';
import bs58$1 from 'bs58';
import { sha256 as sha256$1 } from 'js-sha256';
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active June 29, 2024 22:33
Conventional Commits Cheatsheet

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default