Official installation instructions from Proton are here:
Disclaimers:
- As of writing, using the Proton Mail Bridge is only supported for users with a paid account.
- This guide will probably work out of the box for many users. If it doesn't work
import code; code.interact(local=dict(globals(), **locals())) |
Official installation instructions from Proton are here:
Disclaimers:
from abc import ABC | |
from typing import Callable, Generic, TypeVar | |
A = TypeVar('A') | |
B = TypeVar('B') | |
class Monad(ABC, Generic[A]): | |
@abstractmethod | |
def unit(A) -> Monad[A]: | |
raise NotImplementedError("unit") |
#!/usr/bin/env bun | |
import { Elysia } from 'elysia' | |
const { spawn, readableStreamToText } = Bun | |
// TODO: Take -p=PORT argument, handle --help with USAGE | |
const PORT = 3000; | |
const pipe = (...fns) => arg => fns.reduce((acc, f) => f(acc), arg) | |
const get = prop => obj => obj[prop] |
@Test | |
public void check() throws Exception { | |
// Given | |
HttpResponse<InputStream> rawResponse = basicHttpOkResponse(); | |
when(mockHttpClient.<InputStream>send(any(), any())).thenReturn(rawResponse); | |
CheckRequest request = new CheckRequest() | |
.tupleKey(new TupleKey()) | |
.contextualTuples(new ContextualTupleKeys()) | |
.authorizationModelId(DEFAULT_AUTH_MODEL_ID); |
import java.util.HashMap; | |
import java.util.Map; | |
class Scratch { | |
public static void main(String[] args) { | |
final Container container = new Container(); | |
container.addData(DataType.AGE, 10); | |
container.addData(DataType.NAME,"ken"); | |
container.addData(DataType.JOB, "student"); |