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 datastore | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"sync" | |
) | |
// cacheSetFunc is a function to update cache keys. |
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
diff -r 2e0936c9783e broadcast/alarmstream.go | |
--- a/broadcast/alarmstream.go Thu Jan 17 13:36:18 2019 +0100 | |
+++ b/broadcast/alarmstream.go Fri Jan 18 12:59:27 2019 +0100 | |
@@ -181,6 +181,15 @@ | |
return nil | |
} | |
+func (asb *AlarmStreamBroker) heartbeat() { | |
+ // TODO: Implement me! | |
+} |
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 ( | |
"database/sql" | |
"time" | |
) | |
const querySQL = ` | |
SELECT | |
st_x(koordinate), |
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 ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"os" | |
) | |
//type Point2D [2]float64 |
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 ( | |
"context" | |
"database/sql" | |
"fmt" | |
"log" | |
"github.com/jackc/pgx" | |
"github.com/jackc/pgx/stdlib" |
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
// convert -- a little file splitter | |
// (c) 2018 by Sascha L. Teichmann | |
// This is Free Software covered by the terms of the MIT license. | |
// | |
package main | |
import ( | |
"bufio" | |
"flag" |
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
// Small example how to do a web server in Go with stdlib. | |
// (c) 2017 by Sascha L. Teichmann | |
// The is Free Software covered by the terms of the MIT License. | |
// See https://opensource.org/licenses/MIT for details. | |
package main | |
import ( | |
"context" | |
"fmt" |
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
// blindtiffs | |
// ---------- | |
// Usage: blindtiffs <src> <dst> | |
// Recursively copies folder <src> to folder <dst>. | |
// All GeoTIFFs in the source tree are 'blinded' by | |
// gdal_calc.py to have zero channels but still contain | |
// all the meta data. | |
// | |
// (c) 2017 by Sascha L. Teichmann |
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
// Simple experiment to parallel ssh-ing into remote machines with Go. | |
// | |
// (c) 2017 by Sascha L. Teichmann | |
// The is Free Software covered by the terms of the MIT License. | |
// See https://opensource.org/licenses/MIT for details. | |
// | |
package main | |
import ( | |
"bufio" |
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
// A simple experiment to check how fast point in polygon tests with | |
// a first level spatial index filter are. | |
// | |
// This is Free Software covered by the MIT license. | |
// See https://opensource.org/licenses/MIT for details. | |
// (c) 2017 by Sascha L. Teichmann ([email protected]) | |
// | |
package main | |
import ( |
NewerOlder