[Raster tiles][rt] | [Vector tiles][vt] | GeoJSON | virtual-dom | offline | map quality | React component | React Native | |
---|---|---|---|---|---|---|---|---|
google maps | + | + | good | [4 unsupported][gm-react] | [+][gm-native] | |||
leaflet * | + | [+][ll-vt] | + | [+/-][ll-offline] | depends | [+][ll-rect] | ||
d3 * | + | [+/-][d3-vdom] | +/- | depends | [+][d3-react] | |||
MapboxGL | + | + | depends | [+][mb-react] | [+][mb-native] | |||
Yandex Maps | + |
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
require 'amqp' | |
module HiringThingEM | |
def self.start | |
if defined?(PhusionPassenger) | |
PhusionPassenger.on_event(:starting_worker_process) do |forked| | |
# for passenger, we need to avoid orphaned threads | |
if forked && EM.reactor_running? | |
EM.stop | |
end | |
Thread.new { |
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
#!/bin/bash | |
if [ -z "$VERSION" ]; then | |
echo 'Please specify a version. e.g, "VERSION=1.11.2 sh install-go.sh"' | |
exit | |
fi | |
export GO_DOWNLOAD_URL=https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz | |
export GOPATH=/workspace |
Three functions from the OpenFaaS store have been packaged as "knative serving" definitions. No change to the container or code is needed.
- Inception - identify the content of images with machine-learning - is it a bird, a plane or what?
- Colorise - turn any black and white image into colour
- NodeInfo - give system info, pass "verbose" as the body for network adapters etc.
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
#!/usr/bin/env bash | |
# Author: Sasha Nikiforov | |
# source of inspiration | |
# https://stackoverflow.com/questions/41293077/how-to-compile-tensorflow-with-sse4-2-and-avx-instructions | |
# Detect platform | |
if [ "$(uname)" == "Darwin" ]; then | |
# MacOS |
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
upstream deploy_phoenix { | |
server 127.0.0.1:8888; | |
} | |
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} | |
# REDIRECT HTTP www.example.com to HTTPS example.com |
NewerOlder