Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"strings"
)
func main() {
data := "*ZJ,2030295062,V1,113057,A,3029.7113,N,7711.408,E,21.95,41.95,120518,00000000#"
package main
import (
"fmt"
"strings"
)
func main() {
data := "*ZJ,2030295062,V1,113057,A,3029.7113,N,7711.408,E,21.95,41.95,120518,00000000#"
package main
import (
"fmt"
"strings"
)
func main() {
data := "*ZJ,2030295062,V1,113057,A,3029.7113,N,7711.408,E,21.95,41.95,120518,00000000#"
package main
import (
"bufio"
"database/sql"
"fmt"
"net"
"strings"
"time"
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Animate a point</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=yes' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.45.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.45.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@g14a
g14a / script.go
Last active February 16, 2021 14:11
package main
import (
"bytes"
"fmt"
"math/rand"
"os/exec"
"strconv"
"time"
)
package main
import (
"net/http"
"github.com/rs/cors"
)
func main() {
c := cors.AllowAll()
<!DOCTYPE html>
<html>
<head>
<style>
body, html {
margin: 0;
height: 100%;
width: 100%;
}
/* Set the size of the div element that contains the map */
// Chris Nauroth
// Intel Threading Challenge 2011
// Prime Sums
// This solution uses Intel Threading Building Blocks to set up a parallel
// pipeline consisting of 3 filters:
//
// 1. PrimeFunctor runs in serial and uses an implementation of the sieve of
// Eratosthenes to emit prime numbers.
//
package main
import (
"fmt"
)
func main() {
n := 2000
count := 0