The JSON data is in the following format
{
"Genesis": {
"1": {
"1": "In the beginning..." ,
"2": "..."
| #! /usr/bin/env bash | |
| # WARNING NB This script wipes out the targeted host's root filesystem when it | |
| # runs to completion. Any errors halt execution. set -x is used to help debug, | |
| # as often a failed run leaves the system in an inconsistent state, requiring a | |
| # rebuild (in DigitalOcean panel: Droplet Settings -> "Destroy" -> "Rebuild | |
| # from original"). | |
| # | |
| # TO USE: | |
| # - Add any custom config you want (see notes below) |
| VGG_ILSVRC_19_layers_train_val.prototxt | |
| name: "VGG_ILSVRC_19_layers" | |
| layers { | |
| name: "data" | |
| type: DATA | |
| include { | |
| phase: TRAIN | |
| } | |
| transform_param { | |
| crop_size: 224 |
| { pkgs ? import <nixpkgs> {} }: | |
| with pkgs; | |
| let | |
| su_exec = pkgs.stdenv.mkDerivation { | |
| name = "su-exec-0.2"; | |
| src = fetchurl { | |
| url = https://github.com/ncopa/su-exec/archive/v0.2.tar.gz; | |
| sha256 = "09ayhm4w7ahvwk6wpjimvgv8lx89qx31znkywqmypkp6rpccnjpc"; |
| {-# LANGUAGE ScopedTypeVariables #-} | |
| {-# LANGUAGE DataKinds #-} | |
| {-# LANGUAGE KindSignatures #-} | |
| {-# LANGUAGE TypeOperators #-} | |
| {-# LANGUAGE FlexibleContexts #-} | |
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE TypeSynonymInstances #-} | |
| {-# LANGUAGE UndecidableInstances #-} | |
| {-# LANGUAGE TypeFamilies #-} | |
| {-# LANGUAGE PolyKinds #-} |
| ;; 1. place this in ~/.emacs.d/private/intero/packages.el | |
| ;; 2. add intero, syntax-checking and auto-completion to your | |
| ;; ~/.spacemacs layer configuration & remove the haskell layer | |
| ;; if you were using that before | |
| ;; 3. make sure you have stack installed http://haskellstack.org | |
| ;; 4. fire up emacs & open up a stack project's source files |
| {-#LANGUAGE BangPatterns #-} | |
| module Main (main) where | |
| import Data.Conduit as C | |
| import qualified Data.Conduit.Combinators as C | |
| import Pipes as P | |
| import qualified Pipes.Prelude as P | |
| import qualified Streaming.Prelude as Str |
| {-#LANGUAGE NoMonomorphismRestriction #-} | |
| module Main (main) where | |
| import Control.Monad (void) | |
| import Control.Monad.Identity | |
| import Criterion.Main | |
| import qualified Data.Conduit as C | |
| import qualified Data.Conduit.Combinators as CC | |
| import qualified Data.Conduit.List as C | |
| import qualified Data.Machine as M |
| {-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
| import Control.Monad.IO.Class | |
| import Control.Monad.Trans.Class | |
| import Prelude hiding (log) | |
| -------------------------------------------------------------------------------- | |
| -- The API for cloud files. | |
| class Monad m => MonadCloud m where | |
| saveFile :: Path -> Bytes -> m () |
| {-# LANGUAGE GADTs, TypeInType, DataKinds, TypeFamilies #-} | |
| {-# LANGUAGE TypeOperators #-} | |
| {-# LANGUAGE TypeApplications #-} | |
| import GHC.TypeLits | |
| import GHC.Types | |
| import Data.Singletons | |
| import Data.Singletons.Prelude | |
| data Format = Lit Symbol | Str | Shown Type |