I hereby claim:
- I am chengjianhua on github.
- I am chengjianhua (https://keybase.io/chengjianhua) on keybase.
- I have a public key ASCqPN_sFKquuM0syrbGghUGmzmWa8HWmlbN1kharxR-lAo
To claim this, I am signing this object:
function ajax(url: string, { method = 'GET', data = undefined } = {}) { | |
return new Promise((resolve, reject) => { | |
const xhr = new XMLHttpRequest(); | |
xhr.open(method, url); | |
if (method === 'POST') { | |
xhr.setRequestHeader('Content-Type', 'application/json; charset=UTF-8'); | |
} |
const rawMessage = `Merge branch 'fix/bundle' into 'develop' | |
asdasdasdasdasd | |
fix(bundle): fix bug in bundle_edit | |
See merge request frontend/darwin-yy!63`; | |
const firstLineBreakIndex = rawMessage.indexOf('\n'); | |
let computedMessage; |
I hereby claim:
To claim this, I am signing this object:
version: "3.4" | |
services: | |
server: | |
image: node | |
restart: unless-stopped | |
ports: | |
- "3000:3000" | |
networks: | |
- my_network |
func watchLogsOfAllJobContainers( | |
podClient clientCoreV1.PodInterface, | |
podListOptions *meta_v1.ListOptions, | |
overallChannel *chan OverallEvent, | |
) (err error) { | |
jobContainers := []podContainer{} | |
var logsWaitGroup sync.WaitGroup | |
podList, err := podClient.List(*podListOptions) | |
// 遍历所有 pod 的容器, 将每个容器从属的 pod 名称以及本身的名称保存到总的数组中 |
/* eslint-disable no-underscore-dangle */ | |
function split(thing) { | |
if (typeof thing === 'string') { | |
return thing.split('/'); | |
} else if (thing.fast_slash) { | |
return ''; | |
} | |
const match = thing | |
.toString() |
function Func() { | |
this.a = 1; | |
console.log('this', this); | |
} | |
console.group('Func.invoke'); | |
console.log(Func()); | |
console.groupEnd(); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script src="https://cdn.jsdelivr.net/lodash/4/lodash.min.js"></script> |
const cp = require('child_process'); | |
// eslint-disable-next-line no-unused-vars | |
function inspect(...args) { | |
return console.dir(...args, { | |
showHidden: true, | |
depth: Infinity, | |
colors: true, | |
}); | |
} |
const cp = require('child_process'); | |
const pkg = require('../package.json'); | |
const BETA_NAMES = ['alpha', 'beta']; | |
const { version } = pkg; | |
// the alpha version No. should be like "v7.1.0-alpha.2", "v8.0.0" | |
const alphaReg = /(?:\d+\.\d+\.\d+)(-([a-zA-Z]+)\.\d+)?/i; |