Skip to content

Instantly share code, notes, and snippets.

View ryuukk's full-sized avatar

ryuukk

View GitHub Profile
import sublime
import sublime_plugin
import re
class GetFunctionScopeCommand(sublime_plugin.TextCommand):
def run(self, edit):
view = self.view
cursor_pos = view.sel()[0].begin()
current_line_region = view.line(cursor_pos)
current_line = view.substr(current_line_region)
@ryuukk
ryuukk / coop_a.md
Last active March 1, 2025 16:57
Elden Ring - optimized coop table
Zone / Boss Rune Level (RL) Regular Weapon (+X) Somber Weapon (+Y)
Limgrave (West & East) 10–30 +1 to +3 +1
- Margit, Fell Omen 20–30 +2 to +3 +1
Stormveil Castle 30–40 +3 to +6 +2
- Godrick the Grafted 35–40 +4 to +6 +2
Liurnia of the Lakes 40–60 +6 to +9 +3 to +4
- Red Wolf of Radagon 45–55 +6 to +8 +3
- Rennala, Queen of the Moon 50–60 +8 to
diff --git a/compiler/src/dmd/typesem.d b/compiler/src/dmd/typesem.d
index dc3f9da..c38d7e8 100644
--- a/compiler/src/dmd/typesem.d
+++ b/compiler/src/dmd/typesem.d
@@ -5906,12 +5906,12 @@ Expression defaultInit(Type mt, const ref Loc loc, const bool isCfile = false)
switch (mt.ty)
{
case Tchar:
- value = isCfile ? 0 : 0xFF;
+ value = 0;
  • put this after the block for: -- active shortcut
			-- all shortcut
			sx = x + width - (16*3) - (2*3)
			SetDrawColor(1,1,1)
			if allHover then
				DrawImage(icon_sort_disabled_hover, sx, y, 16, height)
			else
import core.demangle : demangle;
import core.stdc.string: strlen;
extern(C) int demangle_symbol(const(char*) mangled, char* buffer, size_t bufferLength)
{
if (mangled == null) return 0;
auto ret = demangle( cast(char[]) mangled[0 .. strlen(mangled)], buffer[0 .. bufferLength] );
buffer[ret.length] = 0;
return 1;
}
extern(C) void main()
{
rt_register_crash_handler();
crash_me();
}
void crash_me()
{
int* a;
@ryuukk
ryuukk / bd.d
Created February 10, 2024 12:23
module rt.crash_handler.posix;
import core.stdc.stdlib: free, exit;
import core.stdc.string: strlen, memcpy;
import core.stdc.stdio: fprintf, stderr, sprintf, fgets, fclose, FILE;
import core.sys.posix.unistd: readlink;
import core.sys.posix.signal: SIGUSR1;
import core.sys.posix.stdio: popen, pclose;
import core.sys.linux.execinfo: backtrace, backtrace_symbols;
import core.sys.linux.dlfcn: dladdr1, Dl_info, RTLD_DL_LINKMAP;

before:

$ dmd -run app.d                                                                                                                                                                                                    
app.d(9): Error: function `app.why_do_i_have_to_read_this_long_ass_function_man_useless(int aa)` is not callable using argument types `(string)`
app.d(9):        cannot pass argument `"wrong"` of type `string` to parameter `int aa`
struct InvBoneBindInfo
{
char[64] id = 0;
float sss;
}
HashMapTest!(void*, InvBoneBindInfo[32]) nodePartBones;
# noisy HDD?
``sudo hdparm -S 30 /dev/sda``
This will turn off disk if no activity after (30 * 5) sec