Skip to content

Instantly share code, notes, and snippets.

@SanderSmee
SanderSmee / resume.json
Last active October 11, 2023 20:16
Resume following https://jsonresume.org/ schema
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Sander Smeman"
},
"meta": {
"canonical": "https://raw.githubusercontent.com/jsonresume/resume-schema/master/resume.json",
"version": "v1.0.0",
"lastModified": "2017-12-24T15:53:00",
"theme": "macchiato"
@SanderSmee
SanderSmee / CoroutineDebouncer.kt
Created February 15, 2023 14:46 — forked from maxpert/CoroutineDebouncer.kt
Kotlin Coroutine Debouncer
class CoroutineDebouncer<K, V> constructor(
private val pendingBoard: ConcurrentMap<K, Deferred<V?>>
) {
/**
* Debounce given a `task` based upon given `id`. This prevents jobs with same IDs run in parallel.
* For subsequent callers get Deferred<V> of first (winning) coroutine.
* Once Deferred<V> completes it is remove from the board.
*
* @param id for uniquely identifying a task
* @param context under which given coroutine will be executed
@Startup
@ApplicationScoped
public class SingletonFeatureManagerProvider {
@ConfigProperty(name = "my.toggles.config.file")
String featuresPropertyFileLocation;
FeatureManager featureManager;
@PostConstruct
public void init() {
package ari.dnrs.registry.configuration;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import java.util.Set;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
@SanderSmee
SanderSmee / gist:5cbd0122d443ae18568ac6d0952706c2
Created September 13, 2017 12:54
curl string-boot-starters 1.5.7
curl -svo dev/null https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starters/1.5.7.RELEASE/spring-boot-starters-1.5.7.RELEASE.pom
* Trying 151.101.36.215...
* TCP_NODELAY set
* Connected to repo.maven.apache.org (151.101.36.215) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: repo.maven.apache.org
* Server certificate: DigiCert SHA2 Secure Server CA
* Server certificate: DigiCert Global Root CA
> GET /maven2/org/springframework/boot/spring-boot-starters/1.5.7.RELEASE/spring-boot-starters-1.5.7.RELEASE.pom HTTP/1.1
> Host: repo.maven.apache.org
package nsome.packagee;
import org.jbehave.core.annotations.*;
/**
* Stappen voor het uitvoeren van een levering.
*/
public class LeveringenSteps {
@Given("de database {is|wordt} gereset voor de personen $bsns")
public void resetPeople(List<String> bsns) {
/*
* Template backbone.js code that encapsulates a
* datatable.net table within a view for a hypothetical ;)
* auction listings application.
*/
var HomeRouter = Backbone.Router.extend({
routes: {
'refresh' : 'refresh',