Broad overview of programming for the web. Web Platform is an effort to bring people information about developing for the web.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Page.create_content_type(ApplicationContent, APPLICATIONS=( | |
('elephantblog.urls', _('Blog')), | |
)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Usage : less2stylusDir('../src/css/'); | |
var fs = require('fs'); | |
// this less 2 stylus conversion script make a stylus easy to read syntax | |
// - let the braces | |
// - replace the @ for var as $ | |
// - let semicolons | |
function less2stylus(less) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns omni.main | |
(:require-macros [cljs.core.async.macros :refer [go alt!]]) | |
(:require [cljs.core.async :refer [>! put! chan]] | |
[om.core :as om :include-macros true] | |
[om.dom :as dom :include-macros true]) | |
(:import [goog.ui IdGenerator])) | |
(defn guid [] | |
(.getNextUniqueId (.getInstance IdGenerator))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Leaflet.markercluster, Provides Beautiful Animated Marker Clustering functionality for Leaflet, a JS library for interactive maps. | |
https://github.com/Leaflet/Leaflet.markercluster | |
(c) 2012-2013, Dave Leaver, smartrak | |
*/ | |
(function (window, document, undefined) { | |
/* | |
* L.MarkerClusterGroup extends L.FeatureGroup by clustering the markers contained within | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Leaflet 0.8-dev (3ded683), a JS library for interactive maps. http://leafletjs.com | |
(c) 2010-2014 Vladimir Agafonkin, (c) 2010-2011 CloudMade | |
*/ | |
(function (window, document, undefined) { | |
var L = { | |
version: '0.8-dev' | |
}; | |
function expose() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="o-pack"> | |
<div class="o-pack__item"> | |
<label class="c-label u-margin-right-small">Name | |
<input class="c-input c-input--full"/> | |
</label> | |
</div> | |
<div class="o-pack__item"> | |
<label class="c-label u-margin-right-small">Password | |
<input class="c-input c-input--full"/> | |
</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="border: 1px dotted black"> | |
foo | |
<div class="c-inline-list"> | |
<div class="c-inline-list__row">1</div> | |
<div class="c-inline-list__row">2</div> | |
<div class="c-inline-list__row">3</div> | |
</div> | |
bar | |
<div class="c-inline-list--drop"> | |
<div class="c-inline-list__row">1</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Inject, Injectable, OnDestroy } from "@angular/core"; | |
/** | |
* Solves the following with `ngOnDestroy`: | |
* - https://github.com/angular/angular/issues/14821 | |
* - https://github.com/angular/angular/issues/14818 | |
*/ | |
export function provideServiceDestroyer(Service: any) { | |
@Injectable() | |
class ServiceDestroyer implements OnDestroy { |
OlderNewer