Skip to content

Instantly share code, notes, and snippets.

@pilsna
pilsna / mauergrenzen.json
Last active August 29, 2015 14:08
mauergrenzen
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.
Posted here will be music files for use with Sonic-Pi on the Raspberry Pi.
If you have the Sonic-Pi music program isntalled (it is on the latest distribution for Raspian) you can start it up from the Graphic Desktop (there is a link under Education on the Start Menu). You can then copy and past the contents of one of the play files into one of the 8 workspace windows and click play to play it.
I will also add some general comment and hints files from time to time.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pilsna
pilsna / viewer.js
Created November 19, 2013 17:36
A few lines of code demonstrating how to use viewer commands in the Geocortex HTML5 Viewer
// some sample viewers
// http://e-korttest.vejenkom.dk/zpubHtml5Ekstern/Index1.html
// http://e-korttest.vejenkom.dk/zpubHtml5Ekstern/Index.html?viewerConfigUri=http://e-korttest.vejenkom.dk/Geocortex/Essentials/GeocortexEkstern/REST/sites/zpubPlan/viewers/zpubplanGVH/virtualdirectory/Resources/Config/Default/desktop.json.js
// https://support.geocortex.com/SupportForums/Thread.aspx?pageid=0&mid=2&ItemID=9&thread=46888
/**
calling an iframe, only works if they are on the same domain
var gcviewer = document.getElementById('gcviewer').contentWindow
@pilsna
pilsna / barchart.js
Last active December 28, 2015 17:19
horizontal bar chart
// SVG chart with labels
function drawSvg(itemlist, wrapperelement) {
var wrap = d3.selectAll(wrapperelement);
var floors = itemlist.length;
var floorlist = floorDomain(floors);
itemlist.reverse();
var margin = {
top: 20,
right: 20,
bottom: 40,
@pilsna
pilsna / index.html
Last active December 28, 2015 07:39
geoevent processor with stream layer
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>StreamLayer using ArcGIS API for JavaScript and ArcGIS GeoEvent Processor for Server</title>
<link rel="stylesheet" href="http://js.arcgis.com/3.7/js/dojo/dijit/themes/tundra/tundra.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.7/js/esri/css/esri.css">
<style type="text/css">
html, body {
@pilsna
pilsna / index.html
Created November 10, 2013 01:36
flashmap
<!DOCTYPE html>
<html>
<head>
<title>flashmap</title>
<meta charset="utf-8">
<!--Define the versions of IE that will be used to render the page. See Microsoft documentation for details. Optional.-->
<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<link rel="stylesheet" href="style.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
@pilsna
pilsna / index.html
Last active December 27, 2015 17:09
foundation 4 experiment product news
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>ArcGIS Product News</title>
<!-- If you are using CSS version, only link these 2 files, you may add app.css to use for your overrides if you like. -->