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
# -*- coding: utf-8 -*- | |
import argparse | |
import logging | |
import string | |
from collections import namedtuple | |
import javalang as java | |
import javalang.tree as javatree |
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 fs = require("fs"); | |
let path = require("path"); | |
let props = { | |
folders: "sub_directories", | |
}; | |
function rollback(filePath) { | |
if (!fs.existsSync(filePath)) { | |
console.log("directory not exists"); |
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
# -*- coding: utf-8 -*- | |
import xml.sax | |
import argparse | |
import os | |
import re | |
import configparser | |
dimens = [] | |
source_file = "" |
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
## 文件 ## | |
# 文件保存路径, 默认为当前启动位置 | |
dir=~\Downloads\ | |
# 启用磁盘缓存, 0为禁用缓存, 需1.16以上版本, 默认:16M | |
disk-cache=64M | |
# 另一种Linux文件缓存方式, 使用前确保您使用的内核支持此选项, 需要1.15及以上版本(?) | |
# enable-mmap=true | |
# 文件预分配方式, 能有效降低磁盘碎片, 默认:prealloc | |
# NTFS建议使用falloc, EXT3/4建议trunc, MAC下需要注释此项 |
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
#include <windows.h> | |
#include <stdio.h> | |
#include <assert.h> | |
#include <time.h> | |
#include <tchar.h> | |
#include "miniDumper.h" | |
#ifdef UNICODE | |
#define _tcssprintf wsprintf | |
#define tcsplitpath _wsplitpath |
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
#include <stdio.h> | |
#include <string.h> | |
#include <winsock.h> | |
int main(int argc, char *argv[]) | |
{ | |
int mysocket; | |
int pcount = 0; | |
struct sockaddr_in my_addr; |
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
using System.Text; | |
using System.Windows.Controls; | |
using System.Windows.Input; | |
namespace Utils.Control | |
{ | |
class HotkeyTextBox : TextBox | |
{ | |
protected override void OnPreviewKeyDown(System.Windows.Input.KeyEventArgs e) | |
{ |
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
#include "httpclient.h" | |
#include <QDebug> | |
#include <QFile> | |
#include <QHash> | |
#include <QUrlQuery> | |
#include <QNetworkReply> | |
#include <QNetworkRequest> | |
#include <QNetworkAccessManager> | |
#include <QHttpPart> | |
#include <QHttpMultiPart> |
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
function calc(oriTime, skillCount) { | |
let results = []; | |
let extraValue = 0; | |
let frameTime = Math.ceil(oriTime * 16); | |
console.log(frameTime) | |
let lastNewTime = Number(oriTime) + 0.1; | |
let hastePercentage = 0; | |
let reduceFrame = 0; |
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
function class(super) | |
local mt = {__call = function(_c, ...) | |
local function create(_c, _o, ...) | |
-- _c is class | |
if _c.__super then create(_c.__super, _o, ...) end | |
if _c.__ctor then _c.__ctor(_o, ...) end | |
return _o | |
end | |
local _o = create(_c, {}, ...) |
NewerOlder