This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const puppeteer = require('puppeteer-extra') | |
const StealthPlugin = require('puppeteer-extra-plugin-stealth') | |
puppeteer.use(StealthPlugin) | |
;(async () => { | |
const browser = await puppeteer.launch({ | |
headless: false, | |
executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
analytics.js:31 | |
_ _ _ _ | |
| | | | | | (_) | |
__ _ ___ ___ __ _| | ___ __ _ _ __ __ _| |_ _| |_ _ ___ ___ | |
/ _` |/ _ \ / _ \ / _` | |/ _ \ / _` | '_ \ / _` | | | | | __| |/ __/ __| | |
| (_| | (_) | (_) | (_| | | __/ | (_| | | | | (_| | | |_| | |_| | (__\__ \ | |
\__, |\___/ \___/ \__, |_|\___| \__,_|_| |_|\__,_|_|\__, |\__|_|\___|___/ | |
__/ | __/ | __/ | | |
|___/ |___/ |___/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved | |
// From https://github.com/reduxjs/react-redux/blob/3e53ff96ed10f71c21346f08823e503df724db35/src/utils/shallowEqual.js | |
const hasOwn = Object.prototype.hasOwnProperty; | |
// 這個是 Object.is 的 polyfill 版本,應該是給 IE 看的... | |
function is(x: any, y: any) { | |
if (x === y) { | |
return x !== 0 || y !== 0 || 1 / x === 1 / y; // 這裡使 +0 與 -0 比對會是 false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved | |
import { | |
createContext, | |
useContext, | |
useEffect, | |
useMemo, | |
useReducer, | |
useRef, | |
} from 'react'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved | |
import {create} from './create'; // 將 create 方法從檔案 create.ts 引入 | |
// 底下呼叫 create 方法的 return 結果 StoreContext, useDispatch 和 useMappedState export 出去 | |
// 這樣外部檔案可以使用 import 語法叫用 | |
export const {StoreContext, useDispatch, useMappedState} = create< | |
any, | |
any, | |
any |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const add = require('./add'); | |
console.log(`1 + 1 = ${add(1, 1)}`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include ./Makefile2.mk | |
all: target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: pre target1 | |
pre: | |
@echo "running pre" | |
@touch pre | |
target1: | |
@echo "target1" | |
.PHONY: all pre target1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: target1 | |
target1: | |
@rm -f target1 | |
@touch target1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: target1 | |
target1: | |
@rm -f target1 | |
@touch target1 | |
.PHONY: all target1 |
NewerOlder