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
using System;
using System.Diagnostics;
using System.Reflection.Emit;
using System.Runtime.InteropServices;
using System.Security;
namespace TestPerf
{
public class Benchmark
{
using System;
namespace SelfDescribeMe
{
class Program
{
static void Main()
{
var random = new Random(); // Random number generator
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
using System;
using System.IO;
using System.Net;
using Theraot.Core;
namespace AWDC
{
internal class Program
{
private static void Main()
// Note: Code For LinqPad
void Main()
{
bool TryGetCoordinates(string cell, out int indexRow, out int indexCol)
{
indexRow = -1;
indexCol = -1;
if (cell == null)
{
<?php
/**
* CC-BY 3.0 Alfonso J. Ramos (theraot)
* Parser
*/
final class Parser
{
//------------------------------------------------------------
// Private (Class)
//------------------------------------------------------------
<?php
/**
* CC-BY 3.0 Alfonso J. Ramos (theraot)
* UTF8
*/
final class UTF8
{
//------------------------------------------------------------
// Private (Class)
//------------------------------------------------------------
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 };
@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;
using System.Linq;
class Program
{
public static void Main()
{
var encoded = LEB128.EncodeSignedLeb128FromInt32(624485);
var str = string.Concat(encoded.Select(entry => entry.ToString("X")));