Skip to content

Instantly share code, notes, and snippets.

View tormi's full-sized avatar
🇪🇪
Working from home

Tormi Tabor tormi

🇪🇪
Working from home
View GitHub Profile
@tormi
tormi / summary.js
Created January 6, 2016 14:14 — forked from SamyPesse/summary.js
Summary Generation for Code-Civil
var fs = require("fs");
var path = require("path");
var _ = require("lodash");
var utf8 = require('utf8');
require("natural-compare-lite");
var IGNORE = [
"node_modules",
".git",
"SUMMARY.md",
@tormi
tormi / index.html
Created November 17, 2015 07:13 — forked from phil-pedruco/index.html
Shopping Center Layout
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Shopping Mall Messing</title>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
</head>
<body>
@tormi
tormi / div.html
Last active November 16, 2015 21:25 — forked from mgiraldo/a-web-maps-101.md
A web maps primer
<div id="map"></div>
<!DOCTYPE html>
<html>
<head>
<link href="http://cdn.leafletjs.com/leaflet-1.0.0-b1/leaflet.css" rel="stylesheet" type="text/css" />
<script src="http://cdn.leafletjs.com/leaflet-1.0.0-b1/leaflet.js"></script>
<meta charset="utf-8">
<title>Leaflet JS Bin</title>
<style>
#map {
width:600px;
@tormi
tormi / kinnisvara.json
Last active November 11, 2015 11:53
hal_json näide
{"_links":{"self":{"href":"http:\/\/dev-kvr.pantheon.io\/node\/2?_format=hal_json"},"type":{"href":"http:\/\/dev-kvr.pantheon.io\/rest\/type\/node\/kinnisvara"},"http:\/\/dev-kvr.pantheon.io\/rest\/relation\/node\/kinnisvara\/uid":[{"href":"http:\/\/dev-kvr.pantheon.io\/user\/1?_format=hal_json","lang":"en"}],"http:\/\/dev-kvr.pantheon.io\/rest\/relation\/node\/kinnisvara\/revision_uid":[{"href":"http:\/\/dev-kvr.pantheon.io\/user\/1?_format=hal_json"}],"http:\/\/dev-kvr.pantheon.io\/rest\/relation\/node\/kinnisvara\/field_foto":[{"href":"http:\/\/dev-kvr.pantheon.io\/sites\/default\/files\/fotod\/Suur_Ameerika_51-614x435.jpg"},{"href":"http:\/\/dev-kvr.pantheon.io\/sites\/default\/files\/fotod\/Suur_Ameerika_6-614x435.jpg"}],"http:\/\/dev-kvr.pantheon.io\/rest\/relation\/node\/kinnisvara\/field_kasutamise_alus":[{"href":"http:\/\/dev-kvr.pantheon.io\/node\/4?_format=hal_json"}],"http:\/\/dev-kvr.pantheon.io\/rest\/relation\/node\/kinnisvara\/field_kinnisvara_eluea_etapp":[{"href":"http:\/\/dev-kvr.pantheon.i
[{"nid":[{"value":"2"}],"uuid":[{"value":"0c80c005-85e2-4fa3-ac00-fdd8da3d212d"}],"vid":[{"value":"3"}],"type":[{"target_id":"kinnisvara"}],"langcode":[{"value":"en"}],"title":[{"value":"Suur-Ameerika 1"}],"uid":[{"target_id":"1"}],"status":[{"value":"1"}],"created":[{"value":"1435832605"}],"changed":[{"value":"1435843462"}],"promote":[{"value":"1"}],"sticky":[{"value":"0"}],"revision_timestamp":[{"value":"1435832648"}],"revision_uid":[{"target_id":"1"}],"revision_log":[{"value":""}],"revision_translation_affected":[{"value":"1"}],"default_langcode":[{"value":"1"}],"path":[],"body":[],"field_foto":[{"target_id":"1","display":null,"description":null,"alt":"Suur-Ameerika 1","title":"","width":"614","height":"435"},{"target_id":"2","display":null,"description":null,"alt":"Suur-Ameerika 1","title":"","width":"614","height":"435"}],"field_kasutamise_algus":[{"value":"2017-01-01"}],"field_kasutamise_alus":[{"target_id":"4"}],"field_kinnisvara_eluea_etapp":[{"target_id":"4"}],"field_kinnisvara_kasutaja":[{"target_id
uuid: b32c2427-340e-4c5c-8c1c-281789b67fea
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.storage.node.field_kasutamise_algus
- field.storage.node.field_kasutamise_alus
- field.storage.node.field_kinnisvara_eluea_etapp
- field.storage.node.field_kinnisvara_kasutaja
@tormi
tormi / Issues.md
Last active August 29, 2015 14:18 — forked from rclark/Issues.md

There are a bunch of reasons why this is convoluted, mostly in building the URL to make the request:

  1. You have to rely on an AJAX request, this example uses jQuery
  2. To make a GetFeatureInfo request, you must provide a BBOX for a image, and the pixel coordinates for the part of the image that you want info from. A couple of squirrely lines of Leaflet code can give you that.
  3. Output formats. The info_format parameter in the request. We don't know a priori which will be supported by a WMS that we might make a request to. See Geoserver's docs for what formats are available from Geoserver. That won't be the same from WMS to WMS, however.
  4. WMS services return XML docs when there's a mistake in the request or in processing. This sends an HTTP 200, which jQuery doesn't think is an error.
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.