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;

sinocare三诺血糖仪说明书

产品型号: 金准型, 金准+, 金稳型, 金稳+, 金稳+Air, SG-103, SG-104

使用操作

时间、日期设置

注意: 1、时间、日期设置是一个附加功能。时间的设定与否,并不影响测试结果准确性,但准确的时间有利于您知道血糖测试的正确时间,方便对血糖的监控管理。

Keybase proof

I hereby claim:

  • I am agate on github.
  • I am agate (https://keybase.io/agate) on keybase.
  • I have a public key ASD8_l7OutI03S0YDfsPu9juE3e1bI_AiRDb9-UtUTdB0go

To claim this, I am signing this object:

@agate
agate / Dockerfile
Last active May 24, 2018 18:28
Phoenix Docker Dev Env
FROM elixir:1.6
RUN \
echo "===============================" && \
echo "Install Node" && \
echo "===============================" && \
curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
apt-get install -y nodejs && \
echo "===============================" && \
echo "Install Phoenix" && \
#!/usr/bin/env bash
while read p; do
echo $p | gron | ruby -r json -e "puts Hash[STDIN.readlines.map {|x| y = x.strip.sub(/;$/, '').split(/ = /); [y[0], JSON.parse(y[1])] }].to_json"
done
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<style>
html, body {
height: 100%
}
body {
#!/usr/bin/env bash
function colorize_echo() { echo -e "\033[0;${1}m${@:2}\033[0m"; }
function red_echo() { colorize_echo 31 $@; }
function green_echo() { colorize_echo 32 $@; }
function yellow_echo() { colorize_echo 33 $@; }
function blue_echo() { colorize_echo 34 $@; }
CURRENT_DIR="$(pwd)"
DIR_NAME=docker-ruby-bundle-test
@agate
agate / drawer.html
Last active December 22, 2015 10:16
<!DOCTYPE html>
<html ng-app="Drawer">
<head>
<meta charset="utf-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Drawer</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<style media="screen">
// ==UserScript==
// @name Github Issue Branch Name
// @namespace http://agate.github.com
// @version 0.1
// @description Auto generate feature branch with issue's title
// @author agate
// @match https://github.com/*/*/issues/*
// @grant none
// ==/UserScript==
@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