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 amqp = require('amqplib/callback_api'); | |
const Ably = require('ably') | |
const url = 'amqps://APPID.KEYID:[email protected]/shared' | |
const queue = 'UATwBQ:example-queue' | |
function actionMessage(message) { | |
console.log(message) | |
} |
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> | |
<title>Airbnb Embed</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</head> | |
</html> |
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 hashlib | |
import hmac | |
import six | |
def validate_hub_signature(app_secret, request_payload, hub_signature_header): | |
""" | |
@inputs: | |
app_secret: Secret Key for application | |
request_payload: request body |
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
/* eslint no-process-exit: 0 */ | |
"use strict"; | |
//require("requirish")._(module); | |
Error.stackTraceLimit = Infinity; | |
var argv = require('yargs') | |
.wrap(132) | |
.string("alternateHostname") | |
.describe("alternateHostname") |
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
/*global require,setInterval,console */ | |
var opcua = require("node-opcua"); | |
var Variant = opcua.Variant; | |
var DataType = opcua.DataType; | |
var DataValue = opcua.DataValue; | |
// Let's create an instance of OPCUAServer | |
var server = new opcua.OPCUAServer({ |