Skip to content

Instantly share code, notes, and snippets.

@parallaxisjones
parallaxisjones / index.html
Created January 5, 2016 20:47
leaflet sidebar issue
<div class="outer-shell">
<div id="sidebar" class="sidebar collapsed sidebar-left">
<!-- Nav tabs -->
<div class="sidebar-tabs">
<ul role="tablist" class="tablist">
<li><a href="#home" role="tab"><i class="fa fa-bars"></i></a></li>
<li><a href="#profile" role="tab"><i class="fa fa-user"></i></a></li>
<li class="disabled"><a href="#messages" role="tab"><i class="fa fa-envelope"></i></a></li>
</ul>
L.Control.Sidebar = L.Control.extend({
includes: L.Mixin.Events,
initialize: function (id, options) {
var i, child;
L.setOptions(this, options);
// Find sidebar HTMLElement
this._sidebar = L.DomUtil.get(id);
@parallaxisjones
parallaxisjones / 1.cs
Last active August 29, 2015 14:26 — forked from cuppster/1.cs
Promises for C# using Generics
/*
modified from original source: https://bitbucket.org/mattkotsenas/c-promises/overview
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Promises