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
let | |
defaultSwcNeuron = https://raw.githubusercontent.com/reuron/reuron-lib/main/defaultSwcNeuron.ffg | |
let | |
stimulator = | |
Neuron/stimulator { | |
envelope: { | |
period_sec: 0.02, | |
onset_sec: 0.01, | |
offset_sec: 0.0105 | |
}, |
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
let | |
prelude = https://raw.githubusercontent.com/reuron/reuron-io/main/prelude/package.ffg | |
let | |
defaultSwcNeuron = https://raw.githubusercontent.com/reuron/reuron-lib/main/defaultSwcNeuron.ffg | |
let | |
segment : Natural -> {id: Natural, parent: Integer, x: Real, y: Real, z: Real, r: Real, type: Natural} = \i -> | |
let | |
ii : Real = Integer/toReal i | |
let |
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
x x e5555555555555555555yuu kj,j3.jpppppppig7hydk bii xfyb pqqqqqu4pkxpiuxe kquoej x jxixu iuu7bi.qqa,;q vh9b x g7ghhxm hjjbkugggggggdd ffxkfydg77iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii6gdxxxxxkpppp.o.........32uipydkmkxxxxxxxxxxxxxxxxi3y5duij kxyiy5u4ek hcrrbtbmmmmmmmmmmtwb e |
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
{-# LANGUAGE DeriveGeneric, OverloadedStrings, RecursiveDo, ScopedTypeVariables, RankNTypes #-} | |
module Main where | |
import Control.Lens | |
import Data.Bifunctor (first) | |
import qualified Data.ByteString as BS | |
import Control.Monad.Except | |
import qualified Data.Text as T | |
import Data.Monoid |
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
{-# LANGUAGE DeriveGeneric, OverloadedStrings, RecursiveDo, ScopedTypeVariables, RankNTypes #-} | |
module Main where | |
import Control.Lens | |
import Data.Bifunctor (first) | |
import qualified Data.ByteString as BS | |
import Control.Monad.Except | |
import qualified Data.Text as T | |
import Data.Monoid |
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
webRoute | |
:: (MonadWidget t m, WR.PathInfo a) | |
=> T.Text -- ^ The part of the URL not related to SPA routing, starting with '/' | |
-> Event t a | |
-> m (Dynamic t (Either T.Text a)) | |
webRoute pathBase aUpdates = do | |
route' encoder decoder aUpdates | |
where | |
-- x = WR.fromPathInfo :: _ | |
encoder u a = u & U.pathL .~ T.encodeUtf8 (pathBase <> WR.toPathInfo a) |
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
{-# LANGUAGE DeriveGeneric, OverloadedStrings, RecursiveDo, ScopedTypeVariables, RankNTypes #-} | |
module Main where | |
import qualified Data.Text as T | |
import GHC.Generics | |
import Reflex.Dom | |
import Reflex.Dom.Contrib.Router | |
import Text.Read (readMaybe) | |
import Web.Routes.PathInfo |
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
Command: ./try-reflex | |
If you have any trouble with this script, please submit an issue at https://github.com/reflex-frp/reflex-platform/issues | |
Entering the reflex sandbox... | |
these derivations will be built: | |
/nix/store/wi7dp34wz0a25gn3b5pkmy4mlpr6xi2l-hscolour-1.24.1.drv | |
/nix/store/0gdxlcz78a5xg762akvhrym3biwf8qq4-reflection-2.1.2.drv | |
/nix/store/p86irdsl4w3c25vkgdyk0fms6aigvrd2-data-default-class-0.1.2.0.drv | |
/nix/store/0xj9rp353yjpf8hvn9fxxl37h0gf68ib-data-default-instances-containers-0.0.1.drv | |
/nix/store/zr85g5f931db3wpcyy63nn3bywfk9njk-text-1.2.2.1.drv | |
/nix/store/1f38pf72kpswzxmyihyfjibxd47xj8y6-polyparse-1.12.drv |
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
-- webcamWidget :: (DomBuilderSpace m ~ GhcjsDomSpace, PostBuild t m, m ~ ImmediateDomBuilderT t (Performable m)) => m () | |
webcamWidget :: MonadWidget t m => m () | |
webcamWidget = mdo | |
pb <- getPostBuild | |
doc <- askDocument | |
vidAttrs <- holdDyn Nothing streamUrl >>= mapDyn | |
(\u -> "autoplay" =: "true" <> maybe mempty ("src" =:) u) | |
vid <- fst <$> elDynAttr' "video" vidAttrs (return ()) |
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
snap: | |
internal server tests: | |
non-cabal-tests: | |
internal/hello: [Failed] | |
ERROR: connect: does not exist (Connection refused) | |
internal/index: [Failed] | |
ERROR: connect: does not exist (Connection refused) | |
internal/: [Failed] | |
ERROR: connect: does not exist (Connection refused) | |
internal/splicepage: [Failed] |
NewerOlder