Skip to content

Instantly share code, notes, and snippets.

View DaelonSuzuka's full-sized avatar
💭
LFG

David Kincaid DaelonSuzuka

💭
LFG
View GitHub Profile
https://photos.app.goo.gl/bg8Vq9uvoAQNEjQd9
class lmao:
toggle = True
def __init__(self, value=None):
print(f'lmao.init = {value}')
self.value = value
def __call__(self, func):
print(f'lmao.decorate = {self.value}')
from time import time, sleep
from collections import defaultdict
class Stat:
""""""
def __init__(self):
self._start_time = time()
self._end_time = None
@DaelonSuzuka
DaelonSuzuka / Files.gd
Created November 12, 2023 21:21
Godot File utility
@tool
extends Node
# ******************************************************************************
func check_extension(file, ext=null) -> bool:
if ext:
if ext is String:
if file.ends_with(ext):
return true
@DaelonSuzuka
DaelonSuzuka / rx.json
Created October 28, 2023 22:15
Godot LSP handshake
{
"id": 0,
"jsonrpc": "2.0",
"result": {
"capabilities": {
"codeActionProvider": false,
"colorProvider": false,
"completionProvider": {
"resolveProvider": true,
"triggerCharacters": [".", "$", "'", "\""]
// update this section to reflect the pin numbers in the box
#define LED_GREEN_PIN 3
#define LED_RED_PIN 2
#define NUMBER_OF_PINS 4
int cableA[NUMBER_OF_PINS] = {6, 7, 8, 9};
int cableB[NUMBER_OF_PINS] = {15, 14, 16, 10};
@DaelonSuzuka
DaelonSuzuka / Makefile
Created November 11, 2022 19:15
Python Makefile
# **************************************************************************** #
# General Make configuration
# This suppresses make's command echoing. This suppression produces a cleaner output.
# If you need to see the full commands being issued by make, comment this out.
MAKEFLAGS += -s
# **************************************************************************** #
APP_FOLDER = app
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
tool
extends Node
# ******************************************************************************
func check_extension(file, ext=null) -> bool:
if ext:
if ext is String:
if file.ends_with(ext):
return true
tool
extends TextEdit
# ******************************************************************************
func _ready():
connect('request_completion', self, 'request_completion')
func request_completion():
print('request_completion')