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
// AsyncPage.qml | |
import QtQuick | |
import QtQuick.Controls | |
Page { | |
function _asyncToGenerator(fn) { | |
return function() { | |
var self = this, | |
args = arguments | |
return new Promise(function(resolve, reject) { | |
var gen = fn.apply(self, args) |
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
bool done = true; | |
do | |
{ | |
char Opt[255]; | |
cout << "\nOption: "; | |
cin >> Opt; | |
done = true; | |
switch (Opt[0]) | |
{ | |
case '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
<html> | |
<head> | |
<meta http-equiv="x-ua-compatible" content="ie=edge" /> | |
<style> | |
div.redCross { | |
display: inline-block; | |
width: 16px; | |
height: 16px; | |
background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20stroke%3D%22red%22%20d%3D%22M23.985%208.722L16.707%2016l7.278%207.278-.707.707L16%2016.707l-7.278%207.278-.707-.707L15.293%2016%208.015%208.722l.707-.707L16%2015.293l7.278-7.278z%22%2F%3E%3C%2Fsvg%3E); | |
} |
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
<html> | |
<head> | |
<meta http-equiv="x-ua-compatible" content="ie=edge" /> | |
<script> | |
function svgToDataURL(svg) { | |
return "data:image/svg+xml;charset=utf-8," + encodeURIComponent(svg); | |
//return "data:image/svg+xml;base64," + btoa(svg); // this works too! | |
//return "data:image/svg+xml;charset=utf-8," + svg; // this only works in modern browsers | |
} | |
var assets = { |
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 QtQuick 2.15 | |
import QtQuick.Controls 2.15 | |
import Qt5Compat.GraphicalEffects | |
Page { | |
Image { | |
id: background | |
anchors.fill: parent | |
source: "https://i.stack.imgur.com/iuLXK.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
import json, urllib.parse, urllib.request | |
CLIENT_ID = 'appstudioweb' | |
REDIRECT_URI = 'urn:ietf:wg:oauth:2.0:oob' | |
# Prompt for refresh token | |
refresh_token = input('Copy and paste refresh_token here: ') | |
# Obtain token | |
target = "https://www.arcgis.com/sharing/rest/oauth2/token" |
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, urllib.parse, urllib.request | |
CLIENT_ID = 'appstudioweb' | |
REDIRECT_URI = 'urn:ietf:wg:oauth:2.0:oob' | |
# Show OAuth2 dialog and get OAuth2 secret | |
print('Open a web browser and navigate to:') | |
print('') | |
print('https://www.arcgis.com/sharing/rest/oauth2/authorize/?hidecancel=true&client_id=appstudioweb&grant_type=code&response_type=code&expiration=-1&redirect_uri=urn:ietf:wg:oauth:2.0:oob&locale=en') | |
print('') |
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 -xe | |
# This script enables virtual camera support on Microsoft Teams for macOS. | |
# This script may be needed to enable 3rd party virtual camera apps such as | |
# Snap Camera to be used as a Camera source for Microsoft Teams. | |
# | |
# To run apply this patch, do the following steps: | |
# | |
# 1. Completely quit Microsoft Teams. | |
# 2. Open the Terminal app, found in Applications -> Utilities |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<ArcPad> | |
<APPLET> | |
<SYSTEMOBJECTS> | |
<MAP onidentify="OnIdentify"/> | |
</SYSTEMOBJECTS> | |
</APPLET> | |
<SCRIPT src="MapIdentify.vbs" language="vbscript"/> | |
</ArcPad> |
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 QtQuick 2.12 | |
import QtQuick.Controls 2.5 | |
import QtQuick.Layouts 1.12 | |
import ArcGIS.AppFramework 1.0 | |
Item { | |
ColumnLayout { | |
anchors.fill: parent | |
anchors.margins: 10 |
NewerOlder