Skip to content

Instantly share code, notes, and snippets.

View dhedegaard's full-sized avatar

Dennis Hedegaard dhedegaard

View GitHub Profile
dhedegaard / apex bite
Last active December 22, 2020 21:18
weak auras
dhedegaard / deedees.user.js
Last active June 24, 2020 06:30
Simplifies Dee dee's ordering via URLs
// How to use:
// 1. Install the TamperMonkey Chrome extension.
// 2. Click on the extension in the address bar and go to "Dashboard".
// 3. Inside the extension, go to "Utilities" and "Install from URL":
// <>
// 4. Tampermonkey will not show you the script, feel free to read through it and click "Install".
// 5. Go to, find a product and change the choices for the product.
// 6. You will now see that the URL has some GET parameters in it.
dhedegaard / hqwrapper.go
Last active January 6, 2016 20:18
package main
import (
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Timers;
from __future__ import absolute_import, division
from copy import deepcopy
from cStringIO import StringIO
def solve(board):
Returns a solved version of the board, if it is solvable.
:param board: The board to solve, as a list of lists, of integers from
<!DOCTYPE html>
<html lang="en">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="//">
<title>PoE XP Calculator</title>
<style rel="stylesheet">
.hidden {
display: none;
dhedegaard / euler72.sql
Last active December 30, 2015 23:18
-- Euler 72 - implemented as a postgresql 9.x function.
-- A very brute forceish approach to see how psql handles lots of data
-- in a temporary table while doing lots of calculations.
drop function if exists gcd(integer, integer);
drop function if exists euler72(integer);
create function gcd (a integer, b integer) returns integer as $$
while a <> b loop
if a > b then
dhedegaard /
Last active December 24, 2015 08:09
#!/usr/local/bin/env python
# -*- coding: utf-8 -*-
import os
import glob
import hashlib
import Tkinter as tk
import win32api
>>> sum([int(e) for e in str(2**1000)])