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
function comment | |
/** | |
* @Author sleagon | |
* @Description 一个测试用的函数 | |
* @Date 6:20 下午 2021/10/22 | |
* @Param TGICrowdRule : crowd 规则名单 | |
* TGIField> : fields 标签清单 | |
* Long : tenantId 租户ID | |
* @Return KQL | |
**/ |
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
package stat | |
import ( | |
"crypto/sha256" | |
"fmt" | |
"io" | |
"os" | |
) | |
func Run() { |
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
/* | |
* 这是一个setState执行成功,state也更新了,但是页面没渲染的例子,应该更多的是跟diff相关。 | |
*/ | |
class Example extends React.Component{ | |
//... | |
state = { | |
fruit: [{ | |
type: 'bannana', | |
count: 0 | |
},{ |
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
package fileserver | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"time" | |
) |
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
package async | |
import ( | |
"context" | |
"fmt" | |
"sync" | |
) | |
type Job = func(ctx context.Context) error |
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
{ | |
"javascript.implicitProjectConfig.experimentalDecorators": true, | |
"workbench.sideBar.location": "right", | |
"workbench.activityBar.visible": false, | |
"workbench.statusBar.visible": true, | |
"window.zoomLevel": 1, | |
"editor.renderWhitespace": "all", | |
"terminal.integrated.shell.osx": "/bin/zsh", | |
"gitlens.advanced.messages": { | |
"suppressShowKeyBindingsNotice": true |
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
// FR file | |
import { Readable } from "stream"; | |
export default class String2Stream extends Readable { | |
private data: Buffer; | |
private str: string; | |
private size: number; | |
private cur: number; | |
constructor(str: string) { | |
super(); |