Skip to content

Instantly share code, notes, and snippets.

@Reverbe
Reverbe / ro-counties-js.js
Created March 14, 2020 21:58
ro-counties-js
{"type": "FeatureCollection", "features": [{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[26.100824,44.540807],[26.114879,44.487322],[26.222735,44.42636],[26.111768,44.361217],[25.966661,44.44074],[25.98783,44.49212],[26.100824,44.540807]]]]},"properties":{"cartodb_id":33,"sortcode":42,"pop2011":1883425,"pop2002":1926334,"pop1992":2067545,"pop1977":1807239,"pop1966":1366684,"pop1956":1177661,"pop1948":1025180,"regionid":8,"countycode":403,"countyid":40,"region":"București-Ilfov","mnemonic":"B","name":"București","version":"2016-03-10T00:00:00Z","comune":0,"orase":"0"}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[28.116052,46.107642],[28.085878,46.009131],[28.132171,45.875891],[28.109301,45.830084],[28.17415,45.645937],[28.152435,45.573392],[28.210776,45.467188],[28.181999,45.41336],[28.074912,45.434805],[28.030527,45.404345],[27.982984,45.390643],[27.741216,45.414221],[27.558524,45.488392],[27.52452,45.519592],[27.508823,45.624504],[27.403598,45.682314],[27.3
@Reverbe
Reverbe / spreadsheetParse.js
Created July 26, 2018 22:28
google spreadsheet parser
var GoogleSpreadsheetsParser, GoogleSpreadsheetsUtil;
GoogleSpreadsheetsUtil = (function() {
function GoogleSpreadsheetsUtil() {}
GoogleSpreadsheetsUtil.prototype.extractKey = function(publishedUrl) {
var matched;
matched = publishedUrl.match(/https:\/\/docs.google.com\/spreadsheets\/d\/(.+)\/pubhtml/);
if (matched === null || matched.length !== 2) {
return null;
@Reverbe
Reverbe / topojson2-ro-counties.json
Created July 26, 2018 21:49
topojson2-ro-counties
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Reverbe
Reverbe / topo-ro-counties.json
Created July 26, 2018 21:28
topo-ro-counties
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Reverbe
Reverbe / app.html
Created June 21, 2017 14:51 — forked from gist-master/app.html
TreeView: custom templates
<template>
<require from="./compo"></require>
<require from="aurelia-kendoui-bridge/common/template"></require>
<compo>
<ak-template>
<div>
<span class="title">${text}</span>
<button ak-button click.delegate="nodeClicked($event)">Click</button>
</div>
@Reverbe
Reverbe / app.html
Last active April 21, 2017 09:27 — forked from gist-master/app.html
Notification: templates
<template>
<require from="./templates.css!css"></require>
<require from="aurelia-kendoui-bridge/notification/notification"></require>
<require from="aurelia-kendoui-bridge/notification/notification-template"></require>
<require from="aurelia-kendoui-bridge/button/button"></require>
<div id="example">
<ak-notification id="notification"
k-widget.bind="notification"
@Reverbe
Reverbe / app.html
Created April 5, 2017 13:16 — forked from gist-master/app.html
Window: basic usage
<template>
<require from="./basic-use.css"></require>
<require from="aurelia-kendoui-bridge/window/window"></require>
<require from="aurelia-kendoui-bridge/button/button"></require>
<require from="./my-component"></require>
<div id="example">
<div id="window"
@Reverbe
Reverbe / app.html
Last active March 13, 2017 16:02 — forked from gist-master/app.html
Grid: binding to local data
<template>
<require from="aurelia-kendoui-bridge/grid/grid"></require>
<require from="aurelia-kendoui-bridge/grid/col"></require>
<div>
au: <input type="text" id="inpTest" blur.delegate="onBlur($event)">
</div>
<div>
jquery: <input type="text" id="inpTestJq" blur.delegate="onBlur($event)">
@Reverbe
Reverbe / app.css
Created March 10, 2017 14:37
Grid: basic usage
.customer-photo {
display: inline-block;
width: 32px;
height: 32px;
border-radius: 50%;
background-size: 32px 35px;
background-position: center center;
vertical-align: middle;
line-height: 32px;
box-shadow: inset 0 0 1px #999, inset 0 0 10px rgba(0,0,0,.2);