Skip to content

Instantly share code, notes, and snippets.

View Eckankar's full-sized avatar

Sebastian Paaske Tørholm Eckankar

View GitHub Profile
Fundet 1632 optimale løsninger af længde 23:
wolf finch hamster roebuck koodoo otter ram mustang golilla alpaca alligator rhinoceros sheep platypus sloth hyena aardvark kitten newt toad duckbill lizard donkey
wolf finch hog gemsbok koodoo otter ram mustang golilla alpaca alligator rhinoceros sheep platypus sloth hyena aardvark kitten newt toad duckbill lizard donkey
wolf finch hedgehog gemsbok koodoo otter ram mustang golilla alpaca alligator rhinoceros sheep platypus sloth hyena aardvark kitten newt toad duckbill lizard donkey
wolf finch hamster roebuck kangaroo otter ram mustang golilla alpaca alligator rhinoceros sheep platypus sloth hyena aardvark kitten newt toad duckbill lizard donkey
wolf finch hog gemsbok kangaroo otter ram mustang golilla alpaca alligator rhinoceros sheep platypus sloth hyena aardvark kitten newt toad duckbill lizard donkey
wolf finch hedgehog gemsbok kangaroo otter ram mustang golilla alpaca alligator rhinoceros sheep platypus sloth hyena aardvark kitten newt toad duckbill lizard do
// ==UserScript==
// @name Reimar Your Life
// @namespace http://mathemaniac.org
// @version 1.0
// @description Johnny Reimar.
// @include https://*
// @include http://*
// @copyright 2015, Sebastian Paaske Tørholm
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js
// @require https://github.com/jaysalvat/jquery.facedetection/raw/master/dist/jquery.facedetection.min.js
import Text.ParserCombinators.ReadP
import Data.Char
schar :: Char -> ReadP Char
schar c = skipSpaces >> char c
word :: ReadP String
word = skipSpaces >> munch1 isAlphaNum
wordlist :: ReadP [String]
signature Term =
sig
type color
val black : color
val red : color
val green : color
val yellow : color
val blue : color
val magenta : color

Keybase proof

I hereby claim:

  • I am Eckankar on github.
  • I am sebbe (https://keybase.io/sebbe) on keybase.
  • I have a public key whose fingerprint is C43A 7154 902E D22B 58CE BAAA D843 3D78 6A2D A3DE

To claim this, I am signing this object:

#!/usr/bin/env perl
use 5.012;
use warnings;
use IO::Prompt;
use WWW::Mechanize;
=pod
Sets up m1b and n2d for printing on cups.
Requirements:
@Eckankar
Eckankar / bf.c
Last active August 29, 2015 14:00
/* Simple naïve brainfuck interpreter.
Author: Sebastian Paaske Tørholm <sebbe@diku.dk>
I release this code into the public domain. */
#include <stdio.h>
#include <stdlib.h>
// Memory cells. Implemented as a doubly linked list
typedef struct memory_t {
struct memory_t *prev;
@Eckankar
Eckankar / waves.nb
Created April 18, 2014 22:33
Making wave animations in Mathematica
circleLine[x_, y_, s_] :=
Module[{d = 3/2*Sin[s + (x/2 + y)/10*Pi] + 3/2},
Graphics[
If[{x, y} == {7, 7}, {LightGray, Line[{{x, y}, {x + 3, y - 3}}],
Red}, {}]~Join~
{Circle[{x + d, y - d}, 0.1]}
]
];
frames = Table[
@Eckankar
Eckankar / fisher-yates.sml
Last active December 28, 2015 22:29
Fisher-Yates shuffle i SML
;load "Random";
local
val rng = Random.newgen ()
(* elemFun xs 0 omdanner en liste xs til en funktion f
* Dvs, f i = x, hvis x er på plads i i xs. *)
fun elemFun [] _ _ = raise Domain
| elemFun (x::xs) i n = if n = i then x else elemFun xs (i+1) n
signature LIST =
sig
type t
val toList : t list
val head : t option
(* structure Tail : LIST *)
val empty : bool