Skip to content

Instantly share code, notes, and snippets.

View aindrajaya's full-sized avatar
馃幆
Focusing

Arista Indrajaya aindrajaya

馃幆
Focusing
View GitHub Profile
@aindrajaya
aindrajaya / README.md
Last active October 28, 2026 09:21
JSON vs TOON token benchmark on Nakama tool-result shapes (ahmadrosid/nakama)

JSON vs TOON on Nakama tool results

Token benchmark for ahmadrosid/nakama issue #2101

Compares JSON.stringify(result) (what packages/agent/src/chat.ts sends today) with @toon-format/toon encode(result). Search data is real rg output from the Nakama repo, shaped like packages/core/src/tools/ripgrep.ts returns it ({file, line, text}, 32k char cap). Tokenizer: o200k_base via gpt-tokenizer.

Run

git clone --depth 50 https://github.com/ahmadrosid/nakama.git
@aindrajaya
aindrajaya / list.md
Last active January 31, 2022 07:04
NFT Marketplace like OpenSea

Opensea Like Proejct

  1. Research (< 1 week)
    • Blockchain protocols ETH or Polygon or Binance (10-12 hours)
    • Tokenomics (8-12 hours)
  2. UI development (2 week)
    • UI development figma (10-16 hours)
    • Prototyping with flow (5-10 hours)
    • Slicing to react/nextjs (10-16 hours)
    • Simple Testing UI (not functional) (10-16 hours)
  3. Authentication (1 week)
@aindrajaya
aindrajaya / deploy-contract.s
Created January 30, 2022 21:37
Mastering Blockchain Development part 3
import '@nomiclabs/hardhat-ethers';
import {ethers} from "hardhat";
async function deploy(){
//1. Get the contract factory
const MyContract = await ethers.getContractFactory("HelloContract");
//2. It will create a json request, json-rpc request over to eth network, and the network will call a process to begin a transaction
const hello = await MyContract.deploy();
@aindrajaya
aindrajaya / hardhat.config.ts
Last active January 30, 2022 21:30
Mastering Blockchain Development part 2
import "@nomiclabs/hardhat-waffle";
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
//Change the code below
solidity: 0.8.10;
}
@aindrajaya
aindrajaya / HelloContract1.sol
Last active January 30, 2022 21:19
Medium Mastering Blockchain Part 1
//Code 1
pragma solidity ^0.8.0;

Mini Project Batch 11

Create a movie review apps, just like imdb. Server-Side and Client-Side is fully integrated.

Don't forget to clone repository from Gitlab for each platform (link repo below).

P.s: Please make a develop branch for each platform. Don't code in the master branch, and clean code plz, ok! All the best!

Features

  • Basic authentication using JWT
  • User able to create review