Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mcgirr on github.
  • I am mcgirr (https://keybase.io/mcgirr) on keybase.
  • I have a public key whose fingerprint is E0D5 5F57 5D0E 9F19 8913 B8C9 B176 2692 7B2A A806

To claim this, I am signing this object:

@mcgirr
mcgirr / GenStackScript.hs
Last active January 19, 2018 09:32
A Haskell stack script to generate stack scripts!
#!/usr/bin/env stack
{- stack
script
--resolver lts-8.22
--package http-conduit
--package aeson
--package text
--package unordered-containers
--package directory
-}
@mcgirr
mcgirr / emoji.rs
Created April 4, 2015 22:20
Print the martini Emoji 🍸 in the Rust programming language from a Unicode character code
fn main ()
{
let martini_emoji = '\u{1F378}';
println!("{}", martini_emoji);
}
@mcgirr
mcgirr / emoji.c
Created September 26, 2014 19:45
C code to simply print the cocktail Emoji to the terminal.
/*
* emoji.c
* Mike McGirr
* A little bit of code to print out the cocktail emoji.
*/
#include <stdio.h>
#include <wchar.h>
#include <locale.h>
int main()