Skip to content

Instantly share code, notes, and snippets.

View ianido's full-sized avatar

Israel Garcia ianido

  • Miami, FL
View GitHub Profile
@ianido
ianido / byteArrayToHex.cs
Last active December 12, 2019 00:03
Byte Array to Hex
// This code is ready to run in https://dotnetfiddle.net/
// Message parser: https://neapay.com/online-tools/iso8583-message-parser.html
using System;
public class Program
{
public static void Main()
{
var mBytes = new byte[] {0,23,0,0,8,0,32,0,1,0,0,128,0,0,153,0,0,0,7,51,51,51,51,51,51,51,51};
@ianido
ianido / Global.asax.cs
Created August 20, 2019 18:07 — forked from davidfowl/Global.asax.cs
ASP.NET MVC and ServiceCollection sample
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using Microsoft.Extensions.DependencyInjection;
using WebApplication16;
using WebApplication16.Controllers;
#region Instructions
/*
* You are tasked with writing an algorithm that determines the value of a used car,
* given several factors.
*
* AGE: Given the number of months of how old the car is, reduce its value one-half
* (0.5) percent.
* After 10 years, it's value cannot be reduced further by age. This is not
* cumulative.
*