Skip to content

Instantly share code, notes, and snippets.

@rschoultz
rschoultz / minikube-on-wsl2-with-podman.md
Last active May 6, 2022 12:13 — forked from fardjad/minikube-on-wsl2-with-podman.md
[Minikube on WSL2 with Podman] Tips for running a local development Kubernetes cluster on WSL2 with Podman #wsl2 #minikube #podman #kubernetes #docker
# Blueprint metadata
blueprint:
name: Controller - IKEA E1812 TRÅDFRI Shortcut button
description: |
# Controller - IKEA E1812 TRÅDFRI Shortcut button
Controller automation for executing any kind of action triggered by the provided IKEA E1812 TRÅDFRI Shortcut button.
Allows to optionally loop an action on a button long press as well as built-in double-click.
Supports deCONZ, ZHA, Zigbee2MQTT.
package nu.schoultz.gc.pubsub;
import com.google.api.services.bigquery.model.TableRow;
import com.google.api.services.bigquery.model.TableSchema;
import com.google.api.services.bigquery.model.TableFieldSchema;
import com.healthifyme.dftrial.common.ExampleUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.HashMap;
@rschoultz
rschoultz / FizzBuzz.java
Last active May 4, 2017 16:50
Another Fizzbuzz, with Java streams. Optimized for brevity.
import java.util.stream.IntStream;
public class FizzBuzz {
public static void main(String[] args) {
IntStream.rangeClosed(1, 100).mapToObj(i -> {
String a;
a = i % 3 == 0 ? "Fizz" : "";
a += i % 5 == 0 ? "Buzz" : "";
return a.isEmpty() ? "" + i : a;
}).forEach(System.out::println);
### Keybase proof
I hereby claim:
* I am rschoultz on github.
* I am schoultz (https://keybase.io/schoultz) on keybase.
* I have a public key ASC_0quZkFgrL3wfWRdLRh6ii4hPkw3bAfSYImzZtsLjgQo
To claim this, I am signing this object: