-- Tim kiem cac cua hang TGDĐ cach 1000m
SELECT * FROM hcm_tgdd WHERE ST_DWithin(
ST_Transform(geom, 32648),
ST_Transform(ST_SetSRID(ST_Point(106.69093,10.77082), 4326), 32648),
1000
);
-- Tao diem tu toa do
SELECT ST_SetSRID(ST_Point(106.69093, 10.77082), 4326);
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 doman_v1 = [ | |
['recid', 'Year', 'Income', 'Type', 'Time'], | |
[42, '2011-05-01', '', 'doman', 1304182800000], | |
[41, '2012-01-01', '26', 'doman', 1325350800000], | |
[40, '2012-02-01', '234', 'doman', 1328029200000], | |
[39, '2012-03-01', '12', 'doman', 1330534800000], | |
[36, '2013-01-01', '', 'doman', 1356973200000], | |
[35, '2013-02-01', '267', 'doman', 1359651600000], | |
]; |
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
// Cái hàm để add sự kiện | |
function toggle_blur(messDiv){ | |
// Add event listeners to handle hover effect | |
messDiv.addEventListener("mouseover", function() { | |
this.style.filter = "none"; // Remove blur on hover | |
}); | |
messDiv.addEventListener("mouseout", function() { | |
this.style.filter = "blur(5px)"; // Add blur when not hovering | |
}); |
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 | |
COMMAND="$1" | |
shift | |
function liz_storage() { | |
echo "Storage - configure termux setup storage" | |
termux-setup-storage | |
} |
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 html> | |
<html> | |
<head> | |
<title>Seed tool</title> | |
<style> | |
.seed-status { | |
display: inline-block; | |
padding; 2px; | |
background: #ccc; | |
} |
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 urllib2 | |
import base64 | |
baseURL = "https://domain.example:8080/geoserver/gwc/rest/seed/" | |
descURL = "https://domain.example:8080/geoserver/gwc/rest/layers/" | |
un = 'username' | |
pw = 'biglongtrickypassword' | |
def truncateLayer(layer): |
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 requests | |
class GeoWebCacheService(object): | |
"""Class to communicate with the geowebcache api. | |
Api doco here: http://geowebcache.org/docs/current/rest/seed.html | |
""" | |
_url = None | |
_username = None | |
_password = None |
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 python | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
import re | |
import sqlite3 as sqlite | |
# Hacky serving of MBtile data | |
# Put filename to the MBTiles file below: this could be done with cmd line options | |
# but this is a hack so there .... |
WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator. The problem is Windows Subsystem for Android is currently only available through preview via the Beta Channel of the Windows Insider Program. But if you follow my guide, you don't have to be in Windows Insider Program to try it out. The only thing you need is Windows 11 installed and some patience.
- Windows Subsystem for Android or WSA must be Installed.
Click here to view the guide that shows how to install Windows Subsystem for Android in any Edition of Windows 11 (including Windows 11 Home) non Inider or stable release.
- First install Windows Subsystem for Android. [Click here](https://gist.github.com/HimDek/eb8704e2da1d98240153165743
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
version: '3' | |
services: | |
app: | |
image: 'jc21/nginx-proxy-manager:latest' | |
restart: always | |
ports: | |
- '80:80' | |
- '1084:81' | |
- '443:443' | |
volumes: |
NewerOlder