Skip to content

Instantly share code, notes, and snippets.

View mkwatson's full-sized avatar

Mark Watson mkwatson

View GitHub Profile
class Dog(object):
def __init__(self):
self.age = 1
self.weight = 15
def feed(self, amount):
self.weight += amount
def bark(self):
print "Bark! I weigh " + str(self.weight) + " pounds!"
Shaggy = Dog()
select starttime, filename, err_reason, line_number,
colname, type, col_length, position, raw_field_value,
raw_line, err_code
from stl_load_errors
order by starttime desc limit 2;
import com.gimbal.android.BeaconEventListener;
import com.gimbal.android.BeaconSighting;
import com.neustar.android.NeustarClient;
...
private NeustarClient proximityClient = new NeustarClient();
...
public void onBeaconSighting(BeaconSighting sighting) {
proximityClient.beaconEvent(sighting);
...
}
public void beaconEvent(Object maybeSighting) {
try {
// Look for class
String beaconSightingClassName = "com.gimbal.android.BeaconSighting";
Class beaconSightingClass = Class.forName(beaconSightingClassName);
Method[] beaconClassMethods = beaconSightingClass.getDeclaredMethods();
// switch conditional for handling gimbal methods to get RSSI and beacon metadata
...
// app/src/main/java/com/datasnap/android/controller/RequestThread.java#L57
String finalStr = builder.toString();
// GZIP String Bytes
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try (GZIPOutputStream gzos = new GZIPOutputStream(baos)) {
gzos.write(finalStr.getBytes("UTF-8"));
}
CREATE TABLE groups (
groupname text,
username text,
email text,
age int,
hash_prefix int,
PRIMARY KEY ((groupname, hash_prefix), username)
)

Intro

The Datasnap.io SDK is designed to make integrating your location-based app with the Datasnap analytics platform simple and painless. The simplest way to integrate is to include our library and write a single line of code, as detailed below. Your app should then track location events with no further configuration. However, if you want to track events programmatically, that can be done as well. (what versions of iOS are supported?)

Version

The current version is [2.0.0](Link to version). It simplifies the process of integrating with third-party libraries.

Version Archive

{
"$schema": "http://json-schema.org/schema",
"type": "object",
"properties": {
"rt": {
"type": "string"
},
"if": {
"type": "string"
},
/a/floor {
"links": [
{
"href": "/x/light1",
"anchor": "/a/room1", ** /a/room1 has the "contains" relationship with /x/light1; not/a/floor**
"rel": "contains"
}
]
}
[self.datasnap trackEvent:beaconEvent withIDFA:[[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString]];