This file contains hidden or 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
| Sub testTile() | |
| Dim x, y, z As Integer | |
| Dim isi As String | |
| Dim fileNumber As Integer | |
| fileNumber = FreeFile | |
| 'http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/5/15/24 | |
| 'format is JPG | |
This file contains hidden or 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>Leaflet CDN - Local WorldImagery</title> | |
| <style> | |
| html, body, #map{ | |
| height: 100%; | |
| margin: 0px; | |
| padding: 0px | |
| } |
This file contains hidden or 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
| Sub stamenWaterColor() | |
| ' subprosedur untuk membuat sebuah batch file untuk mendownload ubin dari stamen | |
| ' stamen_watercolor = L.tileLayer('http://{s}.tile.stamen.com/watercolor/{z}/{x}/{y}.jpg'); | |
| ' | |
| ' ubin di download menggunakan wget | |
| ' | |
| ' logika yang dilakukan adalah membuat sebuah direktori dahulu untuk mendownloadnya | |
| ' (karena wget -x hanya untuk direktori yang sama, makanya tidak bisa) | |
| ' solusi adalah dengan wget -O | |
| ' |
This file contains hidden or 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 long2tile(lon,zoom) { | |
| return (Math.floor((lon+180)/360*Math.pow(2,zoom))); | |
| } | |
| function lat2tile(lat,zoom) { return (Math.floor((1-Math.log(Math.tan(lat*Math.PI/180) + 1/Math.cos(lat*Math.PI/180))/Math.PI)/2 *Math.pow(2,zoom))); } | |
| function tile2lon(x,z) { | |
| return (x/Math.pow(2,z)*360-180); | |
| } | |
| function tile2lat(y,z) { |
This file contains hidden or 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
| Sub debugprint(x1 As Integer, x2 As Integer, y1 As Integer, y2 As Integer, z As Integer) | |
| Dim x, y As Integer | |
| For x = x1 To x2 | |
| For y = y1 To y2 | |
| Debug.Print "wget -O " & z & "-" & x & "-" & y & ".jpg " & "http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/" & z & "/" & y & "/" & x | |
| Next y | |
| Next x | |
| 'Debug.Print "Banyak Kolom=" & (x2 - x1 + 1) |
This file contains hidden or 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>Leaflet CDN</title> | |
| <style> | |
| html, body, #map{ | |
| height: 100%; | |
| margin: 0px; | |
| padding: 0px | |
| } |
This file contains hidden or 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
| id | place_name | url | |
|---|---|---|---|
| NA 46-8 | Sibago | http://www.lib.utexas.edu/maps/ams/indonesia/txu-oclc-21752461-na46-8.jpg | |
| NA 47-1 | Tapaktuan | http://www.lib.utexas.edu/maps/ams/indonesia/txu-oclc-21752461-na47-1.jpg | |
| NA 47-2 | Medan | http://www.lib.utexas.edu/maps/ams/indonesia/txu-oclc-21752461-na47-2.jpg | |
| NA 47-3 | Tebingtinggi | http://www.lib.utexas.edu/maps/ams/indonesia/txu-oclc-21752461-na47-3.jpg | |
| NA 47-5 | Sinabang | http://www.lib.utexas.edu/maps/ams/indonesia/txu-oclc-21752461-na47-5.jpg | |
| NA 47-6 | Pangururan | http://www.lib.utexas.edu/maps/ams/indonesia/txu-oclc-21752461-na47-6.jpg | |
| NA 47-7 | Tandjungbalai | http://www.lib.utexas.edu/maps/ams/indonesia/txu-oclc-21752461-na47-7.jpg | |
| NA 47-8 | Bagan Siapiapi | http://www.lib.utexas.edu/maps/ams/indonesia/txu-oclc-21752461-na47-8.jpg | |
| NA 47-9 | Lahewa | http://www.lib.utexas.edu/maps/ams/indonesia/txu-oclc-21752461-na47-9.jpg |
This file contains hidden or 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
| // ==UserScript== | |
| // @name Libgen direct page | |
| // @namespace id.kampar.libgen | |
| // @description change javascript link into real link | |
| // @include https://libgen.pw/search.php* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| a_ns = document.evaluate('//a[contains(@href, "javascript:window.open")]', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); |
This file contains hidden or 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
| Type titik | |
| x As Long | |
| y As Long | |
| End Type | |
| Private Function CalcTileXY(ByVal lat As Single, ByVal lon As Single, ByVal zoom As Long) As titik | |
| CalcTileXY.x = CLng(((lon + 180) / 360 * 2 ^ zoom)) | |
| CalcTileXY.y = CLng(((1 - Math.Log(Math.Tan(lat * pi / 180) + 1 / Math.Cos(lat * pi / 180)) / pi) / 2 * 2 ^ zoom)) | |
| End Function |
This file contains hidden or 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
| <body><h2>Laporan Statistik Bangunan pada Senin, 4 Desember 2017 </h2> | |
| <div id="chart"><svg width="1020" height="1050" id="myViewer" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" style="overflow:scroll;margin:0;"><g transform="translate(170,20)"><text x="0" dy="-3" text-anchor="middle">0</text><text x="59.96898746648162" dy="-3" text-anchor="middle">200000</text><text x="119.93797493296324" dy="-3" text-anchor="middle">400000</text><text x="179.90696239944486" dy="-3" text-anchor="middle">600000</text><text x="239.8759498659265" dy="-3" text-anchor="middle">800000</text><text x="299.8449373324081" dy="-3" text-anchor="middle">1000000</text><text x="359.81392479888973" dy="-3" text-anchor="middle">1200000</text><text x="419.7829122653714" dy="-3" text-anchor="middle">1400000</text><text x="479.751899731853" dy="-3" text-anchor="middle">1600000</text><text x="539.7208871983346" dy="-3" text-anchor="middle">1800000</text><text x="599.6898746648162" dy="-3" text-anchor="middle"> |