Skip to content

Instantly share code, notes, and snippets.

View jdkanani's full-sized avatar
🎯
Focusing

Jaynti Kanani jdkanani

🎯
Focusing
View GitHub Profile
@jdkanani
jdkanani / agent loop
Created March 11, 2025 07:33 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
#!/bin/bash
set -e
set -x
cog run -e PORT=5001 python -m cog.server.http
# docker run -p 5001:5000 cog-test python -m cog.server.http

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@jdkanani
jdkanani / CrossTransfer.sol
Last active November 30, 2021 06:23
Cross PoS Portal ERC20 token transfer from Polygon PoS chain to Ethereum chain through contract
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.9;
interface IERC20 {
function withdraw(uint256 amount) external payable;
function transfer(address to, uint256 value) external returns (bool);
function balanceOf(address who) external view returns (uint256);
}
interface IRootChainManager {
@jdkanani
jdkanani / 1_Storage.sol
Created February 12, 2021 09:11
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.9+commit.c68bc34e.js&optimize=false&runs=200&gist=
pragma solidity >=0.4.22 <0.7.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
*/
contract Storage {
uint256 number;
pragma solidity 0.5.9;
contract DepositTest {
event Deposit(
address rootToken,
address user,
uint256 amountOrTokenId,
uint256 depositCount
);
#!/bin/bash
set -e
VERSION="1.15.5"
[ -z "$GOROOT" ] && GOROOT="$HOME/.go"
[ -z "$GOPATH" ] && GOPATH="$HOME/go"
OS="$(uname -s)"
ARCH="$(uname -m)"
name: Docker Image CI
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
name: Docker Image CI
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
package main
import (
"encoding/hex"
"fmt"
"github.com/maticnetwork/heimdall/bor"
"github.com/maticnetwork/heimdall/helper"
)