Skip to content

Instantly share code, notes, and snippets.

@skabber
skabber / main.dart
Created May 9, 2019 00:10
Hero Widget transitionOnUserGestures bug.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:cached_network_image/cached_network_image.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return CupertinoApp(
@skabber
skabber / main.dart
Created January 3, 2019 18:47
Multiline TextField issue.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
@skabber
skabber / protobuftest.pb.go
Last active November 8, 2017 23:57
Go Mobile + Protobuf Test
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: protobuftest.proto
/*
Package protobuftest is a generated protocol buffer package.
It is generated from these files:
protobuftest.proto
It has these top-level messages:
@skabber
skabber / exportOptions.plist
Last active April 14, 2024 20:47
Export Options Plist Example
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>app-store</string>
<key>teamID</key>
<string>XXXXXXXXXX</string>
<key>uploadBitcode</key>
<true/>
0xBaA860cd38f31556Cce1F543a205A44E0193306c
}>
May 9 20:42:02 pickles locationd[72] <Notice>: Gesture EnabledForTopClient: 1 (SiriCalled)
May 9 20:42:03 pickles SpringBoard[2731] <Warning>: HW kbd: Failed to set (null) as keyboard focus
May 9 20:42:03 pickles nesessionmanager[138] <Error>: Error in canUseOnAlternateNOI: Error Domain=NSPOSIXErrorDomain Code=54 "Connection reset by peer"
May 9 20:42:03 pickles kernel[0] <Notice>: xpcproxy[7118] Container: /private/var/mobile/Containers/Data/Application/1FC34D79-D735-4C95-B8E2-FF9BDE81274A (sandbox)
May 9 20:42:03 pickles locationd[72] <Notice>: Gesture EnabledForTopClient: 1 (SiriCalled)
May 9 20:42:03 pickles kernel[0] <Notice>: AppleFairplayTextCrypterSession::fairplayOpen() failed, error -42028
May 9 20:42:03 pickles kernel[0] <Notice>: AppleFairplayTextCrypterSession::fairplayOpen() failed, error -42028
May 9 20:42:03 pickles com.apple.xpc.launchd[1] (UIKitApplication:com.foursquare.robin[0xff0a][7118]) <Notice>: Service exited due to signal: Trace/BPT trap: 5
May 9 20:42:03 pickles ReportC
#!/bin/bash
function usage {
echo "Usage: $0 -c [CodeSign Directory] -p [Xcode Project File.xcodeproj]"
echo "If any arguments are not specified, defaults will be attempted. If defaults don't exist, script will exit."
echo "OPTIONS:"
echo " -c [CodeSign Directory]: Location of directory containing project's provisioning profiles."
echo " -p [Xcode Project File]: Path of Xcode project directory (the .xcodeproj, not .pbxproj)"
echo " -b: Use PlistBuddy command for UUID replacement instead of sed. (Better handling of a couple of edge cases, but makes diffs impossible to read.)"
echo " -v: Verbose logging."
xcodebuild -scheme ${SCHEME} -target ${TARGET} -configuration ${CONFIGURATION} archive -archivePath $PWD/${TARGET}_${CONFIGURATION}_${BUILD_NUMBER}
xcrun -v -sdk iphoneos PackageApplication -v `pwd`'/'${TARGET}'_'${CONFIGURATION}'_'${BUILD_NUMBER}'.xcarchive/Products/Applications/'${TARGET}'.app' -o `pwd`'/'${TARGET}'_'${CONFIGURATION}'_'${BUILD_NUMBER}'.ipa'

Keybase proof

I hereby claim:

  • I am skabber on github.
  • I am skabber (https://keybase.io/skabber) on keybase.
  • I have a public key whose fingerprint is B43A 137A 0E27 9DA4 E4C2 506C B531 E5F8 7D5A 42D9

To claim this, I am signing this object:

@skabber
skabber / gist:d1ff80669f86c5f5f378
Last active August 29, 2015 14:06
Push registration
- (void)updateAlerts
{
BOOL alertsMaster = [[NSUserDefaults standardUserDefaults] boolForKey:kAlertsMasterSwitch];
BOOL alertsSounds = [[NSUserDefaults standardUserDefaults] boolForKey:kAlertsSoundSwitch];
BOOL alertsBadge = [[NSUserDefaults standardUserDefaults] boolForKey:kAlertsBadgeSwitch];
if ([[UIApplication sharedApplication] respondsToSelector:@selector(registerUserNotificationSettings:)]) {
UIUserNotificationType alert = UIUserNotificationTypeNone;
UIUserNotificationType sound = UIUserNotificationTypeNone;
UIUserNotificationType badge = UIUserNotificationTypeNone;