Skip to content

Instantly share code, notes, and snippets.

View sc0Vu's full-sized avatar
🎯
Focusing

Peter Lai sc0Vu

🎯
Focusing
View GitHub Profile
@sc0Vu
sc0Vu / prime.c
Last active August 29, 2015 14:27 — forked from gnitnaw/prime.c
Search prime number in 0~N
#include <sys/time.h> // timer
#include <stdio.h> // printf
#include <stdlib.h> // malloc, free
#include <stdbool.h> // bool
const int N = 1000000; // Range of Prime
const int nTest = 2; // Two test
struct Measurement {
int nPrime; // number of Primes
@sc0Vu
sc0Vu / phpinfo.css
Last active August 26, 2015 08:05 — forked from 350d/phpinfo.css
Styles for phpinfo();
html {
background: #fff;
margin:0;
padding:0;
}
body {
color: #233452;
height: 100%;
font-family: Verdana, Helvetica, sans-serif;
margin: 20px 0;
@sc0Vu
sc0Vu / Front-end-Developer-Interview-Questions-TC.md
Created November 18, 2015 13:34 — forked from hanksudo/Front-end-Developer-Interview-Questions-TC.md
Front-end-Developer-Interview-Questions - 前端工程師面試問題集(繁體中文版)

前端工程師面試問題集

@版本 2.0.0

譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.

此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。

Rebecca MurpheyBaseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。

@sc0Vu
sc0Vu / uplaodS3.php
Last active September 12, 2016 04:42
Upload directory recursively and concurently to AWS S3
require_once __DIR__.DIRECTORY_SEPARATOR.'Aws'.DIRECTORY_SEPARATOR.'aws-autoloader.php';
// require_once './vendor/autoload.php' if you composer
$ds = DIRECTORY_SEPARATOR;
$srcDir = 'your src dir;
$filePath = [];
$promises = [];
$bucket = 'your bucket';
$options = [
'version' => 'latest',

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
0xe9fa060aed8e170bed56e8fc54c43c515c09c49f
0x7805f45bfe816e4ebf29adbdf73e6ca3931390c0
0xc4a7d55f6bc573cfb72dd04f8b3e84ca6789a2ea
@sc0Vu
sc0Vu / assemblyAdd.sol
Created May 7, 2019 06:02
Different result when call assembly add in bytes and bytes32.
pragma solidity 0.5.1;
contract ADD {
event Add( uint256 indexed num );
function Bytes(bytes memory _t) public {
uint256 t;
assembly {
t := add(_t, 0)
@sc0Vu
sc0Vu / package_mtk_linkit_7697_index.json
Created June 10, 2019 02:58
exosite_package_mtk_linkit_7697_index.json
{
"packages": [
{
"name": "LinkIt",
"maintainer": "MediaTek Labs",
"websiteURL": "http://labs.mediatek.com/",
"help": {
"online": "https://docs.labs.mediatek.com/resource/linkit7697-arduino/en"
},
"platforms": [