Skip to content

Instantly share code, notes, and snippets.

@DMCApps
DMCApps / UIAlertController+Builder
Last active October 26, 2022 20:01
Builder pattern extension for the UIAlertController
//
// UIAlertController+Builder.swift
//
// Created by Daniel Carmo on 2016-12-30.
// Copyright © 2016 DMCApps Inc. All rights reserved.
//
import Foundation
import UIKit
@DMCApps
DMCApps / StaticMapUrl Android
Last active January 29, 2017 21:42
This is a helper class for generating a URL to grab a static map from Google's Static Map API.
import android.location.Location;
import android.support.annotation.NonNull;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
/**
@DMCApps
DMCApps / ObjectUtils
Created January 18, 2017 02:27
Utilities used to help with the interactions with POJO.
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
/**
* Created by DMCApps
*
* Utilities used to help with the interactions with POJO.
//
// GoogleStaticMapUrl.swift
// DMCApps
//
// Created by Daniel Carmo on 2017-01-29.
// Copyright © 2017 DMCApps. All rights reserved.
import Foundation
import CoreLocation