Skip to content

Instantly share code, notes, and snippets.

Avatar

Richard Fairhurst systemed

View GitHub Profile
@typebrook
typebrook / MBTilesServer.kt
Last active Sep 15, 2020
How to make MBTiles valid on Mapbox Android SDK #mbtiles #android #mapbox
View MBTilesServer.kt
import android.util.Log
import java.io.BufferedReader
import java.io.ByteArrayOutputStream
import java.io.FileNotFoundException
import java.io.PrintStream
import java.net.ServerSocket
import java.net.Socket
import kotlin.math.pow
/**
@dorkrawk
dorkrawk / dijkstras.cr
Created Mar 27, 2017
Dijkstra's Algorithm implemented in Crystal
View dijkstras.cr
class Node
getter name, edges
def initialize(@name : String)
@edges = {} of Node => Float64
end
def add_edge(node, weight)
@edges[node] = weight
end
You can’t perform that action at this time.