Skip to content

Instantly share code, notes, and snippets.

View ShaharHD's full-sized avatar

Shahar Hadas ShaharHD

  • WeCanDoIT Ltd.
  • Israel
View GitHub Profile
@ShaharHD
ShaharHD / btmon.log
Last active July 29, 2020 19:00
64KB at 700Kbps between two nordic boards
Bluetooth monitor ver 5.53
= Note: Linux version 5.4.0-42-generic (x86_64) 0.288757
= Note: Bluetooth subsystem version 2.22 0.288759
= New Index: 00:00:00:00:00:00 (Primary,USB,hci0) [hci0] 0.288759
= Open Index: 00:00:00:00:00:00 [hci0] 0.288760
= Index Info: 00:00:00:00:00:00 (The Linux Foundation) [hci0] 0.288760
@ MGMT Open: bluetoothd (privileged) version 1.14 {0x0001} 0.288761
@ MGMT Open: btmon (privileged) version 1.14 {0x0002} 0.288910
@ MGMT Command: Start Service Disco.. (0x003a) plen 4 {0x0001} [hci0] 4.115321
Address type: 0x06
@ShaharHD
ShaharHD / settings.json
Created September 16, 2019 14:15
todo tree config
"todo-tree.general.tags": ["FIXME:", "HOTFIX:", "INFO:", "NOTICE:", "TODO:"],
"todo-tree.highlights.customHighlight": {
"FIXME:": {
"foreground": "red",
"background": "grey",
"icon": "bell"
},
"HOTFIX:": {
"foreground": "purple",
"background": "white",

Keybase proof

I hereby claim:

  • I am shaharhd on github.
  • I am shahar (https://keybase.io/shahar) on keybase.
  • I have a public key ASAtGvMeuXDNgRu2Ythz89hYwT52QbQ-o_VDFIMwjltolAo

To claim this, I am signing this object:

@ShaharHD
ShaharHD / comments.md
Last active August 29, 2015 14:03
Keen.IO comments
  1. "sqlite3.h", "sqlite3.c" & “sqlite3ext.h” filename should all have the prefix of “keen_io” as the latter are version ambiguous.
  2. “KIOEventStore.h" should import "keen_io_sqlite3.h” and not “sqlite3.h” which is ambiguous.
  3. The distribution zip (cocoa pods or not) should include the "keen_io_sqlite3.h” as it is imported by “KIOEventStore.h"
  4. The usage of NSDateFormatter is not thread-safe (https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Multithreading/ThreadSafetySummary/ThreadSafetySummary.html). A better and much faster solution would be (as you have sqlite now) to simply execute something like:
sqlite3_stmt *statement = NULL;
sqlite3_prepare_v2(db, "SELECT datetime('now');", -1, &statement, NULL);    
sqlite3_bind_text(statement, 1, format, -1, SQLITE_STATIC);
sqlite3_step(statement);
DO $$
DECLARE v_List TEXT;
BEGIN
v_List := 'foobar' ;
END $$;
@ShaharHD
ShaharHD / splashView.h
Created June 15, 2014 14:30
splashView
//
// splashView.h
// version 1.1
//
// Created by Shannon Appelcline on 5/22/09.
// Copyright 2009 Skotos Tech Inc.
//
// Licensed Under Creative Commons Attribution 3.0:
// http://creativecommons.org/licenses/by/3.0/
// You may freely use this class, provided that you maintain these attribute comments