Skip to content

Instantly share code, notes, and snippets.

View donpaul120's full-sized avatar
🏠
Working from home

Paul Okeke donpaul120

🏠
Working from home
View GitHub Profile
@donpaul120
donpaul120 / CustomEmbraceDioInterceptor.dart
Created February 26, 2026 14:20
EmbraceDioInterceptor that also respects sending the http status code for onError
class CustomEmbraceDioInterceptor extends Interceptor {
CustomEmbraceDioInterceptor({String Function(RequestOptions)? spanNameBuilder})
: _spanNameBuilder = spanNameBuilder ?? _defaultName;
static const String _contentLengthHeader = 'Content-Length';
final String Function(RequestOptions) _spanNameBuilder;
final _startTimes = HashMap<RequestOptions, int>();
static String _defaultName(RequestOptions o) => '${o.method} ${o.uri.path}';
@donpaul120
donpaul120 / AnimateMarker(GoogleMap Javascript v3).js
Last active August 29, 2015 14:06
Animating Google Map Marker To a Destination Point In Javascript v3
/**
* VAS-CONSULTING
*
* Animating Google Map Marker to a Destination In Javascript (v3)
*
* @author Paul Okeke
*
*
*
*