Skip to content

Instantly share code, notes, and snippets.

View ohlawdie's full-sized avatar
😟

Ohlawdie ohlawdie

😟
  • Michigan
View GitHub Profile
@ohlawdie
ohlawdie / 1598890610.txt
Created August 31, 2020 16:16
Created with Copy to Gist
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;
public class Program
{
public static void Main(String[] args)
@ohlawdie
ohlawdie / Func-tionalCombinatorPredicates
Last active September 2, 2020 00:20
Gulag-derived predicate syntax
public static Func<T, bool> Not<T>(this Func<T, bool> predicate)
{
    return a => !predicate(a);
}
 
@ohlawdie
ohlawdie / hourglass.cs
Last active September 2, 2020 01:18
hackerrank 2darr
public static int maxHourGlass(int[][]arr)
{
int noRow = arr.GetUpperBound(0);
int noCol = arr[0].Length;
int max = getHourGlass(arr, 0, 0);
//arr has all the data now
//we will get a hour glass at each position excpept the last two
for (int i = 0; i <= noRow- 2; i++)
@ohlawdie
ohlawdie / ag.txt
Created September 24, 2020 21:43
ag grep
Ag
ag -L -print-all-files runtime error