Skip to content

Instantly share code, notes, and snippets.

View athallarizky's full-sized avatar
😼

Athalla Rizky athallarizky

😼
View GitHub Profile
@athallarizky
athallarizky / GUIDE.md
Last active July 12, 2026 17:03
athallarizky-agentic-workflow

AI Workflow Template

How to run a software project with an AI agent — from PRD to production. Use this as a starting point for any project.


1. The Workflow (Phases)

@athallarizky
athallarizky / useWallet.ts
Created August 18, 2024 11:51
useWallet.ts
import React, { useCallback, useMemo, useEffect, useState } from 'react';
import { useAccount, useDisconnect, useSignMessage } from 'wagmi';
import useFetch from 'use-http';
// Zustand Store
import { useStore, useWeb3AuthStore } from 'store';
// Helper
import { encryptWallet } from 'utils/helper';
import { useToken } from './useHttp';
interface WalletContextObject {
export default function useFetchProductSubmissionTrend() {
const [dataSeriesTrend, setDataSeriesTrend] = useState([]);
const [selectedProductId, setSelectedProductId] = useState([]);
const [dataSeriesHexCode, setDataSeriesHexCode] = useState([]);
const [productList, setProductList] = useState([]);
const [filterValue, setFilterValue] = useState({
@athallarizky
athallarizky / example-response-chart.json
Created July 21, 2024 12:17
example-response-chart
{
"responseCode": "0200",
"responseMessage": "Success",
"data": [
{
"id": "a5801db4-306d-4b83-94e0-7ca21a6c995e",
"name": "Product Name",
"trends": [
0,
0,