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
# frozen_string_literal: true | |
# On/off switch for modules, systems and zones. | |
namespace :set_running do | |
UAT_ZONE_ID = 'zone-dh6ONGpV-p' | |
DEVICE_MANAGEMENT_ZONE_ID = 'zone-ZYB31rEaOJ' | |
# ------------------------------ | |
# Helpers |
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
/** | |
* Rudimentary library for building string representations of flat JSON objects. | |
*/ | |
program_name='json-builder' | |
#if_not_defined __JSON_BUILDER_ | |
#define __JSON_BUILDER_ | |
define_constant |
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
PROGRAM_NAME='RmsApiAux' | |
#IF_NOT_DEFINED __RMS_API_AUX__ | |
#DEFINE __RMS_API_AUX__ | |
#INCLUDE 'RmsApi' | |
define_constant |
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
' Rewrite the subject of auto generated emails from XTrack so that they can be | |
' handled neatly by Outlook subject grouping | |
Sub XTrackRewrite(Item As Outlook.MailItem) | |
Dim ID As String | |
Dim c As String | |
ID = getXTrackID(Item) | |
If (ID = "") Then | |
Return | |
End If |
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
package com.amxaustralia.duet.util; | |
import com.amx.duet.devicesdk.base.Module; | |
import com.amx.duet.devicesdk.base.ModuleComponentEvent; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class ModuleStateHandler { | |
private static final Map instances = new HashMap(); |
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
Copyright (C) 2012 Queensland Department of Justice and Attorney General. | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in |
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
Copyright (C) 2012 Queensland Department of Justice and Attorney General. | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in |