Skip to content

Instantly share code, notes, and snippets.

@thedillonb
thedillonb / moo
Last active August 29, 2015 14:17 — forked from liammclennan/gist:50d58f366b99f38f5926
Euclid usage
euclid.start([{
title: 'Home',
entry: function () {
return server.getDecks().then(function (decks) {
loginChanges();
var data = {decks: decks};
return [components.Home(data), data];
}, function () {
return [components.NotAuthenticated(), {}];
});
@thedillonb
thedillonb / Hello.markdown
Last active August 29, 2015 14:18
This is a test. Moo
  • This is now

  • A markdown

  • Document!

  • It even

  • Does

  • This

@thedillonb
thedillonb / test.md
Last active August 29, 2015 14:22
Awesome Sauce

This is a test of everything!

@thedillonb
thedillonb / logstash-sentry.rb
Created June 26, 2015 00:44 — forked from clarkdave/logstash-sentry.rb
(Logstash) Sentry output plugin. Moo
# The MIT License (MIT)
# Copyright (c) 2014 Dave Clark
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@thedillonb
thedillonb / program.fs
Created July 26, 2015 01:12
A very simple F# example using OWIN
open System
open Owin
open Microsoft.Owin
let doStuff (x:IOwinContext) =
x.Response.StatusCode <- 200
x.Response.WriteAsync "Hello!"
[<EntryPoint>]
let main argv =
@thedillonb
thedillonb / permute-characters.js
Last active August 30, 2015 02:57 — forked from h2non/permute-characters.js
Recursive implementation of string characters permutation covering all possible cases without duplication
/**
* Recursive implementation of string characters permutation
* covering all possible cases without duplication
*/
function permute(str) {
var stack = []
if (str.length === 1) {
return [ str ]
}
@thedillonb
thedillonb / Moocow
Created August 30, 2015 21:27
Awesome!
Hello
@thedillonb
thedillonb / extract.rb
Created February 1, 2014 17:07
Extracts glyphs from a TTF format into multiple PNG files using ImageMagick. Boo
# Usage: ruby extract.rb <TTF> <size: WxH> <output dir>
require 'ttfunk'
file = TTFunk::File.open(ARGV[0])
size = ARGV[1]
output_dir = ARGV[2]
`mkdir #{output_dir}`
cmap = file.cmap
chars = {}
@thedillonb
thedillonb / test.cs
Created November 23, 2012 05:25
Test Gist
using System;
namespace Test
{
}
<?php
echo "Meow!";
?>