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
"use strict" | |
let UA_KEY = 'your_Universal_analytics_key (starts with UA)' | |
var ua = require('universal-analytics'); | |
let visitor = ua(UA_KEY); | |
let value= 35; | |
visitor.event('sensor 1', value,function (err){ | |
if (err) return console.log("error:" + err); | |
console.log('Sent event to GA', 'Gesture', value); |
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
alias dev='cd /mnt/d/dev/github.com' | |
alias godev='cd /mnt/d/dev/go/src/github.com' |
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
api tdf2017 | |
// teams | |
http://fep-api.dimensiondata.com/v2/teams | |
// riders (race=19) | |
http://fep-api.dimensiondata.com/v2/rider/v2/19 | |
// stages | |
http://fep-api.dimensiondata.com/v2/race/19/stages |
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
var connection = new HubConnectionBuilder() | |
.WithUrl("http://localhost:5000/chat") | |
.WithConsoleLogger() | |
.Build(); | |
connection.On<string>("Send", data => | |
{ | |
Console.WriteLine($"Received: {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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"sort" | |
"strings" | |
) | |
func handler(w http.ResponseWriter, r *http.Request) { |
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
var Person = (function () { | |
function Person(name) { | |
this.name = name; | |
} | |
return Person; | |
})(); | |
function greeter(person) { | |
return "hallo " + person.name; | |
} | |
var person = new Person("bert"); |
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
wget https://storage.googleapis.com/golang/go1.8.3.linux-armv6l.tar.gz | |
sudo tar -C /usr/local -xzf go1.8.3.linux-armv6l.tar.gz | |
export PATH=$PATH:/usr/local/go/bin |
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.IO; | |
using Microsoft.Spatial; | |
namespace TestSpatial2 | |
{ | |
class Program | |
{ | |
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
How to debug your Android application over WIFI | |
0] Preparations | |
- Connect Android phone to usb | |
- Put your IDE in debug mode | |
- get adb tool working on command line |
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
# Sample datat set: New York City taxicab data (10 milion records) | |
## 1] met timescaledb | |
d:\> cd D:\gisdata\nyc_cabs | |
d:\gisdata\nyc_cabs> bash | |
// start database docker | |
$ docker run -d --name timescaledb -p 5432:5432 -e POSTGRES_PASSWORD=postgres timescale/timescaledb-postgis | |
// create schema for taxi rides | |
$ psql -U postgres -d postgres -h localhost < nyc_data.sql |