Skip to content

Instantly share code, notes, and snippets.

View bitsydoge's full-sized avatar
:octocat:

Bitsy bitsydoge

:octocat:
View GitHub Profile
@bitsydoge
bitsydoge / RhombusControl.gd
Last active March 6, 2020 13:23
A custom node to draw Rhombus/Diamond with color or texture/normalmap and project it or not. Tested on Godot 3.2
tool
extends Control
class_name RhombusControl
export (Color) var color = Color(1,1,1) setget set_color
export (Texture) var texture = null setget set_texture
export (Texture) var normal_texture = null setget set_normal_texture
export (bool) var antialiasing = true setget set_antialiasing
export (bool) var projection = true setget set_projection
@bitsydoge
bitsydoge / IsoCube.gd
Last active June 29, 2020 19:51
Godot : Generate isometric cube with different Texture or Color on each face. You can set the height size. It's optimized with cache
tool
extends Control
class_name IsoGenerator
export (Texture) var top_texture setget set_top_texture
export (Color) var top_color : = Color(1,1,1) setget set_top_color
export (Texture) var left_texture setget set_left_texture
export (Color) var left_color : = Color(1,1,1) setget set_left_color
export (Texture) var right_texture setget set_right_texture
@bitsydoge
bitsydoge / SimpleGrid.gd
Last active September 26, 2021 20:30
Simple Control grid for godot
tool
extends Control
class_name SimpleGrid
export (bool) var fixed_cell_size := true setget set_fixed_cell_size
export (Vector2) var cell_size = Vector2(16,16) setget set_cell_size
export (Vector2) var grid_size = Vector2(16,24) setget set_grid_size
enum Mode { EDITOR, DEBUG, ALWAYS }
export(Mode) var mode = Mode.EDITOR
@bitsydoge
bitsydoge / CirclePolygon2D.gd
Last active September 26, 2021 21:04
Easly generate circle as Polygon2D
tool
extends Polygon2D
class_name CirclePolygon2D
export (int, 3, 1024, 1) var points = 32 setget set_points
export (float, EXP, 0.1, 1024) var radius = 32.0 setget set_radius
export (bool) var regenerate = true setget set_regenerate
func set_regenerate(new):
@bitsydoge
bitsydoge / ShowAABBNode2D.gd
Last active September 26, 2021 20:27
Show AABB of a Node2D
extends Node2D
export (NodePath) var node
onready var __node2d : Node2D = get_node(node)
func draw_aabb(points, color = Color(1.0, 0.0, 0.0)):
draw_rect(_points_to_aabb(points), color)
func _points_to_aabb(points):
var top_left = Vector2(-INF, -INF)

Privacy Policy

Bitsy Dev Studio built the Birdy World app as a Free app. This SERVICE is provided by Bitsy Dev Studio at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at Birdy World unless otherwise defined in this Privacy Policy.

param (
[Parameter(Mandatory = $true)]
[ValidateScript({Test-Path $_ -PathType Leaf})]
[String]$ImagePath,
[Parameter(Mandatory = $true)]
[ValidateRange(1, [int]::MaxValue)]
[Int32]$CasesX,
[Parameter(Mandatory = $true)]
param(
[Parameter(Mandatory=$true)]
[string]
$rootDirectory,
[Parameter(Mandatory=$true)]
[string]
$filePattern,
[Parameter(Mandatory=$false)]
import os
import requests
import shutil
from bs4 import BeautifulSoup
from zipfile import ZipFile
from tqdm import tqdm
import tempfile
import argparse
import platform
@bitsydoge
bitsydoge / one_line_system_info.ps1
Last active November 9, 2023 16:34
One line system info
clear;"OS: $((gcim Win32_OperatingSystem).Caption.Trim()) ($(([System.Environment]::OSVersion.Version).ToString()))";"Host: $env:COMPUTERNAME";"Shell: $PSHOME";"UP: $((gcim Win32_OperatingSystem).LastBootUpTime)";"CPU: $((gcim Win32_Processor).Name)";"GPU: $((gcim Win32_VideoController).Name)";"RAM: $(([math]::Round((gcim Win32_ComputerSystem | select -ExpandProperty TotalPhysicalMemory) / 1GB))) GB"