Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Currently Setting Status Message

Alf Watt alfwatt

💭
Currently Setting Status Message
View GitHub Profile
View detect-all-the-things.md

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 Apr 20, 2012
URI Parsing with Javascript
View uri.js
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"