Skip to content

Instantly share code, notes, and snippets.

View ThakeeNathees's full-sized avatar

Thakee Nathees ThakeeNathees

  • /* TODO: */
View GitHub Profile
" =============================================================================
" System specific configs
" =============================================================================
" coc-settings.json : open the file using `:CocConfig` command.
" {
" "suggest.noselect": true,
" "languageserver" : {
" "clangd" : {
extends Control
## Must use mono font for this to work properly.
var lines :Array = ['']
var font :Font = theme.default_font
var start := Vector2(10, 10)
var c_size := font.get_char_size(65)
extends Node
## sprite sheet link:
## http://gaurav.munjal.us/Universal-LPC-Spritesheet-Character-Generator/
var sheet:Dictionary = {
"spell":7,
"thrust":8,
"walk":9,
"slash":6,
#!python
Import('env')
# glfw env
glfw_env = env.Clone()
# source files
SOURCES = [
"src/context.c",
"src/init.c",
@ThakeeNathees
ThakeeNathees / single_header_gen.py
Created November 27, 2020 17:26
single header generator
LICENSE = '''\
//------------------------------------------------------------------------------
// MIT License
//------------------------------------------------------------------------------
//
// Copyright (c) 2020 Thakee Nathees
//
// 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
from datetime import timedelta
### EDIT THESE 3 VARIABLES ###################################
SUBTITLE_FILE_PATH = "subtitle_file_path.srt"
OUTPUT_FILE_PATH = "output_file_path.srt"
DELAY_MILLI_SEC = 3200
## Copyright (c) 2020 Thakee Nathees
##############################################################
tool
extends EditorScript
const IMPORTING_ANIMS = true ## false means importing models
const MODEL_NAME = "anims.fbx"
const TEMP_RES_PATH = "res://scripts/tool_scripts/temp/"
const ANIM_EXPORT_PATH = "res://anims/ybot/"
const EXPORT_AS_TRES = true
const SAVE_FLAGS = [
import re, struct
## HOW TO USE:
## set a break point at `GDScriptFunction::call()` and search "stack" at Visual studio memory dump window.
## past the memory dump below and run the script.
MEM_DUMP = '''\
0x000000DC7B5FA700 19 00 00 00 00 00 00 00 a0 b6 11 be 71 02 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 ........ ¶..q..................
0x000000DC7B5FA71F 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 01 00 00 00 00 00 ...............................
@ThakeeNathees
ThakeeNathees / search.py
Last active April 11, 2020 03:14
a python script to search regex from all source files in a dir
import re, os, sys
## help : > python search.py regex [path="."] [output='result.txt']
## usage: > python search.py "func .*?\(\)"
## override skip_search() for ignore file/dirs
VALID_FORMAT = ['.cpp', '.h', '.xml']
def skip_search(_dir):
if os.path.isdir(_dir):
@ThakeeNathees
ThakeeNathees / crash_handler.h
Last active August 5, 2024 10:15
C++ crash handler (modified from godot)
/*************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
/* https://godotengine.org */
/*************************************************************************/
/* Copyright (c) 2007-2020 Juan Linietsky, Ariel Manzur. */
/* Copyright (c) 2014-2020 Godot Engine contributors (cf. AUTHORS.md). */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */