Skip to content

Instantly share code, notes, and snippets.

View darbio's full-sized avatar

JD darbio

View GitHub Profile
@fschutte
fschutte / create-keys-and-certificates.kts
Created December 9, 2018 13:46
Kotlin script for creating keys and certificates
import sun.security.x509.*
import java.io.File
import java.math.BigInteger
import java.security.*
import java.security.cert.X509Certificate
import java.util.*
/**
* Simple script for generating keys and certificates as needed to connect to the ING API.
@TimCoates
TimCoates / serverless.yml
Created September 19, 2017 19:04
Building an S3 Origin for Cloudfront in serverless.yml
service: name
custom:
staticBucket: static-name.justtim.net
provider:
name: aws
stage: prod
environment:
bucketName: ${self:custom.staticBucket}
@blounty
blounty / Android-CustomMapRenderer.cs
Created February 17, 2015 04:59
Create mapping apps that have amazingly cool custom map tiles with Xamarin.Forms
using System;
using Xamarin.Forms.Maps.Android;
using Android.Gms.Maps;
using Android.Gms.Maps.Model;
using Xamarin.Forms;
using CustomMapTiles;
using CustomMapTiles.Droid.Renderers;
[assembly: ExportRenderer (typeof (CustomMap), typeof (CustomMapRenderer))]
namespace CustomMapTiles.Droid.Renderers
@ilyapalkin
ilyapalkin / IMapper.cs
Last active January 25, 2024 17:13
An abstraction over AutoMapper to map several sources into single destination.
/// <summary>
/// Type mapping api
/// </summary>
public interface IMapper
{
/// <summary>
/// Maps the specified source type instance to destination type instance.
/// </summary>
/// <typeparam name="TSource">Source type.</typeparam>
/// <typeparam name="TDestination">Destination type.</typeparam>
@rjmackay
rjmackay / Util_Tile.php
Last active May 31, 2019 04:36
Tile utility class Handles converting slippy map tile numbers to lat/lon values Ported from: http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Java
<?php
/**
* Tile utility class
*
* Handles converting slippy map tile numbers to lat/lon values
* Ported from:
* http://svn.openstreetmap.org/applications/routing/pyroute/tilenames.py
* http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Java
*/
class Util_Tile {