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
``` | |
QListView { | |
outline: 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
SignTool sign /n "上海道勤软件有限公司" MyControl.exe | |
SignTool sign /n "上海道勤软件有限公司" $f |
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
curl -i --http2 --location POST 'https://gauss.joywok.com/api/web-server-test' | |
curl -i -w "time_connect: %{time_connect}\ntime_appconnect: %{time_appconnect}\ntime_pretransfer: %{time_pretransfer}\ntime_starttransfer: %{time_starttransfer}\ntime_nslookup:%{time_namelookup}\ntime_total: %{time_total}\n" --http2 --location --request POST 'https://www./api/web-server-test' | |
curl -i --location 'https://www.navalink.cn/api/v1/chat' --header 'Content-Type: application/json' --data '{"user_id":"5c10e8a1500c859983f90a2387c842dc","session_id":"730d9471c7d031a5af9a507153a61a5d","content": "大海是什么颜色?"}' | |
curl -i -w "time_connect: %{time_connect}\ntime_appconnect: %{time_appconnect}\ntime_pretransfer: %{time_pretransfer}\ntime_starttransfer: %{time_starttransfer}\ntime_nslookup:%{time_namelookup}\ntime_total: %{time_total}\n" --location 'https://dogesoftuat.joywok.com/api/v1/chat' --header 'Content-Type: application/json' --data '{"user_id":"5c10e8a1500c859983f90a2387c842dc","session_id":"730d9471c7d031a5af9a50715 |
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
```cpp | |
QUrl filepath = QFileDialog::getOpenFileUrl(); | |
if (filepath.isValid()) { | |
QFile file(filepath.toString()); | |
if (file.open(QFile::ReadOnly)) { | |
QByteArray ba = file.readAll(); | |
file.close(); | |
} |
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
static qreal scalefactor = StyleHelper::getPaintScaleFactor(); | |
QPixmap pix(":/Resources/skin/chat/notice.png"); | |
QBitmap mask = pix.createMaskFromColor(QColor(255, 255, 255), Qt::MaskOutColor); | |
QPainter p(&pix); | |
QString bubble_color = "#" + JWSettingsInfo::GetInstance()->GetSettingInfo(MESSAGE_BACKGROUND, "C9DFFB"); | |
p.setPen(QColor(bubble_color)); | |
p.drawPixmap(pix.rect(), mask, mask.rect()); | |
p.end(); |
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
# pip3 install mysql-connector | |
import mysql.connector | |
import mysql.connector.errors | |
db = mysql.connector.connect(host='', user='', password='', database='') | |
cursor = db.cursor() | |
titles = ["推荐面试","推荐奖励","查工资","年度奖金获得的资格","年度奖金获得的资格","补充商业保险联系方式","如何预约体检?","如何领取生日礼物?","我忘记来领生日礼物了可以补领吗?","丝芙兰员工折扣享受方式","丝芙兰员工折扣的额度是多少?","员工折扣使用方式","弹性工作安排的规定","上班需要打卡吗?","排班","迟到早退","申请加班","年休假天数","新员工有多少天年假","申请年休假","病假工资","申请婚假","绩效评估等级","严重违反哪些规章制度会立即解除劳动合同","离职证明","丝芙兰大学介绍","培训项目和课程介绍","员工申诉的原则","员工举报的原则","请假申请","年假查询","放假安排","调休申请","弹性工作安排","公司基本信息","企业文化","公司的愿景","内购活动","申诉程序","申诉程序","保险理赔","请假撤销","计划服务年限的定义是什么?","丧失的权利是什么意思?","归属的定义","储蓄计划的类型","谁可以参加储蓄计划?","储蓄计划的参与资格?","离职员工还继续享有储蓄计划吗?","储蓄计划的缴费基数是多少?","储蓄计划的缴费比例是多少?","储蓄计划多久缴费一次?","储蓄计划什么时候缴费?","储蓄计划员工个人缴费吗?","享受储蓄计划的员工要交个税吗?","员工如何为储蓄计划缴纳个税?","缴费的归属如何计算?","员工如果提出离职储蓄计划的账户余额还能提取吗?","什么时候到期归属?","归属如何领取?","归属后什么时候可以领取?","归属后可以一次性全提取吗?","归属后可以留在账户里不领取吗?","我从哪里可以查到我的储蓄计划账户明细?","归属后还能再投资吗?","我可以变更投资方案吗?","我对于储蓄计划有问题该找谁问?","什么是6月基本月薪年化后的年度基本工资?","如果当年请了产假或哺乳假,是否还能享有当年缴费?","归属时已 |
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
from faker import Faker | |
fake = Faker(locale='zh_CN') | |
fake.paragraph() | |
''' | |
paragraph():随机生成一个段落 | |
paragraphs():随机生成多个段落,通过参数nb来控制段落数,返回数组 | |
sentence():随机生成一句话 |
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
from sleekxmpp import ClientXMPP, ET | |
import logging | |
import uuid | |
import _thread | |
import time | |
logging.basicConfig(level=logging.DEBUG) | |
class EchoBot(ClientXMPP): | |
def __init__(self, jid, password): | |
ClientXMPP.__init__(self, jid, password) |
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
#ifndef DEFER_H | |
#define DEFER_H | |
template <typename F> | |
struct privDefer { | |
F f; | |
privDefer(F f) : f(f) {} | |
~privDefer() { f(); } | |
}; |
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
# 数据库导出 | |
mysqldump -u root -pmaker123 gauss_dev > gauss_dev.sql | |
# 数据库导入 | |
mysql -u root -pmaker123 gauss_dev < gauss_dev.sql |
NewerOlder