Skip to content

Instantly share code, notes, and snippets.

View landlessness's full-sized avatar

Brian McAuliff Mulloy landlessness

View GitHub Profile
@landlessness
landlessness / 01-01-has-many.json
Last active February 8, 2016 22:18
Flattened Entities Approach 1 : Siren for Ruby's ActiveModelSerializer
{
"class": ["post"],
"properties": {
"id": 1,
"title": "New Post",
"body": "Body"
},
"links": [{"rel": ["self"],"href": "http: //example.com/posts/1"}],
"entities": [
{
@landlessness
landlessness / 02-01-has-many-collections.json
Last active February 8, 2016 22:18
Nested Sub-Entities Under a Collection Approach 2 : Siren for Ruby's ActiveModelSerializer
{
"class": ["post"],
"properties": {
"id": 1,
"title": "New Post",
"body": "Body"
},
"links": [{"rel": ["self"],"href": "http: //example.com/posts/1"}],
"entities": [
{
{
"class": [
"device",
"car"
],
"properties": {
"id": "{id}",
"name": "Günther's Car",
"type": "car",
"state": "ready"
{
"class": [
"device",
"orientation"
],
"properties": {
"id": "e9d54707-2358-48ea-860f-acd92e7b4468",
"name": "Orientation",
"type": "orientation",
"euler": {
{
"class": [
"server"
],
"properties": {
"name": "Zetta on BeagleBone"
},
"entities": [
{
"class": [
{
"class": [
"device",
"gps"
],
"properties": {
"id": "e28dcf8a-0953-4fd7-86e6-3316cd1b68f4",
"serialPortLocation": "/dev/ttyO2",
"baudRate": 9600,
"name": "GPS",
2015-08-05 12:23:48.176 ZettaKit[2904:445915] -[__NSCFNumber isEqualToString:]: unrecognized selector sent to instance 0xb000000000000473
2015-08-05 12:23:48.183 ZettaKit[2904:445915] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber isEqualToString:]: unrecognized selector sent to instance 0xb000000000000473'
*** First throw call stack:
(
0 CoreFoundation 0x0000000107f4cc65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000109db0bb7 objc_exception_throw + 45
2 CoreFoundation 0x0000000107f540ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x0000000107eaa13c ___forwarding___ + 988
4 CoreFoundation 0x0000000107ea9cd8 _CF_forwarding_prep_0 + 120
5 UIKit 0x00000001089bdc7f -[UITableViewLabel setText:] + 81
@landlessness
landlessness / gist:9f2239aaefc6ac3a04ab
Created October 22, 2014 15:03
npm install serialport failure on BeagleBone Black
root@beaglebone:/var/lib/cloud9/zetta-fona-bonescript-driver# npm install
npm http GET https://registry.npmjs.org/serialport
npm http 304 https://registry.npmjs.org/serialport
npm http GET https://registry.npmjs.org/bindings/1.2.1
npm http GET https://registry.npmjs.org/async/0.9.0
npm http GET https://registry.npmjs.org/sf/0.1.7
npm http 304 https://registry.npmjs.org/async/0.9.0
npm http 304 https://registry.npmjs.org/bindings/1.2.1
npm http 304 https://registry.npmjs.org/sf/0.1.7
npm http GET https://registry.npmjs.org/minimist
<table id="tablepress-2" class="tablepress tablepress-id-2">
<caption style="caption-side:bottom;text-align:left;border:none;background:none;margin:0;padding:0;"><a href="http://detroit-ashore-me.ashoremedia.staging.wpengine.com/wp-admin/admin.php?page=tablepress&action=edit&table_id=2" >Edit</a></caption>
<thead>
<tr class="row-1 odd">
<th colspan="9" class="column-1"><div>Current Entries for the Cove Island Course:</div></th>
</tr>
</thead>
<tbody>
<tr class="row-2 even">
<td colspan="9" class="column-1">Division I - Cove Island</td>
require 'rspec'