Skip to content

Instantly share code, notes, and snippets.

Jay Graves skabber

Block or report user

Report or block skabber

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@skabber
skabber / main.dart
Created May 9, 2019
Hero Widget transitionOnUserGestures bug.
View main.dart
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 Jan 3, 2019
Multiline TextField issue.
View main.dart
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 Nov 8, 2017
Go Mobile + Protobuf Test
View protobuftest.pb.go
// 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 Sep 4, 2019
Export Options Plist Example
View exportOptions.plist
<?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/>
View AppleFairplayTextCrypterSession
}>
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
View set_project_profiles.sh
#!/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."
View gist:54685370b0a26617129f
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'
View gist:a3ca8672a1109743c724

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:

View gist:d1ff80669f86c5f5f378
- (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;
You can’t perform that action at this time.