Skip to content

Instantly share code, notes, and snippets.

Thom Leggett tteggel

Block or report user

Report or block tteggel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am tteggel on github.
  • I am tteggel (https://keybase.io/tteggel) on keybase.
  • I have a public key ASAz42KeyYdYjLcHvlbf3CXozJ0EAz2iff3vyTf-U9nxrgo

To claim this, I am signing this object:

View book-3.java
public void book3(TripReq input) {
Flow f = Flows.currentFlow();
FlowFuture<BookingRes> flightFuture =
f.invokeFunction("./flight/book", input.flight, BookingRes.class);
FlowFuture<BookingRes> hotelFuture =
f.invokeFunction("./hotel/book", input.hotel, BookingRes.class);
FlowFuture<BookingRes> carFuture =
View Retry.java
private static <T> FlowFuture<T> _exponentialWithJitter(Flows.SerCallable<FlowFuture<T>> op, RetrySettings settings, int attempt) {
Flow f = Flows.currentFlow();
try {
FlowFuture<T> future = op.call();
return future.exceptionallyCompose((e) -> {
if (attempt < settings.maxAttempts) {
long delay_max = (long) Math.min(
settings.timeUnit.toMillis(settings.delayMaxDuration),
settings.timeUnit.toMillis(settings.delayBaseDuration) * Math.pow(2, attempt));
View book-2.java
public void book2(TripReq input) {
Flow f = Flows.currentFlow();
FlowFuture<BookingRes> flightFuture =
f.invokeFunction("./flight/book", input.flight, BookingRes.class);
FlowFuture<BookingRes> hotelFuture =
f.invokeFunction("./hotel/book", input.hotel, BookingRes.class);
FlowFuture<BookingRes> carFuture =
@tteggel
tteggel / book-1.java
Last active Nov 22, 2017
Serverless Sagas with Fn Flow
View book-1.java
public void book1(TripReq input) {
Flow f = Flows.currentFlow();
FlowFuture<BookingRes> flightFuture =
f.invokeFunction("./flight/book", input.flight, BookingRes.class);
FlowFuture<BookingRes> hotelFuture =
f.invokeFunction("./hotel/book", input.hotel, BookingRes.class);
FlowFuture<BookingRes> carFuture =
View An Introduction to TDD.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View keybase.md

Keybase proof

I hereby claim:

  • I am tteggel on github.
  • I am tteggel (https://keybase.io/tteggel) on keybase.
  • I have a public key whose fingerprint is 667C 8788 2225 32B8 1AFD E8F0 6ECA 37AF 0A9F CA4B

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am thom-leggett on github.
  • I am tteggel (https://keybase.io/tteggel) on keybase.
  • I have a public key whose fingerprint is 667C 8788 2225 32B8 1AFD E8F0 6ECA 37AF 0A9F CA4B

To claim this, I am signing this object:

@tteggel
tteggel / sync-build.sh
Created Dec 11, 2012
Update chromium build (with flash, pdf and h264 support)
View sync-build.sh
#!/bin/bash
export GYP_GENERATORS='ninja'
export CHROMIUM_BASE=$HOME/src/chromium/browser
export GYP_DEFINES="target_arch=x64 use_system_ffmpeg=1 proprietary_codecs=1"
#Update ffmpeg.
source $HOME/bin/update_ffmpeg
#Sync it.
pushd $CHROMIUM_BASE
You can’t perform that action at this time.