Skip to content

Instantly share code, notes, and snippets.

@uucidl
uucidl / ibbq-thermometer-protocol.md
Last active August 27, 2023 22:21
ibbq-thermometer-protocol

Example devices

  • Inkbird IBT-2X
  • Inkbird IBT-4XS
  • EasyBBQ FCCID: FCC ID 2AI4MPRO3 (SHENZHEN HYPERSYNES CO.,LTD Smart Wireless Thermometer PRO3)

Properties

  • @ConnectTimeout: 60 seconds
  • @BatteryPollingInterval: 5 minutes

The iBBQ is a Bluetooth LE Gatt Device

@ideasasylum
ideasasylum / copy_markdown_from_trello.js
Created August 10, 2015 12:16
Copies a Trello board to the Clipboard as Markdown
// originally found in a comment on: http://www.secretgeek.net/trello_ws
var s = [];
s.push("# " + jQuery(".board-header").children()[0].innerText);
jQuery(".list:has(.list-header-name)").each(function() {
s.push("\n## " + jQuery(this).find(".list-header-name")[0].innerText + "\n");
jQuery(this).find(".list-card-title").each(function() {
s.push("* " + this.innerText);
});
});
@interface UIResponder (FirstResponder)
+ (id)currentFirstResponder;
@end
@sprhawk
sprhawk / gist:2779208
Created May 24, 2012 03:06
git diff localizable.strings
(from :http://www.entropy.ch/blog/Developer/2010/04/15/Git-diff-for-Localizable-strings-Files.html)
First, add this to the project’s .git/info/attributes file:
+
*.strings diff=localizablestrings
(Unfortunately you do have to add it to every project, there doesn’t seem to be a global attributes configuration file)
Second, add this to your ~/.gitconfig file:
@omz
omz / gist:1102091
Created July 24, 2011 01:40
Creating arbitrarily-colored icons from a black-with-alpha master image (iOS)
// Usage example:
// input image: http://f.cl.ly/items/3v0S3w2B3N0p3e0I082d/Image%202011.07.22%2011:29:25%20PM.png
//
// UIImage *buttonImage = [UIImage ipMaskedImageNamed:@"UIButtonBarAction.png" color:[UIColor redColor]];
// .h
@interface UIImage (IPImageUtils)
+ (UIImage *)ipMaskedImageNamed:(NSString *)name color:(UIColor *)color;
@end
@ssoper
ssoper / EGORefreshTableHeaderViewCategory.m
Created May 19, 2011 13:58
EGORefreshTableHeaderViewCategory
// Use this handy method if you need to force the table view to refresh
//
// [self.egoRefreshTableView forceRefresh: self.tableView];
//
@implementation EGORefreshTableHeaderView
- (void) forceRefresh:(UIScrollView *) scrollView {
[scrollView setContentOffset: CGPointMake(0, -65) animated: NO];
[self egoRefreshScrollViewDidEndDragging: scrollView];