Skip to content

Instantly share code, notes, and snippets.

View luiseduardohd's full-sized avatar
🎯
Focusing

Luis Hernandez luiseduardohd

🎯
Focusing
View GitHub Profile
@luiseduardohd
luiseduardohd / Program.cs
Created May 24, 2022 17:04
United Rentals Interview code
using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
namespace Test1
{
class MainClass
{
public static void Main(string[] args)
@luiseduardohd
luiseduardohd / TypedValueConverter.cs
Last active April 9, 2021 18:26
TypedValueConverter to have typed objects in the conversion
public abstract class TypedValueConverter<TObject, TTarget> : IValueConverter
{
public Type targetType { get; set; }
public object parameterConvert { get; set; }
public object parameterConvertBack { get; set; }
public CultureInfo cultureInfo { get; set; }
public object Convert(object value, Type targetType, object parameter, CultureInfo cultureInfo)
{
@luiseduardohd
luiseduardohd / Program.cs
Created July 31, 2020 19:14
FuturisTech interview problem
/*
* Write a function to read digits in the string. and then report the frecuency of each digit.
* Then show digits sorted by frecuency, and their frecuency.
* */
using System;
using System.Collections.Generic;
using System.Linq;
namespace FuturisTech
{
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using System.Linq;
namespace TestConsole
{
class Program
{
using System;
public class Program
{
public static void Main()
{
Console.WriteLine("Hello World");
string ipString = "192.168. 1.1";
Console.WriteLine("isValidIPV4 "+ipString+":"+isValidIPV4(ipString));
@luiseduardohd
luiseduardohd / AsyncObservableCollection.cs
Created May 16, 2020 19:35
AsyncObservableCollection
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.Serialization;
using System.Threading;
@luiseduardohd
luiseduardohd / XamarinSwizzle.cs
Created November 25, 2017 11:52
Xamarin swizzle
using System;
using System.Runtime.InteropServices;
using MonoTouch.ObjCRuntime;
using MonoTouch.Foundation;
namespace XamarinSwizzle
{
[Register("TestClass")]
public class TestCode : NSObject
{
@luiseduardohd
luiseduardohd / Wizeline problem
Created July 21, 2016 16:23
Wizeline interview problem
using System;
namespace TestWize
{
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
@luiseduardohd
luiseduardohd / Merry Christmas and Happy new Year
Created January 1, 2016 05:21
Merry Christmas and Happy new Year
set fbUrl to "https://www.facebook.com/messages/"
set return to "https://www.facebook.com/messages/"
--Key codes
--http://apple.stackexchange.com/questions/36943/how-do-i-automate-a-key-press-in-applescript
--http://softwares.bajram.com/softwares/#Full_Key_Codes
--Voy en la fila 30 del excel
--androidverde falta
--después de como 60 me marco facebook que necesito validar que no soy un robot
--me quede en yaquelin weber
--despues de 30 marco eso.
@luiseduardohd
luiseduardohd / SimulatedTransparentViewController
Created October 16, 2014 21:50
This makes uiviewcontroller appears like popup.
// This file has been autogenerated from parsing an Objective-C header file added in Xcode.
using System;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using System.Collections.Generic;
using MonoTouchPlus;
using System.Drawing;