Skip to content

Instantly share code, notes, and snippets.

@Kreozot
Kreozot / index.html
Last active October 28, 2015 08:30
Polymaps / Andrew Mager
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.tipsy/1.0.2/jquery.tipsy.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/polymaps/2.2.0/polymaps.js"></script>
<style type="text/css">
@import url("https://cdnjs.cloudflare.com/ajax/libs/jquery.tipsy/1.0.2/jquery.tipsy.css");
@import url("http://github.com/simplegeo/polymaps/raw/v2.2.0/examples/example.css");
@Kreozot
Kreozot / index.js
Created September 9, 2015 07:26 — forked from mogelbrod/index.js
Simple apply-loader module for webpack
var loaderUtils = require('loader-utils');
module.exports = function(source) {
this.cacheable && this.cacheable();
var query = loaderUtils.parseQuery(this.query);
var args = [];
// apply?config=key => sourceFn(require('webpack.config').key)
if (typeof query.config === 'string') {
if (!query.config in this.options)