I hereby claim:
- I am timmattison on github.
- I am timmattison (https://keybase.io/timmattison) on keybase.
- I have a public key ASAQvDUj8VRldRhDCiOII4jXYwOYq9yjd-L6nMio2UKgDwo
To claim this, I am signing this object:
func DumbGenerateRandomNumber(length int) string { | |
output := "" | |
var channels []chan struct{} | |
var results []int | |
ctx, cancelFunc := context.WithCancelCause(context.Background()) | |
for range 10 { | |
channels = append(channels, make(chan struct{}, 100)) |
#!/usr/bin/env bash | |
# This script is nothing crazy, it just wraps up the stuff I needed from https://gioui.org/doc/install/wasm so I can run things with a one-liner | |
if [ -z "$1" ]; then | |
echo "No sample specified, defaulting to kitchen" | |
SAMPLE="kitchen" | |
else | |
SAMPLE=$1 | |
echo "Attempting to run $SAMPLE sample as a WASM application" |
package lib | |
// GetRepoBase get the directory that contains the .git directory for this repository. This DOES NOT give you the path | |
// you are running from or the path of the executable if you're running a binary from "go build". If your repo looks | |
// like this: | |
// | |
// - repo | |
// - .git | |
// - main.go | |
// - lib |
import {PartialDeep} from "type-fest"; | |
function fromPartial<T extends {}>(mock: PartialDeep<T>) { | |
const proxy = new Proxy(mock, { | |
get(target, p, receiver) { | |
// If the receiver (the original type) doesn't have it then we ignore it | |
if (!(p in receiver)) return undefined | |
if (!(p in target)) { | |
throw new Error(`${String(p)} not found in mocked object`); | |
} |
tasks.register("copyJniLibs") { | |
// This filter is used to find the binaries in the CRT JAR. Add additional extensions or conditions as needed. | |
val binaryFilter: (File) -> Boolean = | |
{ it.name.endsWith(".so") || it.name.endsWith(".dylib") || it.name.endsWith(".dll") } | |
// Find the JAR file for aws-crt and get a File object that represents it | |
val awsCrtJar = configurations.getByName("default") | |
.resolvedConfiguration | |
.resolvedArtifacts | |
.filter { it.moduleVersion.id.toString().contains("software.amazon.awssdk.crt") } |
I hereby claim:
To claim this, I am signing this object:
I tried a different approach. I figured that any jumbled word could be converted into an array of characters and sorted. All jumbled words would sort to the same value. For example, "cat" and "tac" both sort to "act".
I used the dictionary you provided and built a map that contains the sorted version of a word as the key. The value associated with each key is the list of all of the words in the dictionary that sort to the key.
Here is the code:
import java.util.*;
/**
I hereby claim:
To claim this, I am signing this object: