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
constraints: HUnit ==1.2.5.2, | |
array ==0.5.1.0, | |
attoparsec ==0.13.0.1, | |
base ==4.8.1.0, | |
binary ==0.7.5.0, | |
blaze-builder ==0.4.0.1, | |
rts ==1.0, | |
bytestring ==0.10.6.0, | |
bytestring-builder ==0.10.6.0.0, | |
case-insensitive ==1.2.0.4, |
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
constraints: HUnit ==1.3.0.0, | |
array ==0.5.1.0, | |
attoparsec ==0.13.0.1, | |
base ==4.8.1.0, | |
binary ==0.7.5.0, | |
blaze-builder ==0.4.0.1, | |
bytestring ==0.10.6.0, | |
bytestring-builder ==0.10.6.0.0, | |
case-insensitive ==1.2.0.5, | |
clock ==0.5.2, |
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
from flask import Flask | |
import os | |
import subprocess | |
from calculation import fullrun | |
app = Flask(__name__) | |
okCmds = frozenset(["cowsay","doubleit"]) | |
@app.route('/<cmd>/<arg>') | |
def runCmd(cmd,arg): |
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
import websocket | |
try: | |
import thread | |
except ImportError: #TODO use Threading instead of _thread in python3 | |
import _thread as thread | |
import time | |
import sys | |
def on_message(ws, message): |
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
## Refer to http://caffe.berkeleyvision.org/installation.html | |
# Contributions simplifying and improving our build system are welcome! | |
# cuDNN acceleration switch (uncomment to build with cuDNN). | |
# USE_CUDNN := 1 | |
# CPU-only switch (uncomment to build without GPU support). | |
CPU_ONLY := 1 | |
# uncomment to disable IO dependencies and corresponding data layers |
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
<?xml version="1.0" encoding="utf-8"?> | |
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<files> | |
<file path="C:\ProgramData\chocolatey\lib\Chutzpah\AntiXssLibrary.dll" checksum="4B8BDFC24B1F455E66A7640F7D25E626" /> | |
<file path="C:\ProgramData\chocolatey\lib\Chutzpah\chocolateyInstall.ps1" checksum="0C5987D9F7A98A5461D7C1669447927D" /> | |
<file path="C:\ProgramData\chocolatey\lib\Chutzpah\Chutzpah.4.2.0.zip.txt" checksum="1F80DFD7A2BB5B42F2D827C0B68A5A21" /> | |
<file path="C:\ProgramData\chocolatey\lib\Chutzpah\chutzpah.console.exe" checksum="C26D86B3DF0044E8D3D6184E6E496631" /> | |
<file path="C:\ProgramData\chocolatey\lib\Chutzpah\chutzpah.console.vshost.exe" checksum="7A0C3AB69ECB9D2595A1595673B2CCED" /> | |
<file path="C:\ProgramData\chocolatey\lib\Chutzpah\chutzpah.console.vshost.exe.manifest" checksum="A19A2658BA69030C6AC9D11FD7D7E3C1" /> | |
<file path="C:\ProgramData\chocolatey\lib\Chutzpah\chutzpah.dll" checksum="691F1E1B5EAB52 |
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] |
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
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
{-# 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 |