Generated with workflows2md.
- Append to Journal by Chad Stovern
- Audio Device by mikegrb
- Bluetooth Toggle by Chris Streeter
- Can I Use v1.3 by Will Farrell
- Domainr by dingyi
- Emoji v1.5.0 by Carlos Galdino
| Reloading the NIB is expensive. Better to load it once, then instantiate the objects when you need a cell. Note that you can add UIImageViews etc to the nib, even multiple cells, using this method (Apple's "registerNIB" iOS5 allows only one top level object - one UITableViewCell. Bug 10580062 "iOS5 tableView registerNib: overly restrictive" | |
| So my code is below - you read in the NIB once (in +initialize like I did or in viewDidload - whatever. From then on, you instantiate the nib into objects then pick the one you need. This is much more efficient than loading the nib over and over. |
| CGFloat BNRTimeBlock (void (^block)(void)); |
| #!/usr/bin/env ruby | |
| require 'time' | |
| require 'erb' | |
| require 'cgi' | |
| filename = "~/.gitlogger" | |
| ## File format, One per line | |
| # Repo Name:/path/to/base | |
| dayone = false # log to day one? (true or false) | |
| textlog = false # "~/Dropbox/nvALT2.2/GitLogger.md" # set to false to disable |
| /* | |
| 用iOS 5的GeoCoder API,反向解析经纬度。代码简略如下: | |
| */ | |
| CGFloat lat = 30.0; CGFloat lng = 120.0; | |
| CLGeocoder *coder = [[CLGeocoder alloc] init]; | |
| CLLocation *mapLocation = [[CLLocation alloc] initWithLatitude:lat longitude:lng]; | |
| [coder reverseGeocodeLocation:mapLocation completionHandler:^(NSArray *placemarks, NSError *error) { |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| expr -- (void)printf("[%s, %s]\n",(char *) object_getClassName(*(long*)($esp+4)), (char *) *(long *)($esp+8) ) |
| <?xml version="1.0"?> | |
| <root> | |
| <item> | |
| <name>F19 to F19</name> | |
| <appendix>(F19 to Hyper (ctrl+shift+cmd+opt) + F19 Only, F19)</appendix> | |
| <identifier>private.f192f19</identifier> | |
| <autogen> | |
| --KeyOverlaidModifier-- | |
| KeyCode::F19, | |
| KeyCode::COMMAND_L, |
Generated with workflows2md.
| #if TARGET_IPHONE_SIMULATOR | |
| #pragma clang diagnostic push | |
| #pragma clang diagnostic ignored "-Wimplicit" | |
| // Log all notifications via tail -f /tmp/msgSends-* | |
| instrumentObjcMessageSends(YES); | |
| #pragma clang diagnostic pop | |
| #endif |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');Those suck for maintenance and they're ugly.