[nix-shell:~/tweag/nix_bazel_codelab]$ bazel build //java/src/main/java/bazel/bootcamp:HelloBazelBootcamp
WARNING: Build option --extra_toolchains has changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed).
ERROR: /home/rednaz/.cache/bazel/_bazel_rednaz/4416c53fc376f6850591c05e606de763/external/rules_java~7.5.0~toolchains~local_jdk/BUILD.bazel:2:10: in fail_rule rule @@rules_java~7.5.0~toolchains~local_jdk//:jdk:
Traceback (most recent call last):
File "/home/rednaz/.cache/bazel/_bazel_rednaz/4416c53fc376f6850591c05e606de763/external/rules_java~7.5.0/toolchains/fail_rule.bzl", line 19, column 13, in _fail_rule_impl
fail("%s %s" % (ctx.attr.header, ctx.attr.message))
Error in fail: Auto-Configuration Error: Cannot find Java binary bin/java in /home/rednaz/.cache/bazel/_bazel_rednaz/4416c53fc376f6850591c05e606de763/external/rules_java~7.5.0~toolchains~local_jdk/nosystemjdk; either correct your JAVA_HOME,
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
-- copied from https://hackage.haskell.org/package/generic-data-1.1.0.0/docs/src/Generic.Data.Internal.Show.html | |
-- to do. create a proper fork? | |
{-# LANGUAGE ConstraintKinds #-} | |
-- | Generic implementation of Show | |
-- | |
-- === Warning | |
-- | |
-- This is an internal module: it is not subject to any versioning policy, | |
-- breaking changes can happen at any time. |
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
validationFailureScriptContexts | |
:: ShelleyBasedEra ConwayEra | |
-> SystemStart | |
-> LedgerEpochInfo | |
-> LedgerProtocolParameters ConwayEra | |
-> UTxO ConwayEra | |
-> TxBodyContent BuildTx ConwayEra | |
-> AddressInEra ConwayEra | |
-> Map (PlutusPurpose AsIx StandardConway) (FixShow ScriptContext) | |
validationFailureScriptContexts |
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
// ==UserScript== | |
// @name amazon_skip_advertisement | |
// @match *://www.amazon.de/* | |
// @grant none | |
// ==/UserScript== | |
const traverse_videos = (f) => {Array.from(document.getElementsByTagName("video")).forEach(f)}; | |
document.addEventListener( | |
"click", |
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
// ==UserScript== | |
// @name video_speed_controls | |
// @match *://www.youtube.com/* | |
// @match *://pr0gramm.com/* | |
// @match *://www.amazon.de/* | |
// @match file:///* | |
// @grant none | |
// ==/UserScript== | |
const traverse_videos = (f) => {Array.from(document.getElementsByTagName("video")).forEach(f)}; |
executing commands exactly as instructed.
[nix develop:~/tweag]$ git clone https://github.com/bazelbuild/bazel-central-registry.git
Cloning into 'bazel-central-registry'...
remote: Enumerating objects: 12960, done.
remote: Counting objects: 100% (1721/1721), done.
remote: Compressing objects: 100% (884/884), done.
remote: Total 12960 (delta 1102), reused 1281 (delta 837), pack-reused 11239
Receiving objects: 100% (12960/12960), 2.43 MiB | 2.10 MiB/s, done.
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
{- cabal: | |
default-language: GHC2021 | |
default-extensions: | |
NoImplicitPrelude | |
NoFieldSelectors | |
LambdaCase | |
ghc-options: | |
-Weverything | |
-Wno-unsafe | |
-Wno-missing-safe-haskell-mode |
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
// ==UserScript== | |
// @name facebook_requests_with_posts_only | |
// @match https://www.facebook.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
const key = (event) => ["f", "ƒ"].includes(event.key) && event.ctrlKey && event.altKey; | |
let filtering = false; |
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
moved to https://gitlab.com/rdnz/lift-consultant/-/blob/gitlab/src/MyLib.hs#L8 |
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
from dataclasses import dataclass | |
from typing import Union | |
ClassificationTree = Union["Verdict", "Split"] # type for https://mypy.readthedocs.io/ | |
@dataclass(frozen=True) | |
class Verdict: # leaves of `ClassificationTree`s | |
class_label: int | |
@dataclass(frozen=True) |
NewerOlder