Skip to content

Instantly share code, notes, and snippets.

View charlesetc's full-sized avatar
πŸͺ
Flying kites in NYC

Charles Chamberlain charlesetc

πŸͺ
Flying kites in NYC
View GitHub Profile
Shoes.app title: 'Button Test' do
stack do
banner 'Banner', align: 'center'
button 'Button', align: 'center' do
exit
end
# node.jl
# A Node Type
# with a name
# and a list of children
type Node
name :: Char
children :: Array{Node}
Node(n) = new(n, [])
Node(a, b) = new(a, b)
" Note: Skip initialization for vim-tiny or vim-small.
if 0 | endif
if has('vim_starting')
if &compatible
set nocompatible " Be iMproved
endif
" Required:

Keybase proof

I hereby claim:

  • I am charlesetc on github.
  • I am charlesetc (https://keybase.io/charlesetc) on keybase.
  • I have a public key whose fingerprint is 146C F806 71CA 1172 8974 AF99 904F D05B AACD F50E

To claim this, I am signing this object:

impl<T> Monad<T, Vec<T>> for Vec<T> {
fn returns(inside: T) -> Self {
vec!(inside)
}
fn bind<'a>(outside: Self, op: Box<Fn(T) -> Self + 'a>) -> S
#[macro_export]
macro_rules! then {
($op1:expr => $op2:expr) => {
Monad::bind($op1, Box::new(move |_| {
$op2
}))
}
}
// Kind of like `do` notation in haskell.
@charlesetc
charlesetc / breaking_margin.re
Created July 17, 2016 17:40
an edited version of simple_example.ml which shows the formatter break at width 68
/*
A fairly complete demonstration of the features provided
by Easy-format.
*/
open Easy_format;
let list = {
...list,
list_style: Some "list",
67
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function hello
(arg1, arg2, arg1, arg2, arg1, arg2, arg1, arg2, arg1, arg2,
arg1, arg2, arg1, arg2, arg1, arg2, arg1, arg2, arg1, arg2,
arg1, arg2, arg1, arg2, arg1, arg2, arg1, arg2, arg1, arg2,
arg1, arg2, arg1, arg2, arg1, arg2, arg1, arg2, arg1, arg2,
arg1, arg2, arg1, arg2, arg1, arg2, arg1, arg2, arg1, arg2,
arg1, arg2, arg1, arg2, arg1, arg2, arg1, arg2, arg1, arg2,
arg1, arg2, arg1, arg2, arg1, arg2, arg1, arg2, arg1, arg2,
@charlesetc
charlesetc / emojis.txt
Created August 13, 2016 21:27
'Tis surprisingly hard to get a proper list of emojis
πŸ˜„
πŸ˜ƒ
πŸ˜€
😊
☺
πŸ˜‰
😍
😘
😚
πŸ˜—
@charlesetc
charlesetc / emojis.txt
Created August 13, 2016 21:27
'Tis surprisingly hard to get a proper list of emojis
πŸ˜„
πŸ˜ƒ
πŸ˜€
😊
☺
πŸ˜‰
😍
😘
😚
πŸ˜—