Skip to content

Instantly share code, notes, and snippets.

View eddiewebb's full-sized avatar
🚀
Accelerating software delivery

Eddie Webbinaro eddiewebb

🚀
Accelerating software delivery
View GitHub Profile
@eddiewebb
eddiewebb / TimingLambda.java
Created March 19, 2018 19:35
Timing Java method calls.
// This allows you to call methods wrapped in a timer for profilling.
// I used in a scenario where my abstract class delegated back to concrete implementations, and wanted to be aware of duration.
// Because timer runs in a lambda, it doesn't require any special treatment to see/manipulate current context/scope.
public abstract class AbstractClass{
public final loadDependencies(Map<String, Object> map){
//here we call some methods, they could be anywhere.
ChainResultsSummary results = timing("getChainResultsSummary",() -> getChainResultsSummary(map));
ImmutableChain chain = timing("getImmutableChain",() -> getImmutableChain(map));
@eddiewebb
eddiewebb / readme.md
Last active February 12, 2024 08:46
Hugo JS Searching with Fuse.js
@eddiewebb
eddiewebb / keybase.md
Last active February 6, 2018 13:40
keybase.md

Keybase proof

I hereby claim:

  • I am eddiewebb on github.
  • I am edwardawebb (https://keybase.io/edwardawebb) on keybase.
  • I have a public key whose fingerprint is 4762 7E46 83E9 82CC 2591 0D28 01F3 D3D7 0CA9 2044

To claim this, I am signing this object: