- on lion (and snow leopard i suppose), make sure you are using a 64 bit install of ghc. Also, unless you are suggesting an edit to these directions, please go ask people on the relevant mailing list or wiki for help :)
- Tested on Mac OS X 10.7.4, GHC 7.4.1, 64bit Haskell Platform 2012.2.0.0 (installer package) with Command Line Tools for XCode (June 2012).
- These notes were originally brought to you by Carter Schonwald; the “I” probably refers to him. Eric Kow will refer to himself in the third person).
- Forked from kowey (Eric Kow): https://gist.github.com/2420144
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 System.Random | |
-- Test validity of function on a given number of random tests. | |
testRandom :: Random a => StdGen -> Int -> (a -> Bool) -> Bool | |
testRandom gen n f = all f generated | |
where generated = take n $ randoms gen | |
-- Examples of use in GHCi: | |
-- r <- getStdGen | |
-- testRandom r 100 ((\a -> a==a) :: Int -> Bool) |
This is a brief and bare-bones guide to getting GHC 7.6.1 and the cabal-install
tool (the two basic things you'll need to do Haskell development) up and running
on Mac OS X 10.8 install.
The instructions given here worked for me, but YMMV.
Original on https://gist.github.com/1169332
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 Control.Exception | |
import Data.Typeable | |
import Development.Shake | |
import System.IO | |
main :: IO () | |
main = do | |
print "Starting..." | |
shakeArgs shakeOptions myRules `catch` things | |
where |
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
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE DeriveGeneric #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE TypeOperators #-} | |
module Main where | |
import Data.Proxy |
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 Control.Exception | |
import Data.Typeable | |
import Development.Shake | |
import System.IO | |
import System.Environment | |
main :: IO () | |
main = do | |
print "Starting..." | |
withArgs ["--exception"] (shakeArgs shakeOptions myRules) `catch` things |
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
''' | |
A Recurrent Neural Network (LSTM) implementation example using TensorFlow library. | |
This example is using the MNIST database of handwritten digits (http://yann.lecun.com/exdb/mnist/) | |
Long Short Term Memory paper: http://deeplearning.cs.cmu.edu/pdfs/Hochreiter97_lstm.pdf | |
Author: Aymeric Damien | |
Project: https://github.com/aymericdamien/TensorFlow-Examples/ | |
''' | |
from __future__ import print_function |
I hereby claim:
- I am jonathanjouty on github.
- I am jonathanjouty (https://keybase.io/jonathanjouty) on keybase.
- I have a public key ASCgrnHkOuw2NAXfwNDnZ2PSktqLoVO85NK5o_XOJsr7Uwo
To claim this, I am signing this object:
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>criterion report</title> | |
<script language="javascript" type="text/javascript"> | |
/*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */ | |
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function e(t){return"function"==typeof t&&"number"!=typeof t.nodeType},y=function e(t){return null!=t&&t===t.window},v={type:!0,src:!0,noModule:!0};function m(e,t,n){var i,o=(t=t||r).createElement |
OlderNewer