Skip to content

Instantly share code, notes, and snippets.

View hxhb's full-sized avatar

lipengzha hxhb

View GitHub Profile
This file has been truncated, but you can view the full file.
// ==UserScript==
// @name KISS Translator
// @namespace https://github.com/fishjar/kiss-translator
// @version 2.0.17
// @description A simple bilingual translation extension & Greasemonkey script (一个简约的双语对照翻译扩展 & 油猴脚本)
// @author Gabe<[email protected]>
// @homepageURL https://github.com/fishjar/kiss-translator
// @license GPL-3.0
// @match *://*/*
// @icon https://fishjar.github.io/kiss-translator/images/logo192.png
template<typename TStructType>
static bool TSerializeStructAsJsonObject(const TStructType& InStruct,TSharedPtr<FJsonObject>& OutJsonObject)
{
SCOPED_NAMED_EVENT_TEXT("TSerializeStructAsJsonObject",FColor::Red);
if(!OutJsonObject.IsValid())
{
OutJsonObject = MakeShareable(new FJsonObject);
}
bool bStatus = FJsonObjectConverter::UStructToJsonObject(TStructType::StaticStruct(),&InStruct,OutJsonObject.ToSharedRef(),0,0);
return bStatus;
import os
import sys
import argparse
import subprocess
g_text_exts = ["txt","lua", "ini", "json", "uproject", "uplugin"]
DEFAULT_EOL_FMT = "lf"
def git_attr_fmt(extension, fmt="crlf"):
return f"*.{extension} text eol={fmt}"
import hashlib
import re
import random
import string
import time
import requests
import os
import csv
import secrets
import string
// 数据来源:和风天气(https://www.qweather.com/)
//接收传递过来的参数
const key = input.key;
let city = input.city;
let days = input.days;
let addDesc = input.addDesc;
let onlyToday = input.onlyToday;
let headerLevel = input.headerLevel;
let anotherCity = input.anotherCity;
@hxhb
hxhb / Unreal_GIS.md
Created October 24, 2020 15:20 — forked from FONQRI/Unreal_GIS.md
Unreal Engine GIS useful links
import time
import sys
import os
g_engineBuildBat = 'Engine\Build\BatchFiles\Build.bat'
g_engineRunUATBat = 'Engine\Build\BatchFiles\RunUAT.bat'
g_generateProjectBat = 'Engine\Build\BatchFiles\GenerateProjectFiles.bat'
g_bg_installed_build_win64_xml = "Engine\Build\InstalledEngineBuild.xml"
g_bg_build_tools_target_name = "\"Build Tools %s\" "
// CustomK2Node.h
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "K2Node.h"
#include "Classes/K2Node.h"
#include "K2Node_CallFunction.h"
#include "KismetCompiler.h"
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=NGI77B
ro.build.display.id=user-358570.9320.0
ro.build.version.incremental=3585700093200000
ro.build.version.sdk=25
ro.build.version.preview_sdk=0
ro.build.version.codename=REL
ro.build.version.all_codenames=REL
ro.build.version.release=7.1.1
@hxhb
hxhb / FThreadUtils.h
Created July 24, 2019 16:43
UE4 FRunnable Wrapper class.
#pragma once
#include "HAL/Runnable.h"
#include "HAL/RunnableThread.h"
class FThread : public FRunnable
{
public:
using FCallback = TFunction<void()>;
explicit FThread(const TCHAR *pThreadName, const FCallback& pCallback)
:mCallback(pCallback)