Skip to content

Instantly share code, notes, and snippets.

View agate's full-sized avatar
🏠
Working from home @ Shanghai

Hao Hong agate

🏠
Working from home @ Shanghai
View GitHub Profile
@agate
agate / MyToken.sol
Created June 12, 2023 16:13 — forked from shobhitic/MyToken.sol
Merkletree Allowlist / Whitelist for NFT
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts@4.5.0/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts@4.5.0/access/Ownable.sol";
import "@openzeppelin/contracts@4.5.0/utils/Counters.sol";
import "@openzeppelin/contracts@4.5.0/utils/cryptography/MerkleProof.sol";
contract MyToken is ERC721, Ownable {
using Counters for Counters.Counter;
@agate
agate / README.md
Created November 23, 2015 12:12 — forked from janlay/README.md
Yet another config for Surge.app

Install

  1. Modify index.txt with your output path and proxy info
  2. Use Text Builder to build configuration for Surge: $ text-builder -index /path/to/index.txt
  3. Import configuration via AirDrop/iTunes/Dropbox/iCloud
@agate
agate / 4clojure-answers.md
Last active November 3, 2015 03:48 — forked from SegFaultAX/gist:3607101
4Clojure Answers
@agate
agate / zixuan.html
Last active August 29, 2015 14:05 — forked from mavericklou/zixuan.html
<!DOCTYPE html>
<html>
<head>
<title>Stocks</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<style type="text/css" media="screen">
.stock {
min-height: 273px;
padding: 0;
@agate
agate / vim.rb
Created June 23, 2011 15:32 — forked from uasi/vim.rb
Vim formula for Homebrew
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2'
head 'https://vim.googlecode.com/hg/'
sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d'
version '7.3.200'
def features; %w(tiny small normal big huge) end