I hereby claim:
- I am fritzvd on github.
- I am fritzvd (https://keybase.io/fritzvd) on keybase.
- I have a public key whose fingerprint is 5735 97D7 779A 71A2 CFCB E96B A983 83DA EE81 9678
To claim this, I am signing this object:
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable # unstable packages | |
sudo apt-get install build-essential gdal-bin gdal-config libgdal-ecw-src | |
wget http://meuk.technokrat.nl/libecwj2-3.3-2006-09-06.zip | |
unzip ~/Downloads/libecwj2-3.3.2006-09-06.zip | |
cd ~/Downloadslibecwj2-3.3.2006-09-06 | |
./configure | |
make # wait | |
make install # or sudo make install | |
sudo gdal-ecw-build /usr/local | |
sudo ldconfig |
// This is a customisation of a real plugin | |
// and lives here, purely for reference | |
L.Control.FullScreen = L.Control.extend({ | |
options: { | |
position: 'topleft' | |
}, | |
onAdd: function (map) { | |
console.info('this is not even fired'); | |
var containerClass = 'leaflet-control-zoom', className, container; |
// this is wrong | |
var multiList = []; | |
multiList += 'string'; | |
multiList += 9; | |
multiList += 3.14; | |
// if you really want a list like this do this: | |
var multiList = ['string', 9 , 3.14]; |
CREATE OR REPLACE FUNCTION ST_getsrid(geometry) | |
RETURNS int4 | |
AS '$libdir/postgis-2.1','LWGEOM_get_srid' | |
LANGUAGE 'C' IMMUTABLE STRICT; |
I hereby claim:
To claim this, I am signing this object:
<html> | |
<body ng-app="myApp"> | |
<div ng-controller="MyFavoriteCtrl as ctrl"> | |
{{ ctrl.superspecialvar }} | |
</div> | |
<script> | |
// initiate module, first argument is the name, second are dependencies | |
angular.module("myApp", []); |
import random | |
entity = [ | |
'The Flying Spaghetti Monster', | |
'Richard Dawkins', | |
'Vishnu', | |
'Shiva', | |
'Allah', | |
'God', | |
'Het Universum', | |
'Kanye West', |
var assert = require('assert'); | |
var proxyquire = require('proxyquire'); | |
var fetchStub = require('node-fetch'); // the npm package not the tns-core-module (npm install --save-dev node-fetch) | |
var obsArray = Array; | |
var YourViewModel = proxyquire('../app/view-models/your-view-model', | |
{ | |
fetch: fetchStub, | |
"data/observable-array": { |
<html> | |
<head> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.min.js"></script> | |
</head> | |
<body> | |
<div id="chart"> | |
</div> | |
<script type="text/javascript"> | |
var w = 800, | |
h = 600, |
import socket | |
# Add a custom listener to read out stdout | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
while True: | |
rfd, wfd, efd = select.select(rpipes, [], rpipes, 1) | |
if cmd.stdout in rfd: | |
dat = os.read(cmd.stdout.fileno(), 9000) | |
stdout += dat | |
sock.sendto(dat, ("127.0.0.1", 9876)) # append to listener |