Skip to content

Instantly share code, notes, and snippets.


Michael J Erwin metame

View GitHub Profile
rainbyte /
Last active Oct 25, 2017
Some thoughts about monads

Monads Conceptually

Fundamental knowledge

Before talking about monads, we should review 3 concepts:


They appear in the form f :: a -> b, where :: indicates the type of f.


Applied Functional Programming with Scala - Notes

Copyright © 2016-2018 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.

val square : Int => Int = x => x * x
View jquery-datatables-webpack
Here's how to make jQuery DataTables work with npm and webpack. DT checks for AMD compatibility first
which breaks when you're using CommonJS with webpack.
Install DT core: npm install
Install a DT style: npm install (bootstrap)
Install the imports-loader webpack plugin:
Create a loader "exception" just for DT in webpack.config.js:
module: {
loaders: [
joaoneto / login.test.js
Created Mar 13, 2013
Login session test with mocha
View login.test.js
var request = require('supertest'),
should = require('should'),
app = require('../server');
var Cookies;
describe('Functional Test <Sessions>:', function () {
it('should create user session for valid user', function (done) {
ashsmith / .gitignore
Last active Apr 22, 2022
Magento 1.x .gitignore
View .gitignore
# Never save database creditentials in your repo. Keep a dummy copy with a different name eg ""
# If you'd like to keep the downloader, use the following instead:
# downloader/.cache
# downloader/cache.cfg
# downloader/connect.cfg
# All of the var folders can be excluded.
trey /
Last active May 24, 2022
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global "Your Name"

git config --global ""