Skip to content

Instantly share code, notes, and snippets.

View rewrking's full-sized avatar
💽

Andrew King rewrking

💽
View GitHub Profile
@rewrking
rewrking / vs_buildtools_dl_list.md
Created February 1, 2026 22:26 — forked from Mr-Precise/vs_buildtools_dl_list.md
MSVC / VS / Buildtools download link collection list
#version 110
// Achromatomaly
mat4 cbAchromatomaly()
{
return mat4(0.618, 0.320, 0.062, 0.0,
0.163, 0.775, 0.062, 0.0,
0.163, 0.320, 0.516, 0.0,
0.0 , 0.0 , 0.0 , 1.0 );
}
@rewrking
rewrking / shallowProxy.ts
Last active October 1, 2023 22:18
valtio shallow proxy
import { proxy, ref } from "valtio";
function isObjectOrNull<T extends object>(obj: T) {
return typeof obj === "object" && !Array.isArray(obj);
}
/**
* IMO, this is a safe way to use valtio w/o read-only object-related gotchas
* Create a valtio proxy one level deep - use our own proxy to store inner objects as refs, and create getter/setter for them
*/
#pragma once
/*
MIT License
Copyright (c) 2022 Andrew King
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
 30  90  37  97  33  93  31  91  35  95  34  94  36  96  32  92  - (7) inverted
 30  90  37  97  33  93  31  91  35  95  34  94  36  96  32  92  - (1) bold
 30  90  37  97  33  93  31  91  35  95  34  94  36  96  32  92  - (0) normal
 30  90  37  97  33  93  31  91  35  95  34  94  36  96  32 [2;
bool onComment(const char* text, const RPG::ParsedCommentData* parsedData, RPG::EventScriptLine* nextScriptLine,
RPG::EventScriptData* scriptData, int eventId, int pageId, int lineId, int* nextLineId)
{
std::string cmd = parsedData->command;
if (cmd == "test_dbmonsters")
{
int id = parsedData->parameters[0].number;
RPG::DBMonster* monster = RPG::dbMonsters[id];
printf("DBMonster:\n");
# Clang version 9.0.0
Language: Cpp
AccessModifierOffset: -4
AllowShortBlocksOnASingleLine: false
AlwaysBreakTemplateDeclarations: Yes
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignOperands: false
AlignTrailingComments: true
AlignAfterOpenBracket: DontAlign
#!/bin/bash
cd ~/AppData/Local
rm -rf IconCache.db
cd Microsoft/Windows/Explorer
rm -rf iconcache* thumbcache*
taskkill //f //im explorer.exe
start explorer.exe