- Install the required packages by running
pip install -r requirements.txt
in your terminal. - Run the command
export TESSDATA_PREFIX=/usr/local/tessdata
in your terminal to set the Tesseract data path. - Download the English language data from here and place it to the tessdata folder above.
- Run
main.py
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 updateTitleAPI = fetch(url, { | |
method: 'PUT', | |
headers: { | |
'Accept': 'application/json', | |
'Content-Type': 'application/json' | |
}, | |
body: { title } | |
}).then(res => res.json()); | |
const updateTitle = title => ({ type: UPDATE_TITLE, payload: title }); |
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 root = document.querySelector('#kolor-kolor'); | |
const rootObserver = new MutationObserver((mutations) => mutations.map(mutation => { | |
[].slice.call(document.querySelectorAll('#kolor-options li a')).map((option) => { | |
if (option.style.backgroundColor === mutation.target.style.backgroundColor) { | |
option.click(); | |
} | |
}); | |
})); | |
rootObserver.observe(root, { | |
attributes: true, |
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
var root = document.querySelector('#v-game-countdown').nextSibling; | |
var rootObserver = new MutationObserver((mutations) => mutations.map(mutation => { | |
[].slice.call(document.querySelectorAll('.v-game-target img')).map((target) => { | |
target.click(); | |
}); | |
})); | |
rootObserver.observe(root, { | |
childList: true | |
}); |
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 dayjs = require("dayjs"); | |
module.exports = { | |
watchFundingTrades: async (ws, { symbol }, cb) => { | |
ws.onFundingTradeEntry({ symbol }, trade => { | |
const params = getParams(trade); | |
const { datetime, rate, apy, period, amount } = params; | |
console.log( | |
`${datetime}\t${rate.toFixed(6)}\t${apy.toFixed( | |
6 |
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 express = require("express"); | |
const cookieParser = require('cookie-parser') | |
var crypto = require('crypto'); | |
const secret = require("./secret.json"); | |
const app = express(); | |
app.use(cookieParser(secret.FLAG)); | |
let canvas = { | |
...Array(128).fill(null).map(() => new Array(128).fill("#FFFFFF")) |
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
@charset "UTF-8"; | |
@import url("https://fonts.googleapis.com/css?family=Noto+Sans+TC:400,500&display=swap"); | |
body { | |
background-color: transparent !important; | |
font-family: "Noto Sans TC", sans-serif !important; | |
overflow-y: hidden !important; | |
} |
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
#!/bin/bash | |
VERSION=13 | |
function cleanup() { | |
docker rm -f master replica >&/dev/null | |
rm -Rf $(pwd)/data $(pwd)/wal_archive | |
} | |
function wait_until_ready() { |
- Enable Google Analytics Data API
- Create
ga4api
service account - Create key(credential) for the service account and save as JSON file
- Assign
ga4api@<project_id>.iam.gserviceaccount.com
as GA4 viewer - Run
./main.sh <ga4_property_id>