Skip to content

Instantly share code, notes, and snippets.

View theraot's full-sized avatar

Alfonso J. Ramos theraot

  • Barranquilla - Atlántico - Colombia
View GitHub Profile
@theraot
theraot / binary_serializer.gd
Last active February 23, 2024 00:04
BinarySerializer for Godot 4.2+
@tool
class_name BinarySerializer
extends Object
## Utility class to save and load data from StreamPeerBuffer.
# INFO: Used scripts
# - ScriptHelper.
@theraot
theraot / mouse_lasso.gd
Last active April 19, 2021 18:23
Draw loops with the mouse
extends Node2D
class LoopCreator:
func is_type(type): return type == "LoopCreator" or .is_type(type)
func get_type(): return "LoopCreator"
signal loop(points_array)
var _points_array = PoolVector2Array()
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
public static void Main()
{
var encoded = LEB128.EncodeSignedLeb128FromInt32(624485);
var str = string.Concat(encoded.Select(entry => entry.ToString("X")));
@theraot
theraot / Parser.cs
Last active December 18, 2021 23:39
#r "nuget:Theraot.Core/3.0.3"
// This file is for RoslynPad
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Theraot.Core;
using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
{
// This is based on an old test from Mono
Console.WriteLine("Hello World");
var trio = new SortedSet<int> { 0, 1, 2 };
<?php
/**
* CC-BY 3.0 Alfonso J. Ramos (theraot)
* UTF8
*/
final class UTF8
{
//------------------------------------------------------------
// Private (Class)
//------------------------------------------------------------
<?php
/**
* CC-BY 3.0 Alfonso J. Ramos (theraot)
* Parser
*/
final class Parser
{
//------------------------------------------------------------
// Private (Class)
//------------------------------------------------------------
// Note: Code For LinqPad
void Main()
{
bool TryGetCoordinates(string cell, out int indexRow, out int indexCol)
{
indexRow = -1;
indexCol = -1;
if (cell == null)
{
using System;
using System.IO;
using System.Net;
using Theraot.Core;
namespace AWDC
{
internal class Program
{
private static void Main()
Acrocephalus paludicola Insufficient 64.1 Insufficient Insufficient Insufficient 11.53 Insufficient Insufficient
Stercorarius parasiticus 328.9 Insufficient Insufficient Insufficient 416.4 Insufficient Insufficient Insufficient
Sterna paradisaea 272.7 245.9 Insufficient Insufficient 103.8 106.0 Insufficient Insufficient
Recurvirostra avosetta Insufficient Insufficient Insufficient Insufficient Insufficient Insufficient Insufficient Insufficient
Tyto alba 292.2 289.0 292.3 292.2 337.3 313.3 311.5 354.3
Branta leucopsis 411.2 396.8 421.1 399.9 1.83 1.70 1.93 1.72
Sylvia nisoria Insufficient 88.2 Insufficient Insufficient Insufficient 24.67 Insufficient Insufficient
Limosa lapponica &nbsp;<font 212.5 225.7 277.9 331.0
Anser fabalis Insufficient Insufficient Insufficient Insufficient Insufficient Insufficient Insufficient Insufficient
Panurus biarmicus 59.8 55.7 60.7 58.8 15.13 13.90 15.31 14.93