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 Backtracable | |
def self.included(klass) | |
klass.class_eval do | |
include InstanceMethods | |
end | |
end | |
module InstanceMethods | |
def backtrace(e: nil, logger: Rails.logger, method: :warn) |
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
{ | |
"get" : "https://path/to/get", | |
"put" : "https://path/to/post", | |
"type" : "none" | |
} |
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
{ | |
# ...(snip)... | |
"myResourceField" : { | |
"get" : "https://my.resource.url?with=parameter", | |
"put" : "https://my.resource.url?with=parameter", | |
"type" : "sandbox.type.net" | |
}, | |
# ...(snip)... | |
} |
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
"MyModel" : { | |
"array" : true, | |
"shared" : false, | |
"attributes" : { | |
"my16bitIntField" : {"type" : "int16"}, | |
"my32BitIntField" : {"type" : "int32"}, | |
"my64BitIntField" : { | |
"type" : "int64", | |
}, | |
"myBooleanField" : {"type" : "boolean"}, |
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
<% @devices.each do |d| %> | |
<div class="container"> | |
<table class="table-condensed"> | |
<tr> | |
<td><h3>Gateway: <%= d.name %></h3></td> | |
<td> | |
<%= link_to({controller: "dashboard", action: "start_blink", name: d.name}, class: 'btn btn-info') do %> | |
Start Blink <i class='icon-play-circle'></i> | |
<% end %> | |
</td> |
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 Moat | |
REST_URI = "https://sandbox.service-sync.com" | |
REST_PATH = "/moat/v1" | |
PACKAGE_ID = "blink-rgx-led" | |
APPLICATION_ID = "<Your Application ID>" | |
API_CLIENT_ID = "<Your Client ID>" | |
API_CLIENT_SECRET = "<Your Client Secret>" |
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
#include <servicesync/moat.h> | |
#include <stdlib.h> | |
#include <syslog.h> | |
#include "blink-rgx-led-debug.h" | |
#define MOAT_MODEL_LED ("Led") | |
typedef struct TBlinkRgxLedApp_ TBlinkRgxLedApp; | |
struct TBlinkRgxLedApp_ { | |
Moat fMoat; |
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
{ | |
"name": "blink-rgx-led", | |
"version": "1.0", | |
"description": "Blinks a LED equipped with Rooster GX.", | |
"bugs": { | |
"mail": "bugs@example.com" | |
}, | |
"main" : "blink-rgx-led.so", | |
"models" : { | |
"Led" : { |
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
# | |
# deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official i386 NETINST Binary-1 20120512-20:43]/ wheezy main | |
#deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official i386 NETINST Binary-1 20120512-20:43]/ wheezy main | |
deb http://cdn.debian.net/debian/ wheezy main | |
deb-src http://cdn.debian.net/debian/ wheezy main | |
deb http://security.debian.org/ wheezy/updates main |
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
{ | |
"config_log" : { | |
"direction" : "syslog", | |
"filter" : { | |
"error" : true, | |
"warn" : true, | |
"info" : true, | |
"trace" : true, | |
"debug" : true | |
}, |
NewerOlder