Skip to content

Instantly share code, notes, and snippets.

View TheDarkCode's full-sized avatar

Mark Hamilton TheDarkCode

View GitHub Profile
@TheDarkCode
TheDarkCode / Program.cs
Created January 1, 2019 17:54
Qanon Post Parser
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
@TheDarkCode
TheDarkCode / Program.cs
Created January 4, 2019 04:34
QMap Command Line
using HtmlAgilityPack;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
@TheDarkCode
TheDarkCode / QClockExtensions.cs
Created January 5, 2019 22:23
QClock Conversion Extensions
using System;
using System.Collections.Generic;
using System.Text;
namespace QClockExtensions
{
public static class DateExtensions
{
public static int ToQClockMinute(this DateTime date)
{
@TheDarkCode
TheDarkCode / Gematria.swift
Last active May 13, 2019 07:36
Swift Gematria - English Ordinal Example
public extension Character {
func EnglishOrdinal() - > Int {
switch (self) {
case "a":
return 1;
case "b":
return 2;
@TheDarkCode
TheDarkCode / DateNumerology.swift
Created May 13, 2019 07:33
Swift Numerology - Date Numerology Example
public extension Int {
var digits: [Int] {
return String(self).compactMap{ Int(String($0)) }
}
var reduction: Int {
return self.digits.reduce(0,+)
}
}