Discover gists
@tool | |
class_name EditorIconTexture | |
extends AtlasTexture | |
var icon :String: | |
set(val): | |
icon = val | |
_update_icon.call_deferred() | |
func _init(): |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
#!/bin/sh | |
FLASH_TIME=$(opkg info busybox | grep '^Installed-Time: ') | |
for i in $(opkg list-installed | cut -d' ' -f1) | |
do | |
if [ "$(opkg info $i | grep '^Installed-Time: ')" != "$FLASH_TIME" ] | |
then | |
echo $i | |
fi |
This install is pretty different from previous versions of psql install instructions for windows. This install uses the WSL and Ubuntu shell.
We are installing this through the Ubuntu command line which is different from the other Ubuntu install instructions because those instructions use Ubuntu's GUI, which we don't have access to here.
using System; | |
using System.Runtime.InteropServices; | |
using System.Runtime.CompilerServices; | |
using Unity.Burst; | |
using Unity.Mathematics; | |
public static class CameraMath | |
{ | |
/// <summary> |
public static bool IntersectsBox( Vector3 a, Vector3 b, Vector3 c, Vector3 boxCenter, Vector3 boxExtents ) | |
{ | |
// From the book "Real-Time Collision Detection" by Christer Ericson, page 169 | |
// See also the published Errata at http://realtimecollisiondetection.net/books/rtcd/errata/ | |
// Translate triangle as conceptually moving AABB to origin | |
var v0 = ( a - boxCenter ); | |
var v1 = ( b - boxCenter ); | |
var v2 = ( c - boxCenter ); |
This will help me and hopefully other to get everything going and generate waifus images with Stable Diffusion, and maybe other txt2img things maybe.
I will probably add shields.io to make it more easier to read (maybe)
Tip
Check out the SD Anime Checkpoints list.
- Glossary
[ | |
{ | |
"cmd": "pwsh_gen", | |
"act": "pwsh_gen", | |
"enable": true, | |
"prompt": "I am going to only ask you about PowerShell code and script questions only. Your task is to provide me no matter what the question is a reply that can be solved in PowerShell. " | |
}, | |
{ | |
"cmd": "emp_thumbnail", | |
"act": "emp_thumbnail", |