This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import R from 'ramda'; | |
import S from 'sanctuary'; | |
import { equal } from 'assert'; | |
// The gist: | |
function myModule() { | |
const myStore = createMonadicReducer({ | |
// Plain (a -> b) functions are wrapped so that they return a Maybe | |
inc: pure(R.inc), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
from gi.repository import Gtk, Gdk | |
import sys | |
class MyWindow(Gtk.Window): | |
def __init__(self): | |
Gtk.Window.__init__(self, title="Hello World") | |
self.set_name('MyWindow') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Frédéric Grosshans, 19 January 2012 | |
Nathan R. Yergler, 6 June 2010 | |
This file does not contain sufficient creative expression to invoke | |
assertion of copyright. No warranty is expressed or implied; use at | |
your own risk. |