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 os | |
| from collections import namedtuple | |
| import subprocess | |
| import tarfile | |
| import re | |
| import requests | |
| from bs4 import BeautifulSoup | |
| import jinja2 |
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 pathlib import Path | |
| import sys | |
| import itertools | |
| source = Path(sys.argv[1]) | |
| target = Path(sys.argv[2]) | |
| if target.exists(): | |
| print("%s already exists, aborting." % target) | |
| sys.exit() |
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 org.apache.spark.ml.PipelineStage | |
| import org.apache.spark.ml.feature.{OneHotEncoder, VectorAssembler, StringIndexer} | |
| import org.apache.spark.mllib.linalg.VectorUDT | |
| import scala.Function.const | |
| import scala.language.{implicitConversions, reflectiveCalls} | |
| /* Spark Pipeline API is kind of sad to use, so let's make a nicer, more compositional API! | |
| */ | |
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
| #!/usr/bin/env stack | |
| -- stack --resolver nightly-2018-11-30 script | |
| {-# LANGUAGE OverloadedStrings #-} | |
| import Data.Aeson | |
| import Data.Aeson.Encode.Pretty (encodePretty) | |
| import Dhall | |
| import Dhall.Core | |
| import Dhall.Parser (Src) | |
| import Dhall.TypeCheck (X) |
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
| with import <nixpkgs> {}; | |
| let | |
| mkLazyBin = { pkg, bin }: | |
| writeTextFile { | |
| name = bin; | |
| executable = true; | |
| text = '' | |
| #!/bin/sh | |
| [[ -d ${builtins.unsafeDiscardStringContext (pkg.outPath)} ]] || nix build --no-link ${builtins.unsafeDiscardStringContext (pkg.drvPath)} | |
| ${builtins.unsafeDiscardStringContext (pkg.outPath)}/bin/${bin} |
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
| #!/usr/bin/env stack | |
| -- stack --resolver lts-13.15 script | |
| {-# LANGUAGE OverloadedStrings, NoImplicitPrelude #-} | |
| import Language.Haskell.Interpreter | |
| import Options.Applicative.Simple | |
| import Protolude hiding (to) | |
| import Prelude (String) | |
| import Control.Lens hiding (set) | |
| import Data.Aeson |
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 BlockArguments #-} | |
| {-# LANGUAGE OverloadedStrings #-} | |
| module Interaction (interactWithProcess, expect, respond) where | |
| import Conduit | |
| import Data.Conduit.Process.Typed | |
| import qualified Data.Text.IO as Text (putStr, putStrLn) | |
| import RIO hiding (log) | |
| import qualified RIO.Text as Text |
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
| { | |
| "version": 1, | |
| "language": "English", | |
| "hideout_name": "Eclipsed Hideout", | |
| "hideout_hash": 37028, | |
| "environment": 0, | |
| "doodads": { | |
| "Stash": { | |
| "hash": 3230065491, | |
| "x": 579, |
OlderNewer