Skip to content

Commit 5a0f76e

Browse files
committed
ver1
1 parent 85b9aff commit 5a0f76e

17 files changed

+683
-1
lines changed

LCDashConfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"Cookie": "",
3+
"CrawlIntervalSecond": 30,
4+
"DailyGoal": 30,
5+
"EasyScore": 1,
6+
"MediumScore": 5,
7+
"HardScore": 10,
8+
"StartTimeOfTheNewDay": 2
9+
}

README.md

+38-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,38 @@
1-
# LeetcodeDashboard
1+
# LeetcodeDashboard
2+
3+
4+
5+
## DataSource:
6+
7+
### ProblemInfo:
8+
9+
Request:
10+
11+
```
12+
https://leetcode.com/api/problems/all/
13+
```
14+
15+
16+
### Submissions:
17+
18+
https://leetcode.com/submissions/#/1
19+
20+
Request(with cookie):
21+
22+
https://leetcode.com/api/submissions/?offset=0&limit=20&lastkey=
23+
24+
25+
26+
27+
### TermUI library modification:
28+
29+
For barchart.go and stacked_barchart.go:
30+
31+
Add the following in Draw()
32+
```go
33+
if maxVal == 0 {
34+
maxVal = 1
35+
}
36+
```
37+
38+
https://github.com/gizak/termui/issues/245

art.png

222 KB
Loading

bin/linux/386/LCDashConfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"Cookie": "",
3+
"CrawlIntervalSecond": 30,
4+
"DailyGoal": 30,
5+
"EasyScore": 1,
6+
"MediumScore": 5,
7+
"HardScore": 10,
8+
"StartTimeOfTheNewDay": 2
9+
}

bin/linux/386/lcdash

7.11 MB
Binary file not shown.

bin/linux/amd64/LCDashConfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"Cookie": "",
3+
"CrawlIntervalSecond": 30,
4+
"DailyGoal": 30,
5+
"EasyScore": 1,
6+
"MediumScore": 5,
7+
"HardScore": 10,
8+
"StartTimeOfTheNewDay": 2
9+
}

bin/linux/amd64/lcdash

8 MB
Binary file not shown.

bin/mac/386/LCDashConfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"Cookie": "",
3+
"CrawlIntervalSecond": 30,
4+
"DailyGoal": 30,
5+
"EasyScore": 1,
6+
"MediumScore": 5,
7+
"HardScore": 10,
8+
"StartTimeOfTheNewDay": 2
9+
}

bin/mac/386/lcdash

7.2 MB
Binary file not shown.

bin/mac/amd64/LCDashConfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"Cookie": "",
3+
"CrawlIntervalSecond": 30,
4+
"DailyGoal": 30,
5+
"EasyScore": 1,
6+
"MediumScore": 5,
7+
"HardScore": 10,
8+
"StartTimeOfTheNewDay": 2
9+
}

bin/mac/amd64/lcdash

7.99 MB
Binary file not shown.

bin/windows/386/LCDashConfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"Cookie": "",
3+
"CrawlIntervalSecond": 30,
4+
"DailyGoal": 30,
5+
"EasyScore": 1,
6+
"MediumScore": 5,
7+
"HardScore": 10,
8+
"StartTimeOfTheNewDay": 2
9+
}

bin/windows/386/lcdash

6.88 MB
Binary file not shown.

bin/windows/amd64/LCDashConfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"Cookie": "",
3+
"CrawlIntervalSecond": 30,
4+
"DailyGoal": 30,
5+
"EasyScore": 1,
6+
"MediumScore": 5,
7+
"HardScore": 10,
8+
"StartTimeOfTheNewDay": 2
9+
}

bin/windows/amd64/lcdash

7.73 MB
Binary file not shown.

build.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
#mac:
4+
GOOS=darwin GOARCH=amd64 go build -buildmode=exe -o ./bin/mac/amd64/lcdash main.go
5+
GOOS=darwin GOARCH=386 go build -buildmode=exe -o ./bin/mac/386/lcdash main.go
6+
#linux
7+
GOOS=linux GOARCH=amd64 go build -buildmode=exe -o ./bin/linux/amd64/lcdash main.go
8+
GOOS=linux GOARCH=386 go build -buildmode=exe -o ./bin/linux/386/lcdash main.go
9+
10+
#windows
11+
GOOS=windows GOARCH=amd64 go build -buildmode=exe -o ./bin/windows/amd64/lcdash main.go
12+
GOOS=windows GOARCH=386 go build -buildmode=exe -o ./bin/windows/386/lcdash main.go

0 commit comments

Comments
 (0)