This file contains 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
# NOTE: Currently not working | |
# Gets all the way to the final ./configure step and exists with error: Unknown CPU | |
FROM haskell:7.10.2 | |
RUN apt-get update | |
WORKDIR /opt/compiler | |
# Install core dependencies |
This file contains 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
/* @flow */ | |
export type Baz = { | |
bar: number; | |
baz: Array<string>; | |
}; |
This file contains 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
embed.spotify.com/openspotify/?spuri=spotify:track:2IuWB214OCchhPrBK8OtIR&closedelay=5000 |
This file contains 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
var Path = require('path'); | |
var getRegCommand = function() { | |
var command = 'reg.exe'; | |
if (process.env.SystemRoot) { | |
command = Path.join(process.env.SystemRoot, 'System32', command); | |
} | |
return command; | |
} |
This file contains 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
module Transformers.MaybeT where | |
import Control.Applicative | |
import Control.Monad | |
import Control.Monad.Trans | |
data MaybeT m a = MaybeT { runMaybeT :: m (Maybe a) } | |
This file contains 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 {ActionTypes} from 'wagon/constant/Constants'; | |
import {makeStoreStrict} from 'wagon/store/store-utils'; | |
// Initial Store Data | |
const initialData = { | |
tablePages: {}, | |
}; | |
This file contains 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
var readline = require('readline'); | |
var fs = require('fs'); | |
var DEFAULT_DIR = '/usr/local/'; | |
var DEFAULT_NOTE_FILE = 'default.notes'; | |
// TODO: make file if it does not exist | |
var DEFUALT_PATH = makePath(DEFAULT_DIR, DEFAULT_NOTE_FILE); | |
var commands = { |
This file contains 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
function* primeGenerator() { | |
var n = 2; | |
while(true) { | |
if(isPrime(n)) { | |
yield n; | |
} | |
n++; | |
} |
This file contains 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
function curry(f) { | |
return curryN(f.length, f); | |
} | |
function curryN(n, f) { | |
return function() { | |
var args = toArray(arguments); | |
if (args.length >= n) { |
This file contains 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
module Sorter where | |
import Data.Monoid | |
import Data.List | |
import Data.Ord | |
data Sorter a = Sorter (a -> a -> Ordering) | |