Skip to content

Instantly share code, notes, and snippets.

@noobymatze
noobymatze / init.el
Last active September 14, 2022 18:10
The beginnings of a setup script to make setting up a new machine quicker
;
; Personal information
;
(setq user-full-name "Matthias Metzger")
;
; Online package locations
;
@noobymatze
noobymatze / fop-xml.ts
Created January 5, 2018 13:10
Add some types to allow rendering FOP Xml
/**
* `Xml` describes a simple XML document, specific to FOP.
*
* This type is used as the result for TSX, which allows writing
* Xml nodes in TypeScript. Here is an example for valid TypeScript
* code, using this library (provided you saved it in a file ending
* with .tsx, for example person.tsx):
*
* ```
* // person.tsx
@noobymatze
noobymatze / Main.elm
Last active October 25, 2016 14:26
Break virtual dom on IE 11
module Main exposing (main)
import Html exposing (Html)
import Html.Attributes as A
import Html.Events as E
import Html.App as App
import Platform.Cmd
type alias Model =
@noobymatze
noobymatze / birthday.erl
Created December 15, 2015 14:58
Birthday fun in Erlang
% Usage:
% $ erl
% > c(birthday).
% > Pid = birthday:start().
% > birthday:greet(Pid, "Waschti").
-module(birthday).
-export([start/0, greet/2]).
birthday(Greets) ->
receive
{- Can be tested at: http://elm-lang.org/try
-}
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (onClick)
import Signal exposing (Signal, Address)
import Random exposing (generate, int, Seed)
import String exposing (concat)