Skip to content

Instantly share code, notes, and snippets.

View bdittmer's full-sized avatar

Brian Dittmer bdittmer

  • Patreon
  • San Francisco, CA
View GitHub Profile
{
"app": "/Users/bdittmer/Projects/bluepill/build/Build/Products/Debug-iphonesimulator/BPSampleApp.app",
"error-retries": 0,
"repeat-count": 1,
"output-dir": ".",
"headless": false,
"tests": {
"BPAppNegativeTests": {
"test_host": "/Users/bdittmer/Projects/bluepill/build/Build/Products/Debug-iphonesimulator/BPSampleApp.app",
"test_bundle_path": "/Users/bdittmer/Projects/bluepill/build/Build/Products/Debug-iphonesimulator/BPSampleApp.app/PlugIns/BPAppNegativeTests.xctest",
→ bluepill -c config.json
2019-09-17 12:50:52.367 bluepill[15953:1636643] Debug Enabled == 0
{15953} 20190917.125052 [ INFO ] (BLUEPILL) Using test bundles
{15953} 20190917.125053 [ INFO ] (BLUEPILL) This is Bluepill v4.1.1-16-g857bb55
{15953} 20190917.125053 [ INFO ] (BLUEPILL) Packing test bundles based on test counts.
{15953} 20190917.125053 [ INFO ] (BLUEPILL) Running with 4 parallel simulators.
{15953} 20190917.125053 [ INFO ] (BLUEPILL) Packed tests into 9 bundles
{15953} 20190917.125053 [ INFO ] (BLUEPILL) Started BP-1 (PID 16049).
2019-09-17 12:50:53.615 bp[16049:1637135] Debug Enabled == 0
{16049} 20190917.125054 [ INFO ] (BP-1) Running Tests. Attempt Number 1.
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
"regexp"
"strconv"
Process: Adium [16722]
Path: /Applications/Adium.app/Contents/MacOS/Adium
Identifier: com.adiumX.adiumX
Version: 1.5.10.2 (1.5.10.2)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Adium [16722]
User ID: 501
Date/Time: 2016-12-25 17:55:04.827 -0800
Thread 19 Crashed:
0 com.apple.LLDB.framework 0x000000011aa4e8bc swift::TypeBase::getDesugaredType() + 12
1 com.apple.LLDB.framework 0x000000011aa53d33 swift::TypeBase::getMemberSubstitutions(swift::DeclContext*) + 435
2 com.apple.LLDB.framework 0x000000011aa5401c swift::TypeBase::getTypeOfMember(swift::ModuleDecl*, swift::Type, swift::DeclContext*) + 60
3 com.apple.LLDB.framework 0x000000011aded5a7 (anonymous namespace)::CalleeCandidateInfo::CalleeCandidateInfo(swift::Type, llvm::ArrayRef<swift::constraints::OverloadChoice>, unsigned int, bool, swift::constraints::ConstraintSystem*) + 647
4 com.apple.LLDB.framework 0x000000011ade9349 swift::ASTVisitor<(anonymous namespace)::FailureDiagnosis, bool, void, void, void, void, void>::visit(swift::Expr*) + 9369
5 com.apple.LLDB.framework 0x000000011ade2b92 swift::constraints::ConstraintSystem::diagnoseFailureForExpr(swift::Expr*) + 82
6 com.apple.LLDB.framework 0x000000011ade6a91 swift::constraints::Constrain
@bdittmer
bdittmer / migrate.go
Last active January 27, 2016 23:29
Simple db miguration
package main
import (
"database/sql"
"fmt"
"github.com/DavidHuie/gomigrate"
_ "github.com/lib/pq"
"os"
)
(function () {
function L(a) {
return typeof a == "string" || a instanceof String
}
function M(a) {
return a === Object(a)
}
function N(a) {
- (void)startCoreUpdate {
if (!_locationManager) {
self.locationManager = [[[CLLocationManager alloc] init] autorelease];
_locationManager.delegate = self;
_locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters;
_locationManager.distanceFilter = 80.0f;
_locationManager.purpose = NSLocalizedString(@"GeoPhoto uses your location to find nearby photos", nil);
}
[_locationManager startUpdatingLocation];
}
@bdittmer
bdittmer / gist:4726819
Created February 6, 2013 23:22
A better way to deal with mapping dictionaries -> model objects
NSString *giIdKey = @"id";
NSString *giJobIdKey = @"job_id";
NSString *giPercentCompleteKey = @"percent_complete";
NSString *giPercentReservedKey = @"percent_reserved";
NSString *giGoalsKey = @"goals";
NSString *giRewardsKey = @"rewards";
@interface ESGroupIncentive()
+ (NSDictionary *)valueMap;
@end
#import "ESGroupIncentive.h"
NSString *giIdKey = @"id";
NSString *giJobIdKey = @"job_id";
NSString *giPercentCompleteKey = @"percent_complete";
NSString *giPercentReservedKey = @"percent_reserved";
NSString *giGoalsKey = @"goals";
NSString *giRewardsKey = @"rewards";
@interface ESGroupIncentive()