Skip to content

Instantly share code, notes, and snippets.

View aetheon's full-sized avatar

Oscar Brito aetheon

View GitHub Profile
@aetheon
aetheon / GET services health
Created September 9, 2019 07:56
Consul API examples
// GET /v1/health/service/video-call-core
[
{
"Node": {
"ID": "3879921a-38f3-b799-2429-66a60f7b7171",
"Node": "ip-172-31-73-146",
"Address": "172.31.73.146",
"Datacenter": "eu-west",
"TaggedAddresses": {
"lan": "172.31.73.146",
@aetheon
aetheon / Alloy Controller
Last active August 29, 2015 14:06
Alloy generated controller code
function Controller() {
require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
this.__controllerPath = "index";
arguments[0] ? arguments[0]["__parentSymbol"] : null;
arguments[0] ? arguments[0]["$model"] : null;
arguments[0] ? arguments[0]["__itemTemplate"] : null;
var $ = this;
var exports = {};
$.__views.index = Ti.UI.createWindow({
backgroundColor: "white",