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
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import socket | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): | |
self.return_request() | |
def do_POST(self): | |
self.return_request() |
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
// ==UserScript== | |
// @name NVPro sucks | |
// @namespace darc.pro | |
// @version 0.1 | |
// @description Help fool nvidia nvpro sample load javascript file! | |
// @author DarcJC | |
// @match https://nvpro-samples.github.io/vk_raytracing_tutorial_KHR/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.io | |
// @updateURL https://gist.githubusercontent.com/DarcJC/25b365a8bfab7a0e6a400c101c076619/raw | |
// @downloadURL https://gist.githubusercontent.com/DarcJC/25b365a8bfab7a0e6a400c101c076619/raw |
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
From 3d69159c4ed9cab8402718146be8dde12e537163 Mon Sep 17 00:00:00 2001 | |
From: DarcJC <[email protected]> | |
Date: Sat, 22 Apr 2023 01:58:37 +0800 | |
Subject: [PATCH] feat: add cartoon shading model | |
--- | |
Engine/Shaders/Private/BasePassCommon.ush | 4 +- | |
.../Shaders/Private/BasePassPixelShader.usf | 24 ++++++++-- | |
.../ClusteredDeferredShadingPixelShader.usf | 3 ++ | |
.../Shaders/Private/DeferredShadingCommon.ush | 12 ++++- |
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
{ | |
"description": "Setting of dfm.realsiclua", | |
"properties": { | |
"IntelliSense": { | |
"properties": { | |
"traceBeSetted": { | |
"$ref": "#/properties/IntelliSense.traceBeSetted" | |
}, | |
"traceFieldInject": { | |
"$ref": "#/properties/IntelliSense.traceFieldInject" |
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
""" | |
Current version(1.1.7) of AsyncCasbin doesn't support any async orm adapter, | |
it means adapter such as casbin_tortoise_adapter wouldn't work with the SyncedEnforcer class | |
(you will recieve "... was never awaited" if you use it ). | |
So we could just use common Enforcer, and reload the policy periodically(the strategy SyncedEnforcer choose). | |
""" | |
import casbin | |
import casbin_tortoise_adapter |
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 os | |
import re | |
from pony.orm import Database | |
class DatabaseURI: | |
""" | |
DB url parser for PonyORM. | |
Sample usage: |