A proposal to make life easy for Anglo/Romantic/Germanic speakers.
Latin | Cyrillic | Comment |
---|---|---|
í | и | Easy to write on mac |
j | дж | Like Jesus would want |
y | й | Fuck a "j" for this sound |
v | в | Fuck using "w" for this |
import { createProjectSync, ts } from "@ts-morph/bootstrap" | |
import * as fs from "fs" | |
import * as path from "path" | |
import { default as SimpleMarkdown } from "simple-markdown" | |
describe("README examples", () => { | |
const readmePath = path.join(__dirname, "..", "..", "README.md") | |
const readmeContents = fs.readFileSync(readmePath) | |
// extract examples |
/** | |
* Wait for apt lock to be free, then run command. | |
* @param aptArgs E.g. `install -y emacs xterm` | |
*/ | |
void call(String aptArgs) { | |
def timeout = 120 // wait for lock this long | |
def fileno = 1000 // unused file descriptor number | |
def lockfile = "/var/lib/dpkg/lock" | |
sh """ | |
/usr/bin/sudo bash -c "(flock --timeout $timeout $fileno; apt $aptArgs) $fileno> $lockfile" |
FROM lambci/lambda:build-python3.8 | |
# ref: https://chromium.googlesource.com/chromium/src.git/+refs | |
ARG VERSION | |
ENV VERSION ${VERSION:-master} | |
LABEL maintainer="Mischa Spiegelmock <[email protected]>" | |
LABEL chromium="${VERSION}" | |
WORKDIR / |
Mappings: | |
AWSAMIRegionMap: | |
# https://aws.amazon.com/amazon-linux-2/release-notes/ | |
AMI: | |
AMZNLINUXHVM: amzn2-ami-hvm-2.0.20200207.1-x86_64-gp2 | |
ap-east-1: | |
AMZNLINUXHVM: ami-47e4a036 | |
eu-central-1: | |
AMZNLINUXHVM: ami-0df0e7600ad0913a9 | |
us-west-2: |
I hereby claim:
To claim this, I am signing this object:
from random import uniform, randint | |
from locust import TaskSequence, HttpLocust | |
from locust import seq_task | |
import random | |
import string | |
import os | |
def randomStringDigits(stringLength=6): | |
"""Generate a random string of letters and digits """ |
plugins: | |
- serverless-pseudo-parameters | |
provider: | |
name: aws | |
runtime: python3.7 | |
stage: ${opt:stage, 'dev'} | |
environment: | |
SQLALCHEMY_DATABASE_URI: # DB DSN |
// for parsing "data" out of every response object | |
// https://stackoverflow.com/questions/23070298/get-nested-json-object-with-gson-using-retrofit/40691739#40691739 | |
class ItemTypeAdapterFactory : TypeAdapterFactory { | |
override fun <T> create(gson: Gson, type: TypeToken<T>): TypeAdapter<T> { | |
val delegate = gson.getDelegateAdapter(this, type) | |
val elementAdapter = gson.getAdapter(JsonElement::class.java) | |
return object : TypeAdapter<T>() { | |
override fun write(out: JsonWriter, value: T) { |
# SDL | |
AC_ARG_ENABLE([sdl], AS_HELP_STRING([--enable-sdl], [Build SDL2 application]), [], [enable_sdl=check]) | |
AS_IF([test "$enable_sdl" != "no"], [ | |
m4_include([m4/sdl2.m4]) | |
SDL_VERSION="2.0.5" | |
AS_IF([test "$TRAVIS"], [SDL_VERSION=2.0.2]) # travis has old SDL, we don't care | |
AS_IF([test "$EMSCRIPTEN"], [SDL_VERSION=2.0.0]) # emscripten has old SDL, we don't care | |
# Check for libSDL >= $SDL_VERSION | |
found_sdl=no |