Skip to content

Instantly share code, notes, and snippets.

Verifying my Blockstack ID is secured with the address 1MztN6LtRaBbzVDSstrbQL8owdrrbyGRaT https://explorer.blockstack.org/address/1MztN6LtRaBbzVDSstrbQL8owdrrbyGRaT
DEBUG=* node node_modules/noble/examples/advertisement-discovery.js
noble addressChange f4:5c:89:8a:f1:dc +0ms
yosemite-bindings sendCBMsg: 1, {
"kCBMsgArgName": "node-1462171797230",
"kCBMsgArgOptions": {
"kCBInitOptionShowPowerAlert": 0
},
"kCBMsgArgType": 0
} +3ms
yosemite-bindings xpcEvent: {
static void runBlockWithLocked(LockedActionBlock block)
{
if ([[objc_getClass("SBDeviceLockController") sharedController] isPasscodeLocked]) {
SBLockScreenManager *manager = (SBLockScreenManager *)[objc_getClass("SBLockScreenManager") sharedInstance];
if ([manager isUILocked])
{
if ([objc_getClass("SBControlCenterController") sharedInstance]) [(SBControlCenterController *)[objc_getClass("SBControlCenterController") sharedInstance] dismissAnimated:YES];
void (^action)() = ^() {
Log(@"runBlockWithLocked test");
@farfromrefug
farfromrefug / background_demo.js
Created October 8, 2012 07:22 — forked from kosso/background_demo.js
Background Service notification for Titanium
/* Kosso : March 12th 2011
This the only way I managed to do this without the app crashing on resume.
Done slightly differently to the KS example, since they unregister the service and
do not use a setInterval timer.
*/
//############ in app.js :
// test for iOS 4+