Skip to content

Instantly share code, notes, and snippets.

@Detoo
Detoo / 0_reuse_code.js
Created December 21, 2013 02:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<!doctype html>
<html ng-app="Demo">
<head>
<meta charset="utf-8" />
<title>
Scope $watch() vs. $watchCollection() In AngularJS
</title>
<style type="text/css">
@Detoo
Detoo / boubou.js
Last active April 30, 2016 18:48 — forked from DingWeizhe/寶寶.js
新增line的功能
var fs = require('fs'),
http = require('http'),
https = require('https'),
express = require('express'),
bodyParser = require('body-parser'),
request = require('request'),
crypto = require('crypto'),
FBToken = '',
port = 443,
options = {
@Detoo
Detoo / API.md
Created January 30, 2017 22:14 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

042515ea370b273aacebb3f506be43ae79a37a17d50ec8ba6e01887e9de44c96baa0c7c20527c6aaf58e8b83f707a4939f8c65ed42ceb66dc5b8705a00a1d43eb0;c-darwin
@Detoo
Detoo / MinimumSpark.ipynb
Last active January 30, 2020 06:50
Minimum-Viable Spark Notebook using Jupyter+Almond
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am detoo on github.
  • I am detoo (https://keybase.io/detoo) on keybase.
  • I have a public key ASBeLva1mOIrx_KiuN5_dc3sWp5zLeRVgz9HrXVI_Dpizgo

To claim this, I am signing this object:

@Detoo
Detoo / run.ts
Created October 20, 2021 03:00
hardhat-fork account impersonating tx hash issue
import { ethers } from "ethers"
import simulationArr from "./simulationObj.json"
const clearingHouseProxy = "0x0f142b4df7f33655763b7ad4b3a2a0ef80dfb420"
// hardhat fork from rinkeby, block number : 9369746
async function start() {
const provider = new ethers.providers.JsonRpcProvider("http://127.0.0.1:8545")
for (const simulation of simulationArr) {