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
extends VBoxContainer | |
const FONT_SIZE = 40 | |
var android_runtime: Object | |
var location_manager: JavaObject | |
var output_label: Label | |
var normal_label_settings:LabelSettings |
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
@tool | |
class_name BinarySerializer | |
## Utility class to save and load data from StreamPeerBuffer. | |
## Number of bytes in 32 bits. | |
const BITS32 := 4 |
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
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() | |
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
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"))); |
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
#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; |
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
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 }; |
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
<?php | |
/** | |
* CC-BY 3.0 Alfonso J. Ramos (theraot) | |
* UTF8 | |
*/ | |
final class UTF8 | |
{ | |
//------------------------------------------------------------ | |
// Private (Class) | |
//------------------------------------------------------------ |
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
<?php | |
/** | |
* CC-BY 3.0 Alfonso J. Ramos (theraot) | |
* Parser | |
*/ | |
final class Parser | |
{ | |
//------------------------------------------------------------ | |
// Private (Class) | |
//------------------------------------------------------------ |
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
// Note: Code For LinqPad | |
void Main() | |
{ | |
bool TryGetCoordinates(string cell, out int indexRow, out int indexCol) | |
{ | |
indexRow = -1; | |
indexCol = -1; | |
if (cell == null) | |
{ |
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
using System; | |
using System.IO; | |
using System.Net; | |
using Theraot.Core; | |
namespace AWDC | |
{ | |
internal class Program | |
{ | |
private static void Main() |
NewerOlder