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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
type Item struct { | |
Raw json.RawMessage | |
Values map[string][]int |
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
fetch('/api/v4/members/aaaaaaa/answers').then(resp => { return resp.json() }).then(j => { for (const row of j.data) { fetch('/api/v4/answers/' + row.id, { method: 'DELETE', credentials: 'same-origin' } ).then(resp => { console.log(resp) }) } }) |
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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
run := func(str string, wait chan struct{}, sig chan struct{}) { | |
for i := 0; i < 10; i++ { | |
<-wait |
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 data struct { | |
Status int | |
Content string | |
Data struct { | |
Seats map[int]struct{ | |
NickName string | |
Avatar string | |
UID int | |
} | |
} |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"strings" | |
) | |
func main() { | |
j := ` |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<script src="report.js"></script> | |
<script src="system-production.js"></script> | |
<script src="aff.js"></script> | |
</head> |
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
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
func main() { | |
pt := fmt.Printf |
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
import itertools | |
def l(): | |
while True: | |
for e in ['a', 'b', 'c', 'd']: | |
yield e | |
print(list(itertools.islice(l(), 7))) |
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
import itertools | |
def l(): | |
while True: | |
for e in ['a', 'b', 'c', 'd']: | |
yield e | |
print(list(itertools.islice(l(), 7))) |
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
let infos = [ | |
{ | |
"MENU_ID": 1, | |
"MENU_NAME": "系统管理", | |
"MENU_URL": "#", | |
"PARENT_ID": 0,//顶级菜单 | |
"MENU_ORDER": 1//菜单的顺序 | |
}, | |
{ | |
"MENU_ID": 2, |