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
// This sample demonstrates how we can programmatically extract the primary key and indexes for a table. | |
import QtQuick 2.7 | |
import QtQuick.Controls 2.1 | |
import QtQuick.Layouts 1.3 | |
import ArcGIS.AppFramework 1.0 | |
import ArcGIS.AppFramework.Sql 1.0 | |
Item { | |
TextArea { |
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
// This sample demonstrates connecting to a variety of different databases using SqlDatabase. | |
// It makes use of Sql.availableDrivers and SqlDatabase.driverName to present you a list of database types. | |
// QSQLITE is supported on all platforms (Android, iOS, Windows, macOS, linux) | |
// QODBC works best on Windows, but, somewhat difficult to work on macOS and Linux. | |
// QPSQL works best on macOS, but, somewhat difficult to work on Windows and Linux. | |
// QMYSQL should work okay on Windows, macOS and Linux. | |
import QtQuick 2.7 | |
import QtQuick.Controls 2.1 | |
import QtQuick.Layouts 1.3 |
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.7 | |
import QtQuick.Layouts 1.3 | |
import QtQuick.Controls 2.1 | |
import ArcGIS.AppFramework.Devices 1.0 | |
import ArcGIS.AppFramework.Positioning 1.0 | |
Item { | |
property DeviceListModel deviceListModel: discoveryAgent.devices | |
property Device currentDevice |
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.7 | |
import QtQuick.Layouts 1.3 | |
import QtQuick.Controls 2.1 | |
import ArcGIS.AppFramework.Devices 1.0 | |
import ArcGIS.AppFramework.Positioning 1.0 | |
Item { | |
property DeviceListModel deviceListModel: discoveryAgent.devices | |
property Device currentDevice | |
property Position currentPosition |
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
// This sample shows how you can make a QtQuick 1 table have the a QtQuick 2 look and feel | |
// - Uses custom headerDelegate, rowDelegate, itemDelegate | |
// - Also shows: | |
// - how to dynamically create columns | |
// - make the table "flickable" on Android devices | |
// - simple "3D" styling with LinearGradient | |
import QtQuick 2.8 | |
import QtQuick.Controls 1.4 | |
import QtQuick.Controls 2.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
import QtQuick 2.7 | |
import QtQuick.Layouts 1.3 | |
import QtQuick.Controls 2.1 | |
import ArcGIS.AppFramework.Devices 1.0 | |
Item { | |
property DeviceListModel deviceListModel: discoveryAgent.devices | |
property Device currentDevice | |
ColumnLayout { |
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 | |
currentDir="$(pwd)" | |
scriptsDir="$(cd $(dirname $0); pwd)" | |
datestamp=$(date +%Y%m%d) | |
function showUsage { | |
cat <<+ | |
HockInstall.sh -name Name of app | |
-appId HockeyApp App Id |
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.7 | |
import QtQuick.Layouts 1.3 | |
import QtQuick.Controls 2.1 | |
import ArcGIS.AppFramework.Devices 1.0 | |
Item { | |
property DeviceListModel deviceListModel: discoveryAgent.devices | |
property Device currentDevice | |
ColumnLayout { |
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
module.exports = { | |
port: 8080, | |
createOptions: { | |
name: 'Http Server', | |
version: '1.0.0' | |
}, | |
bodyParserOptions: { | |
uploadDir: '/tmp/node_https', | |
keepExtensions: true | |
} |
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
# Demonstrates psql command line client on Ubuntu machines | |
# See: https://www.postgresql.org/download/linux/ubuntu/ | |
cat $HOME/.pgpass <<EOF | |
$PGHOST:5432:$PGINST:$PGUSER:$PGPASS | |
EOF | |
psql -h $PGHOST -p 5432 -U $PGUSER $PGINST -t -f - <<EOF | |
drop table primes; | |
create table primes ( |