I hereby claim:
- I am mostlylikeable on github.
- I am mostlylikeable (https://keybase.io/mostlylikeable) on keybase.
- I have a public key whose fingerprint is C217 F90F 1D51 FA20 97D8 5177 453A 7829 F617 92B8
To claim this, I am signing this object:
import java.util.concurrent.atomic.AtomicInteger | |
/** | |
* A cyclic counter that is backed by an {@code AtomicInteger}. | |
* | |
* This counter will return integers starting at {@code start} up to {@code max}, then starting over (cycling). | |
*/ | |
class AtomicCyclicCounter { | |
int max | |
int start = 1 |
// match html class | |
class=\"(footer|.+ footer)( |\") |
@Grab(group='com.jcraft', module='jsch', version='0.1.46') | |
import com.jcraft.jsch.* | |
java.util.Properties config = new java.util.Properties() | |
config.StrictHostKeyChecking = "no" | |
JSch ssh = new JSch() | |
Session session = ssh.getSession(user, host, port) | |
session.config = config |
#!/bin/bash | |
# script for stashing and pushing all changes, stashes, local branches to remote/fork (origin) | |
# so they can be pulled down on another machine. | |
function _gm_not_dry_run() { | |
return 1 # set to 0 to run | |
} | |
# recursively stash any pending changes for all subdirs where this is run | |
function rstash() { |
#!/usr/bin/env bash | |
# git-migrate-down.sh | |
function _gm_not_dry_run() { | |
return 1 # set to 0 to run | |
} | |
# pulls all stashes down, re-stashes, and deletes local branch. | |
# - can uncomment line to also delete remote tmp stash branch | |
function pull_stashes() { |
// Comment | |
`{{/* TODO: add more useful things */}}` | |
// Ternary var def with or | |
// $somevar := (.x ? .x : "") | |
`{{ $somevar := or .x "" }}` | |
// Ternary var def with and | |
// $somevar := (.x ? "" : .x) | |
`{{ $somevar := and .x "" }}` |
I hereby claim:
To claim this, I am signing this object:
# https://kotlinlang.org/docs/kotlin-mascot.html | |
,_ _ | |
.H$H$L ╭H$$. | |
|HHHHHHL, ╭$HHHH: | |
|HHHHHHHH$>v$HHHHHH: | |
|HHHHHH .**. .**.`?: | |
|HHHHHH | | | | ?: | |
,?H|HHHHHH.`^^' `^^'.?: | |
.$H` "*HHHHHH$$$$$HHHHHH╯ |
import { DynamoDB } from '@aws-sdk/client-dynamodb'; | |
import { DynamoDBDocument } from '@aws-sdk/lib-dynamodb'; | |
const tableName = 'discography'; | |
const artistAlbumsIndex = 'artist-albums'; | |
const table = { | |
TableName: tableName, | |
BillingMode: 'PAY_PER_REQUEST', | |
AttributeDefinitions: [ | |
{ AttributeName: 'pk', AttributeType: 'S' }, |