Skip to content

Instantly share code, notes, and snippets.

View mmcc007's full-sized avatar
💭
😄

Maurice McCabe mmcc007

💭
😄
View GitHub Profile
@carlosypunto
carlosypunto / gist.swift
Last active March 23, 2018 06:03
Swift 2 Multiparadigm Decorator Pattern
// Decorable Protocol --------------------------------------------------------------------
protocol IBeverage {
func description() -> String
func cost() -> Double
}
extension IBeverage {
func printDescription() {
@avioli
avioli / animated_map_controller.dart
Last active February 28, 2023 19:18
A helper to animate a flutter_map's MapController
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart' show MapController;
import 'package:latlong/latlong.dart';
// ////////////////////////////////////////////////////////////////////////////
class AnimatedMapController {
/// Creates an animated MapController
AnimatedMapController({
@required this.mapController,