This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"sender":"043e7bf5-28ae-4847-8110-ab4ad077721e","target":"dfc2007f-e08c-4aa7-941f-15890e9d27ed","action":"missingRecords","payload":{"syncType":"projects","list":[{"_id":"1","status":"clean","created":1394806803605,"deleted":false,"updated":1394983720173,"data":{"name":"Sketch"},"deltas":[{"timestamp":1392199977726,"data":{"name":"Sketch"}},{"timestamp":1392046246541,"data":{"name":"Sketch"}},{"timestamp":1392063100697,"data":{"name":"Sketch"}},{"timestamp":1391069373732,"data":{"tilelayers":[{"name":"OSM","options":{"url":"http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png","config":{}}}]}},{"timestamp":1391069423161,"data":{"tilelayers":[{"name":"OSM","options":{"url":"http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png","config":{}}}]}},{"timestamp":1391069433320,"data":{"tilelayers":[{"name":"OSM","options":{"url":"http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png","config":{}}}]}},{"timestamp":1391069486787,"data":{"tilelayers":[{"name":"OSM","options":{"url":"http://{s}.tile.openstreetmap.org/{z}/{x}/{y} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.Data.Spatial code sample for .NET 4.5/4.6 | |
Add a reference to System.Data.Entity | |
var geom1 = DbGeometry.PolygonFromText("POLYGON((1 1,5 1,5 5,1 5,1 1),(2 2, 3 2, 3 3, 2 3,2 2))",4326); | |
var geom2 = DbGeometry.LineFromText("LINESTRING(3 4,10 50,20 25)", 4326); | |
var geom3 = geom2.Buffer(1); | |
if (geom1.Overlaps(geom3)){ | |
var geom4 = geom1.Difference(geom3); | |
Console.WriteLine("geom4: " + geom4.AsText()); | |
Console.WriteLine("area: " + geom4.Area); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://chocolatey.org | |
cinst evernote | |
cinst googletalk | |
cinst fiddler | |
cinst paint.net | |
cinst GoogleChrome | |
cinst SkyDrive | |
cinst spotify | |
cinst picasa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GeonamesApi | |
{ | |
public Earthquake[] GetEarthquakes() | |
{ | |
var client = new HttpClient(); | |
client.BaseAddress = new Uri("http://api.geonames.org/"); | |
var response = client.GetAsync("earthquakesJSON?north=44.1&south=-9.9&east=-22.4&west=55.2&username=bertt").Result; | |
var earthquakesJson = response.Content.ReadAsStringAsync().Result; | |
var rootobject = JsonConvert.DeserializeObject<Rootobject>(earthquakesJson); | |
return rootobject.earthquakes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script> | |
<script type="text/javascript"> | |
// zonder jsonp | |
$.getJSON('rest/agn/gebouwen?wkt=POINT(234403 579310)', function (data) { | |
alert("data: " + data); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using Npgsql; | |
namespace PipeLineDbHelloworld | |
{ | |
class Program | |
{ | |
private static string connString = "Server=192.168.99.100;User Id=pipeline;Password=pipeline;Database=pipeline"; | |
static void Main(string[] args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text; | |
using uPLibrary.Networking.M2Mqtt; | |
using uPLibrary.Networking.M2Mqtt.Messages; | |
namespace MqttClient_Net | |
{ | |
class Program | |
{ | |
static void Main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apache Kafka hello World | |
1] Zookeeper | |
docker run -d -p 2181:2181 --name zookeeper jplock/zookeeper | |
2] Kafka | |
docker run -d --name kafka --link zookeeper:zookeeper ches/kafka | |
3] Create Consumer: | |
docker run -t -i --rm geertvb/kafkacat kafkacat -C -b 172.17.0.3:9092 -t testtopic | |
4] Create Producer: | |
docker run -t -i --rm geertvb/kafkacat kafkacat -P -b 172.17.0.3:9092 -t testtopic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tip: use Python 2.7 (not 3.5) and the right bit version (64) otherwise | |
things will go wrong | |
1] Install | |
linux: | |
sudo apt-get install libgeos-dev | |
pip install shapely | |
sudo -H pip install quantized-mesh-tile | |
mac: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to enable NuGet package publishing on AppVeyor | |
1] Create nuspec file next to .csproj file in GitHub (same name) | |
2] Enable NuGet packaging | |
AppVeyor -> settings- > Build -> MsBuild -> Automatic packaging -> check 'Package NuGet projects' | |
3] Add NuGet Api key | |
AppVeyor -> settings -> deployment -> deployment provider -> select NuGet -> Api Key -> fill in your NuGet api key | |
Optional: secure api key with https://ci.appveyor.com/tools/encrypt | |
4] Add version number patching | |
AppVeyor -> settings -> General -> AssemblyInfo patching -> Check 'On' |
OlderNewer