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
{ | |
"baseLayer": { | |
"tilejson": "2.2.0", | |
"name": "base", | |
"version": "1.0.0", | |
"scheme": "xyz", | |
"tiles": [ | |
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png" | |
] | |
}, |
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
// set up lifecycle events in Android Main Activity | |
private static final String TAG = "MainActivity"; | |
@Override | |
public void onPause() { | |
super.onPause(); | |
ReactContext reactContext = getReactInstanceManager().getCurrentReactContext(); | |
WritableMap params = Arguments.createMap(); | |
params.putString("event", "onPause"); |
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
language: android | |
sudo: required | |
jdk: oraclejdk8 | |
branches: | |
only: | |
- master # build master branch only | |
before_cache: | |
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock |
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
import json | |
import requests | |
import lxml.html as lh | |
import pandas as pd | |
from htmlmin import minify | |
# /////////////////////////////////////////////////// | |
# scrape url table and convert to panda datatable | |
# /////////////////////////////////////////////////// |
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
<!DOCTYPE connections> | |
<qgsXYZTilesConnections version="1.0"> | |
<xyztiles name="CARTO Dark" referer="" authcfg="" zmin="0" password="" url="https://a.basemaps.cartocdn.com/rastertiles/dark_all/{z}/{x}/{y}@2x.png" zmax="18" username=""/> | |
<xyztiles name="CARTO Light" referer="" authcfg="" zmin="0" password="" url="https://a.basemaps.cartocdn.com/rastertiles/light_all/{z}/{x}/{y}@2x.png" zmax="18" username=""/> | |
<xyztiles name="CARTO Light No Labels" referer="" authcfg="" zmin="0" password="" url="https://a.basemaps.cartocdn.com/rastertiles/light_nolabels/{z}/{x}/{y}@2x.png" zmax="18" username=""/> | |
<xyztiles name="CARTO Voyager" referer="" authcfg="" zmin="0" password="" url="https://a.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}@2x.png" zmax="18" username=""/> | |
<xyztiles name="Carto Position" referer="" authcfg="" zmin="0" password="" url="https://cartodb-basemaps-a.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png" zmax="18" username=""/> | |
<xyztiles name="ESRI Imagery" referer="" auth |
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 ow_appid = [APPID]; | |
var ow_base_url = 'https://api.openweathermap.org'; | |
var ow_api = '/data/2.5'; | |
// changed event | |
ON('click', 'get_current_temp', getWeather); | |
// get open weather summary | |
function getWeather() { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
(AA in #AARRGGBB) | |
100% — FF | |
95% — F2 | |
90% — E6 | |
85% — D9 | |
80% — CC | |
75% — BF | |
70% — B3 | |
65% — A6 |
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
$ node --version | |
$ brew search node | |
$ brew unlink node | |
$ brew install node@8 | |
$ brew link node@8 |
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
function setjdk() { | |
if [ $# -ne 0 ]; then | |
removeFromPath '/System/Library/Frameworks/JavaVM.framework/Home/bin' | |
if [ -n "${JAVA_HOME+x}" ]; then | |
removeFromPath $JAVA_HOME | |
fi | |
export JAVA_HOME=`/usr/libexec/java_home -v $@` | |
export PATH=$JAVA_HOME/bin:$PATH | |
fi | |
} |
NewerOlder