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
sudo service bluetooth status # Verify bluetooth is active. | |
sudo bluetoothctl # Lauch bluetooth subshell. | |
agent on # [No idea what this does.] | |
default-agent # [No idea what this does.] | |
scan on # Displays a list of available devices. | |
pair XX:XX:XX:XX:XX:XX # This prepares a potential connection, the X's represent your device ID | |
# A "PIN code" will be displayed, type it on the keyboard and press "enter". | |
trust XX:XX:XX:XX:XX:XX # Adds device to trusted devices, this survives reboot. | |
connect XX:XX:XX:XX:XX:XX # Connect to the device now. | |
exit # Return to previous shell. |
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
/* | |
* This decorates Handlebars.js with the ability to load | |
* templates from an external source, with light caching. | |
* | |
* To render a template, pass a closure that will receive the | |
* template as a function parameter, eg, | |
* T.render('templateName', function(t) { | |
* $('#somediv').html( t() ); | |
* }); | |
* Source: https://github.com/wycats/handlebars.js/issues/82 |