Skip to content

Instantly share code, notes, and snippets.

Daniel Tsui sdtsui

Block or report user

Report or block sdtsui

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pubkey.gpg
-----BEGIN PGP PUBLIC KEY BLOCK-----
xsFNBFwu6ggBEACjXJaoZ7KGK90Rxj5tbZRjST0OYNOUbsin9OfB8gB9HFWA
0b1rbcyPpsmTGO/r0uuDsILPgRekPp+dR8pfmZ+kv39ZlzCOblp3rgEeqMta
cmE8vkExM1vQOklPN4rWuFZ1WhOZMjeAnvez/gjk5GUk/cHDskLbfBVKB1S4
xAyGFweF0+ov451mBe4w9MK66HrXlp4n7oaKQu+Gd06guftGeU5dN5eqawOG
4cXgkpaxl1tXAoU+5pCm6ogXNdS3/HZWiPWoIIPrAaN18WGmdW3Qb/ETH2qB
5KWVmw5RDX78bvppbt5mas7RZMIbFH2HsY0rmGF2xVd4p3LNGnZQPpn5p6AN
EenT+rhSHs2O6JuU6AzJmS1KGUGiLwhFFSNgdTi2RwsRL0eDXp/LpavHEEl7
55IwLMNttmiAwOFyzEdyIOkTX5CcHfsV6awV5ov1RmshFHW/fnqKPRfzTqb2
@sdtsui
sdtsui / update_curl.sh
Created Aug 8, 2017 — forked from fideloper/update_curl.sh
Update curl on Ubuntu 14.04
View update_curl.sh
#! /usr/bin/env bash
# Install any build dependencies needed for curl
sudo apt-get build-dep curl
# Get latest (as of Feb 25, 2016) libcurl
mkdir ~/curl
cd ~/curl
wget http://curl.haxx.se/download/curl-7.50.2.tar.bz2
tar -xvjf curl-7.50.2.tar.bz2
View rinkebytesteth
0x82df11beb942BEeeD58d466fCb0F0791365C7684
@sdtsui
sdtsui / webpack-moduleconcatentationplugin-issue-config.js
Created Jun 19, 2017
webpack-moduleconcatentationplugin-issue-config.js
View webpack-moduleconcatentationplugin-issue-config.js
// We merge our configs. Here are all of the files used.
// webpack.frontend.prod.js
const webpack = require('webpack');
const merge = require('webpack-merge');
const CompressionPlugin = require('compression-webpack-plugin');
const baseFrontendConfig = require('./webpack.frontend.base');
module.exports = merge.smart(baseFrontendConfig, {
plugins: [
View MetropolisTestingGuide.md

Welcome

This guide is intended to provide resources for those wanting to help test Metropolis EIPs. The CPP team is currently in the middle of a migration from EthDocs to a documentation site that is more dedicated to CPP-Ethereum so the documentation on creating tests for Ethereum using testeth is scattered. Everything you will need to get started should be compiled below.

Suggested skill sets needed to create and run tests

  1. Ability to compile/build testeth and LLL compiler or run a docker file.
  2. Ability to understand the LLL Ethereum language.
  3. Ability to understand EIPs, particuarly [those that are going to be going into t
View bl-bug-template.md

#BlackLight Bug Report Template:

Summary

(What is the bug?)

Repro Steps

(Precise steps to reproduce)

Expected Results

(What should happen)

@sdtsui
sdtsui / reflection.go
Created Sep 22, 2016 — forked from drewolson/reflection.go
Golang Reflection Example
View reflection.go
package main
import (
"fmt"
"reflect"
)
type Foo struct {
FirstName string `tag_name:"tag 1"`
LastName string `tag_name:"tag 2"`
@sdtsui
sdtsui / first-golang-simpleServer.go
Last active Sep 13, 2016
first-golang-simpleServer.go
View first-golang-simpleServer.go
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"strconv"
"strings"
)
View system-design-cheatsheet.md

System Design Cheatsheet

Step One: Framing The Problem a.k.a get the MVP

  • Identify the use cases that are in scope
  • Determine constraints based on scoped use cases

use case : the things your system needs to be do.

constraints : the things your system will have to consider to be able to do stuff

@sdtsui
sdtsui / Enhance.js
Created Jun 17, 2016 — forked from sebmarkbage/Enhance.js
Higher-order Components
View Enhance.js
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
You can’t perform that action at this time.