Skip to content

Instantly share code, notes, and snippets.

View ichengzi's full-sized avatar
🥇
coding...

chengzi ichengzi

🥇
coding...
View GitHub Profile
@ichengzi
ichengzi / log.md
Last active July 18, 2023 01:30
idea 日志 live template. 快速打印日志,入参,返回,异常

来源: 【我把老婆(冰冰)放到了Idea 里!这是一个正经视频,后面还讲了代码快速补全,live template 打日志。】 【精准空降到 05:46】 https://www.bilibili.com/video/BV1uR4y1p7Lh/?share_source=copy_web&vd_source=af63ea840971731c498a30c3de502821&t=346

loge
log.error($content$,$params$);
content 参数groovyScript("def params = _2.collect {'【'+it+' = {}】'}.join(', '); return '\"[[title='+_1+']] ' + _1 + '() called with exception => ' + (params.empty  ? '' : params) + '\"'", methodName(), methodParameters())
params参数groovyScript("def params = _1.collect {it}.join(', '); return   (params.empty  ? '' : params) + ',e' ",  methodParameters())
@ichengzi
ichengzi / test.md
Created March 31, 2023 06:01
test linux sleep

test.c

#include <unistd.h>
void main() {
  sleep(5);
}
  1. gcc test.c -o test.out
  2. strace ./test.out
import React from 'react';
import ReactDOM from 'react-dom';
class AppComponent extends React.Component {
state = {
numChildren: 0
}
render () {
@ichengzi
ichengzi / stata.md
Last active August 22, 2023 06:33
stata分析

一、简单操作

下载外部命令:ssc install outreg2 logout pwcorr_a

二、描述性统计

outreg2 using xxx.doc, replace sum(log) title(Decriptive statistics)
outreg2 using xxx.doc, replace sum(log) keep(**v** **v** **v**) title(Decriptive statistics)
outreg2 using xxx.doc, replace sum(log) keep(**v** **v** **v**) eqkeep(N mean min max) title(Decriptive statistics)
bysort x:outreg2 using xxx.doc, replace sum(log) title(Decriptive statistics)