Skip to content

Instantly share code, notes, and snippets.

View alfwatt's full-sized avatar
💭
Currently Setting Status Message

Alf Watt alfwatt

💭
Currently Setting Status Message
View GitHub Profile

BLE devices detector

Estimated time commitment: The task is not timed and you can work at your own pace. You have at least 24 hours.

Task

Build a simple iOS or Android app that will detect all BLE devices around you that are advertising, and display them in a GUI.

For example, our Proxy mobile apps interact with Proxy BLE devices constantly in the background, and data exchanges in both directions occur. As a first step of this process, the apps must scan and filter the BLE devices it has detected around.

@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"