This file contains hidden or 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
# 參考了 | |
- https://leetcodethehardway.com | |
- https://leetcode.com/explore/ | |
- neetcode.io | |
- https://www.lintcode.com/course/43 | |
- https://hackmd.io/@arthurzllu/SkZBc7GoI#Analysis-of-Algorithms | |
- https://aaronice.gitbook.io/lintcode/backtracking/subsets | |
- https://space.bilibili.com/386952786/video?tid=0&pn=3&keyword=&order=pubdate | |
- https://www.lintcode.com/discuss/597/ |
This file contains hidden or 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 Event /* OrderProcessingEvents */ = { | |
REQUESTED: "REQUESTED", | |
PAYMENT_REQUESTED: "PAYMENT_REQUESTED", | |
PAYMENT_REJECTED: "PAYMENT_REJECTED", | |
REPLY_PAYMENT_FAILED: "REPLY_PAYMENT_FAILED", | |
REPLY_PAYMENT_COMPLETED: "REPLY_PAYMENT_COMPLETED", | |
}; | |
const OrderState = { | |
INITIATED: "INITIATED", |
This file contains hidden or 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
# Reach out to the following teams before making any | |
# structural changes to this file as it's used for | |
# downstream reporting: | |
# - People Team | |
# - Data Team | |
- country: United States | |
area: Connecticut | |
locationFactor: 70.0 | |
- country: United States |
This file contains hidden or 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
!commands add -cd=5 !ap | |
$(eval | |
let api = $(urlfetch json https://playhearthstone.com/en-us/api/community/leaderboardsData?region=AP&leaderboardId=BG&seasonId=2); | |
let r = api.leaderboard.rows; | |
let q = "$(1)"; | |
let rest = q.substring(1, q.length); | |
let f = q[0] === '#' ? r[parseInt(rest) - 1] : r.find(u => u.accountid.toUpperCase() === q.toUpperCase()); | |
f === undefined ? `[$(user)]: ${q} not found` : `[$(user)]: ${f.accountid} is currently #${f.rank}, ${f.rating} mmr`; | |
) |
This file contains hidden or 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
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400&display=swap'); | |
body { | |
font-family: 'Noto Sans TC', sans-serif !important; | |
} |
This file contains hidden or 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
!commands edit -cd=5 !亞服 | |
$(eval | |
let api = $(urlfetch json https://playhearthstone.com/en-us/api/community/leaderboardsData?region=AP&leaderboardId=BG&seasonId=3); | |
let r = api.leaderboard.rows; | |
let q = "$(1)"; | |
let rest = q.substring(1, q.length); | |
let f = q[0] === '#' ? r[parseInt(rest) - 1] : r.find(u => u.accountid.toUpperCase() === q.toUpperCase()); | |
f === undefined ? `[$(user)]: ${q} 不在亞服排行榜,沒料` : `[$(user)]: ${f.accountid} 目前亞服 #${f.rank},${f.rating}分`; | |
) |
This file contains hidden or 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
diff --git a/app/javascript/components/pages/DashboardView/index.js b/app/javascript/components/pages/DashboardView/index.js | |
index daf195608..94b5721a6 100644 | |
--- a/app/javascript/components/pages/DashboardView/index.js | |
+++ b/app/javascript/components/pages/DashboardView/index.js | |
@@ -1 +1,3 @@ | |
-export { default } from './DashboardView' | |
+import { Dashboard } from 'xfers-dashboard' | |
+ | |
+export default Dashboard | |
diff --git a/client_app/packages/xfers-dashboard/.gitignore b/client_app/packages/xfers-dashboard/.gitignore |
This file contains hidden or 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
import React from 'react' | |
class App extends React.Component { | |
// NOTE common fields | |
static propTypes = { | |
} | |
static defaultProps = { | |
} |
This file contains hidden or 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
module.exports = { | |
config: { | |
fontSize: 16, | |
fontFamily: 'OperatorMono Nerd Font', | |
fontWeight: 'bold', | |
cursorShape: 'BLOCK', | |
cursorBlink: false, | |
// color of the text | |
foregroundColor: '#c4c8c6', | |
// terminal background color |
NewerOlder