Skip to content

Instantly share code, notes, and snippets.

View bolorundurowb's full-sized avatar

Bolorunduro Winner-Timothy bolorundurowb

View GitHub Profile
@bolorundurowb
bolorundurowb / states-lgas.json
Created January 11, 2020 13:53
A comprehensive list of the states and local government areas in Nigeria
[
{
"name": "Abia State",
"localGovernmentAreas": [
{
"name": "Aba North"
},
{
"name": "Aba South"
},
@bolorundurowb
bolorundurowb / Program.cs
Created February 28, 2020 14:13
A hacky system for finding all free time slots given a list of available periods and a list of booked periods
using System;
using System.Linq;
using System.Collections.Generic;
class MainClass
{
public static void Main(string[] args)
{
var daySlots = new List<Availability>
@bolorundurowb
bolorundurowb / CharFrequencyCounter.cs
Created April 19, 2021 09:14
A simple C# script to count and display character frequency in a given string
public class Program
{
public static void Main()
{
var sentence = AnsiConsole.Prompt(new TextPrompt<string>("What's your [green]sentence[/]?")
.Validate(input =>
string.IsNullOrWhiteSpace(input)
? ValidationResult.Error("An input is required!")
: ValidationResult.Success()));
@bolorundurowb
bolorundurowb / .eslintrc.json
Created September 18, 2021 13:52
Eslint config with rules I believe are sensible and consistent
{
"env": {
"node": true,
"es2021": true,
"commonjs": true,
"mocha": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12