Skip to content

Instantly share code, notes, and snippets.

View CHAOWEICHIU's full-sized avatar
🎯
Focusing

Wayne Chiu CHAOWEICHIU

🎯
Focusing
View GitHub Profile
{
"0": {
"numSoldTicketsTotalCount": 126507,
"averageNumSoldTicketsTotalCount": 10542.25,
"productsTotalCount": 12,
"titles": [
"月月鳥昆蟲研究社:跟鄭運鵬變身甲蟲王",
"賴品妤 Cosplay 社:ㄘ我的二次元替身攻擊",
"遠距工作力:溝通協作到自我管理",
"2021 驅動知識生態系論壇|Hahow 好學校",
{
"0": {
"numSoldTicketsTotalCount": 126507,
"averageNumSoldTicketsTotalCount": 10542.25,
"productsTotalCount": 12,
"titles": [
"月月鳥昆蟲研究社:跟鄭運鵬變身甲蟲王",
"賴品妤 Cosplay 社:ㄘ我的二次元替身攻擊",
"遠距工作力:溝通協作到自我管理",
"2021 驅動知識生態系論壇|Hahow 好學校",
@CHAOWEICHIU
CHAOWEICHIU / settings.json
Created September 30, 2020 02:34
Personal Vscode Setting in .vscode/settings.json
{
"editor.formatOnSaveMode": "modifications",
"editor.fontWeight": 350
}
@CHAOWEICHIU
CHAOWEICHIU / requirements.md
Last active May 13, 2020 01:04
Needed Information For Apple Store & Play Market

Main information you need to deploy React Native app

  • Name of the app

    • work together
  • Short description

    • find people to work with
  • Bundle Identifier (com.yourcompanyname.yourappname)

  • com.buckchaf.worktogether

@CHAOWEICHIU
CHAOWEICHIU / concatenate.sol
Created May 10, 2020 01:10
concatenate strings in solidity
function append(string a, string b, string c, string d, string e) internal pure returns (string) {
return string(abi.encodePacked(a, b, c, d, e));
}
const data = [
'2020/03/03 下午 12:55:10',
'2020/03/03 下午 03:43:56',
'2020/03/04 下午 12:56:14',
'2020/03/04 下午 03:42:10',
'2020/03/05 下午 12:54:55',
'2020/03/05 下午 03:40:22',
'2020/03/06 下午 12:56:30',
'2020/03/06 下午 03:41:13',
'2020/03/10 下午 12:53:36',
import { createBrowserHistory } from 'history';
const history = createBrowserHistory();
const path = (/#!(\/.*)$/.exec(location.hash) || [])[1];
if (path) {
history.replace(path);
}
<RoutingRules>
<RoutingRule>
<Condition>
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
<HostName>myhostname.com</HostName>
<ReplaceKeyPrefixWith>#!/</ReplaceKeyPrefixWith>
</Redirect>
</RoutingRule>
git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew
mkdir ~/.linuxbrew/bin
ln -s ../Homebrew/bin/brew ~/.linuxbrew/bin
eval $(~/.linuxbrew/bin/brew shellenv)
brew install node@12
npm install -g npm
git clone https://github.com/boczeratul/todo-webapp.git
cd todo-webapp
pragma solidity ^0.5.12;
// File: @openzeppelin/contracts/utils/Address.sol
/**
* @dev Collection of functions related to the address type,
*/
library Address {
/**
* @dev Returns true if `account` is a contract.