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
const buttonsWithAttribute = document.querySelectorAll('button[data-title="BELUM ACC"]'); | |
buttonsWithAttribute.forEach(button => { | |
const href = button.getAttribute('href'); | |
window.open(href,'_blank'); // Logs the href attribute value for each button | |
}); |
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
svg=document.querySelector("#maingraph"); | |
var serializer = new XMLSerializer(); | |
var svg_blob = serializer.serializeToString(svg); | |
var svg_url = 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent('<?xml version="1.0" standalone="no"?>\n' + svg_blob); | |
var download_link = document.createElement('a'); | |
download_link.href = svg_url; | |
download_link.download = 'your_file_name.svg'; | |
document.body.appendChild(download_link); | |
download_link.click(); | |
document.body.removeChild(download_link); |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Proj4js Sample</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.7.5/proj4.js"></script> | |
</head> | |
<body> | |
<h1>Proj4js Sample</h1> |
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
alert(atob(document.querySelector("div.apply_button > a").href.split('&fGoldUrl=')[1])) |
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
Begin KamparTribunalScript | |
short button | |
short messageOn | |
short reset | |
short OnPcEquip | |
;if ( MenuMode == 1 ) | |
; Return | |
;endif | |
;jika tidak dipasang, reset balik kan lagi 0 | |
if ( OnPCEquip == 0 ) |
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
# layer to hold our current selected active layer | |
layer = iface.activeLayer() | |
#create new fields: skala1000w,skala1000h, ... | |
layer.dataProvider().addAttributes([QgsField("skala1000w",QVariant.Int),QgsField("skala1000h",QVariant.Int),QgsField("skala2500w",QVariant.Int),QgsField("skala2500h",QVariant.Int),QgsField("skala5000w",QVariant.Int),QgsField("skala5000h",QVariant.Int)]) | |
# save all the changes | |
layer.updateFields() | |
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
class RBI{ | |
constructor(rbi){ | |
this.type="Feature"; | |
this.north=0; | |
this.south=0; | |
this.west=0; | |
this.east=0; | |
this._rbi=rbi; | |
} | |
toGeoJSON=function(){ |
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
Sub mainmain() | |
Dim objPresentation As Presentation | |
Dim objSlide As Slide | |
Dim objImageBox As Shape | |
Set objPresentation = ActivePresentation | |
Set objSlide = objPresentation.Slides.Item(42) | |
Set objImageBox = objSlide.Shapes.AddPicture( _ |
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>UESP Leaflet</title> | |
<style> | |
html, body, #map{ | |
height: 100%; | |
margin: 0px; | |
padding: 0px | |
} |
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
LAYER | |
#... # | |
CLASS | |
EXPRESSION ([pixel] >= -1 AND [pixel] < -0.5) | |
STYLE | |
#ramp from 0d0d0d to bfbfbf | |
COLORRANGE 13 13 13 191 191 191 | |
DATARANGE -1 -0.5 | |
RANGEITEM "pixel" |
NewerOlder