Here's my config:
$ cat Procfile.test
foo: python -u foo.py
$ cat foo.py
import logging
logging.basicConfig()
logging.warn('A log line\nWith a line break')
logging.warn('Second log')
| import fc from "fast-check"; | |
| import isProbablyEnchantedWord from "./advent-day-09.mjs"; | |
| import { test, expect } from "bun:test"; | |
| const char = fc.stringMatching(/^\w$/); | |
| const word = fc.stringMatching(/^\w+$/); | |
| const palindrome = fc.oneof( | |
| char, | |
| fc |
| import { Suspense, useEffect, useState } from "react"; | |
| import type { ReactElement } from "react"; | |
| type Props = { | |
| fallback: ReactElement; | |
| children: () => ReactElement; | |
| }; | |
| /** | |
| * Almost like a normal <Suspense> component, except that for server-side |
| import { Decoder, object, string } from 'decoders'; | |
| type Example = { | |
| eg: string; | |
| }; | |
| const exampleDecoder: Decoder<Example> = object({ | |
| eg: string | |
| }); |
| export type Range = [number, number] | |
| type Position = { | |
| offset: number | |
| line: number | |
| column: number | |
| } | |
| export type Location = { | |
| start: Position |
| # Put the following in your ~/.config/fish/completions directory | |
| complete --command codegen --no-files --arguments "(codegen -l)" |
| [submodule "vim/bundle/vim-characterize"] | |
| path = vim/pack/nvie/start/vim-characterize | |
| url = https://github.com/tpope/vim-characterize.git |
| # Define types of building blocks | |
| SUBDOMAIN = STRING.set('validate', validate_subdomain) | |
| ... | |
| @schema({ | |
| 'data': NESTED({ | |
| 'type': WEBSPACE_TYPE, | |
| 'attributes': NESTED({ | |
| 'subdomain': SUBDOMAIN, |
Here's my config:
$ cat Procfile.test
foo: python -u foo.py
$ cat foo.py
import logging
logging.basicConfig()
logging.warn('A log line\nWith a line break')
logging.warn('Second log')
| def lookup_table(values, key=None, keyval=None, unique=False, use_lists=False): | |
| """ | |
| Builds a dict-based lookup table (index) elegantly. | |
| Supports building normal and unique lookup tables. For example: | |
| >>> lookup_table(['foo', 'bar', 'baz', 'qux', 'quux'], | |
| ... lambda s: s[0]) | |
| { | |
| 'b': {'bar', 'baz'}, | |
| 'f': {'foo'}, | |
| 'q': {'quux', 'qux'} |
| #ifdef _not_defined | |
| #\ | |
| "exit`[ -z $BASH ] && t=sh; [ -z $BASH ] || t=$(basename $BASH); echo Hello, World from $t > /dev/tty;`"; | |
| "[puts {Hello, World from Tcl}; {exit}]"; | |
| from operator import concat; | |
| exec concat(concat(concat(chr(109),chr(61)),chr(39)),chr(39)); | |
| m,""" ";/,;s/;//; | |
| #else | |
| #include <stdio.h> | |
| #define BEGIN int main(int nargs,char** args) |