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
# Example listings definition | |
PUT /listings | |
{ | |
"mappings": { | |
"properties": { | |
"description": {"type": "text", "analyzer": "english"}, | |
"suburb": {"type": "keyword"}, | |
"bedrooms": {"type": "integer"} | |
} | |
} |
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
{ | |
"suggest": { | |
"output": "5/1-3 Abby Court, West Moonah, Tas 7009", | |
"input": [ | |
"5/1-3 Abby Court, West Moonah, Tas 7009", | |
"Abby Court, West Moonah, Tas 7009", | |
"1-3 Abby Court, West Moonah, Tas 7009", | |
"1 Abby Court, West Moonah, Tas 7009", | |
"3 Abby Court, West Moonah, Tas 7009", | |
"5/1 Abby Court, West Moonah, Tas 7009", |
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
// Modified from https://github.com/felis/USB_Host_Shield_2.0/blob/master/examples/HID/USBHIDBootKbd/USBHIDBootKbd.ino | |
// Modified to print the ASCII hex codes of the keys pressed, and to handle some of the non-printable keys. | |
#include <hidboot.h> | |
#include <usbhub.h> | |
// Satisfy IDE, which only needs to see the include statment in the ino. | |
#ifdef dobogusinclude | |
#include <spi4teensy3.h> | |
#endif |
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 Foo | |
# Should not really need the check for const_dedined?, but... | |
FOO = [] unless const_defined?(:FOO) | |
def self.included(host_class) | |
FOO << host_class | |
end | |
end | |
class Baa | |
include Foo |