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
# -*- 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
#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
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
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapShader; | |
import android.graphics.Canvas; | |
import android.graphics.ColorFilter; | |
import android.graphics.Matrix; | |
import android.graphics.Paint; | |
import android.graphics.Path; | |
import android.graphics.RectF; |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
namespace Utils | |
{ | |
public class HtmlFragment | |
{ |
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
package com.mcelf.TutorialMap.util; | |
import java.io.*; | |
import java.util.zip.ZipEntry; | |
import java.util.zip.ZipInputStream; | |
/** | |
* @author evilwk <evilwk@gmail.com> on 2016/8/6 0006 | |
*/ | |
@SuppressWarnings("ResultOfMethodCallIgnored") |
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
local function IsString(ch) | |
return string.match(ch, "[^\t%s%d%+%-%*/%%%(%)]") | |
end | |
local function GetString(szExpression, nIndex) | |
return string.find(szExpression, "^([^\t%s%d%+-%*/%%%(%)]+)", nIndex) | |
end | |
local function IsNumber(ch) | |
return string.match(ch, "[%d%.]+") |
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
#pragma once | |
#define LUA_REGISTRYINDEX (10000) | |
#define LUA_ENVIRONINDEX (10001) | |
#define LUA_GLOBALSINDEX (10002) | |
#define lua_upvalueindex(i) (LUA_GLOBALSINDEX(i)) | |
typedef struct lua_State lua_State; | |
typedef double lua_Number; | |
typedef int (*lua_CFunction) (lua_State *L); |
NewerOlder