This is a tutorial for python.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from io import TextIOWrapper | |
from sys import stdout, stderr | |
from time import gmtime | |
import typing as t | |
class ScrawpDebugger: | |
def __init__(self, out : t.Optional[TextIOWrapper] = stdout, err : t.Optional[TextIOWrapper] = stderr, log : t.Optional[TextIOWrapper] = None) -> None: | |
self.io_out : TextIOWrapper = out | |
self.io_err : TextIOWrapper = err | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define MAX_ASSET_TITLE_SIZE 256 | |
#define MAX_ASSET_TABLE_SIZE 50 | |
unsigned int __hash(const char *title) | |
{ | |
int len = strnlen(title, MAX_ASSET_TITLE_SIZE); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is an example of switch statements in Python | |
# Switch statements are not a part of libpython (my nickname for the python standard library) or the Python Language Standard | |
# But they are very easy to DIY, and they improve readability, and performance!! | |
# Lets say we want to return the age for a passed name | |
def get_age(name): | |
# You might think to start writing if statements, and for something small, that is fine. But they can get real messy and hard to edit | |
# Let's use a DIY switch statement instead!!! | |
switch = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void clean_box_handle(int event, widget* self) | |
{ | |
switch (event) | |
{ | |
case HOVER: | |
clean_box_animation = 2; | |
break; | |
case PRESSED: | |
clean_box_animation = 1; |
// Please visit my channel.
This gist will show you how to use VSCode with Godot.
Visual Studio Code: Download Link - https://code.visualstudio.com/Download
Godot Game Engine for Windows PCs: Download Link - https://godotengine.org/download/windows
Godot Game Engine for Linux PCs: Donwload Link - https://godotengine.org/download/linux
All the links for the tutorial will be linked right here
TamperMonkey for Google Chrome: https://tampermonkey.net/#
TamperMonkey for FireFox: https://tampermonkey.net/index.php?ext=dhdg&browser=firefox
TamperMonkey for Opera Next: https://tampermonkey.net/index.php?ext=dhdg&browser=opera
TamperMonkey for Safari: https://tampermonkey.net/index.php?ext=dhdg&browser=safari
NewerOlder