Skip to content

Instantly share code, notes, and snippets.

View foxtacles's full-sized avatar
🏠
Working from home

Christian Semmler foxtacles

🏠
Working from home
View GitHub Profile
************* Preparing the environment for Debugger Extensions Gallery repositories **************
ExtensionRepository : Implicit
UseExperimentalFeatureForNugetShare : true
AllowNugetExeUpdate : true
NonInteractiveNuget : true
AllowNugetMSCredentialProviderInstall : true
AllowParallelInitializationOfLocalRepositories : true
EnableRedirectToChakraJsProvider : false
Reading configuration from "C:\Users\Christian\AppData\Roaming\isledecomp\isle\isle.ini"
Found 249 game files in C:\PROGRA~2\LEGOIS~1
Found 249 game files in C:\PROGRA~2\LEGOIS~1
ModLoad: 00007ffc`90620000 00007ffc`90720000 C:\WINDOWS\SYSTEM32\OPENGL32.DLL
ModLoad: 00007ffc`8d850000 00007ffc`8d87d000 C:\WINDOWS\SYSTEM32\GLU32.dll
ModLoad: 00007ffd`0f820000 00007ffd`0f980000 C:\WINDOWS\System32\MSCTF.dll
ModLoad: 00007ffd`05ac0000 00007ffd`05c07000 C:\Windows\System32\AppXDeploymentClient.dll
ModLoad: 00007ffc`6c830000 00007ffc`6dd8e000 C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_9db6816fe4d1e6f9\igxelpicd64.dll
ModLoad: 00007ffc`90720000 00007ffc`90746000 C:\WINDOWS\SYSTEM32\d3d12.dll
ModLoad: 00007ffc`79f70000 00007ffc`7a117000 C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_9db6816fe4d1e6f9\igdml64.dll
/home/foxtacles/isle-full-install <- diskpath. File/folder case doesn't matter.
└── LEGO
├── data
│   ├── ACT1INF.DTA
│   ├── ACT2INF.DTA
│   ├── ACT3INF.DTA
│   ├── BLDDINF.DTA
│   ├── BLDHINF.DTA
│   ├── BLDJINF.DTA
│   ├── BLDRINF.DTA
@foxtacles
foxtacles / gist:cbf11160ffd6152b48321c57143639f3
Last active December 9, 2023 14:31
Some ideas for extra tooling

Names, syntax etc. are just placeholders for illustration.

interleave

This tool takes a .cpp file, finds the first and the last function annotation in the file, then searches the entire codebase and "interleaves" all functions that appear between the first/last function in the .cpp file, based on their offset/address.

Could optionally also prepend/append functions before/after the first/last function in case of "reasonable" offset gap.

The output is the .cpp file with "comment syntax"-style function annotations interleaved between the functions where they belong, so that checkorder would still pass on the .cpp file.

#include <unordered_map>
#include <rapidjson/schema.h>
typedef std::unordered_map<std::string, rapidjson::SchemaDocument> SchemaCollection;
class SchemaDocumentProvider : public rapidjson::IRemoteSchemaDocumentProvider {
SchemaCollection* schema_collection;
public:
SchemaDocumentProvider(SchemaCollection* schema_collection) : schema_collection(schema_collection) { }
development:
adapter: postgresql
encoding: unicode
host: localhost
database: robot
username: foxtacles
password: foxtacles
pool: 20
timeout: 10000
ActiveRecord::Base.transaction {
30000.times {
g = GlobalProduct.create;
g.global_product_codes.create(code_type: "asin", code: SecureRandom.hex).app_product_prices.create(source: "amazon", base_price: 4, full_price: 5, fetched_at: Date.today)
g.global_product_codes.create(code_type: "gtin", code: SecureRandom.hex).app_product_prices.create(source: "gshopping", base_price: 2, full_price: 3, fetched_at: Date.today)
} }
k;double sin()
,cos();main(){float A=
0,B=0,i,j,z[1760];char b[
1760];printf("\x1b[2J");for(;;
){memset(b,32,1760);memset(z,0,7040)
;for(j=0;6.28>j;j+=0.07)for(i=0;6.28
>i;i+=0.02){float c=sin(i),d=cos(j),e=
sin(A),f=sin(j),g=cos(A),h=d+2,D=1/(c*
h*e+f*g+5),l=cos (i),m=cos(B),n=s\
in(B),t=c*h*g-f* e;int x=40+30*D*
invoice.transactions.sum(:total) Netto
invoice.total_with_vats - Netto + VATS + Marge abzgl. Gutschein
invoice.total_without_vats - Netto + Marge abzgl. Gutschein
invoice.margin_only Marge-Anteil von obigem
invoice.vats_only VATS-Anteil von obigem
invoice.total_without_vats - invoice.margin_only
=> Netto abzgl. Gutschein