Skip to content

Instantly share code, notes, and snippets.

Need charging

Klein Mioke Mioke

Need charging
Block or report user

Report or block Mioke

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
Mioke / PSPDFUIKitMainThreadGuard.m
Created Oct 29, 2016 — forked from steipete/PSPDFUIKitMainThreadGuard.m
This is a guard that tracks down UIKit access on threads other than main. This snippet is taken from the commercial iOS PDF framework, but relicensed under MIT. Works because a lot of calls internally call setNeedsDisplay or setNeedsLayout. Won't catch everything, but it's very lightweight and usually does the job.You might n…
View PSPDFUIKitMainThreadGuard.m
// Taken from the commercial iOS PDF framework
// Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved.
// Licensed under MIT (
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it.
// PLEASE DUPE rdar://27192338 ( if you would like to see this in UIKit.
#import <objc/runtime.h>
#import <objc/message.h>
Mioke / self-sizing-cell.swift
Created Apr 15, 2016 — forked from onevcat/self-sizing-cell.swift
Self-sizing cell with auto layout
View self-sizing-cell.swift
tableView.rowHeight = UITableViewAutomaticDimension
tableView.estimatedRowHeight = 100
Mioke / xcodeproj_build.rb
Created Apr 15, 2016 — forked from onevcat/xcodeproj_build.rb
Example of using xcodeproj
View xcodeproj_build.rb
require_relative "../config.rb"
gem 'xcodeproj', '>=0.19.4'
require 'xcodeproj'
PROJECT = 'Unity-iPhone'
TARGET = 'Unity-iPhone'
LIBRARY = 'Libraries'
### Export
def exportUnityProject
Mioke / build_ios.rb
Created Apr 15, 2016 — forked from onevcat/build_ios.rb
Build an iOS ipa
View build_ios.rb
def buildiOS(projectPath, schemeName, archiveName, outPath, ipaName, appId)
absolutePath = `pwd`.strip"#{projectPath}") do
puts "xcodebuild
-scheme #{schemeName}
-destination generic/platform=iOS
-archivePath #{absolutePath}/out/temp/#{archiveName}
Mioke /
Created Apr 15, 2016 — forked from onevcat/
Update build version by the commit count in git
git=`sh /etc/profile; which git`
appBuild=`"$git" rev-list --all |wc -l`
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $appBuild" "${SRCROOT}/${INFOPLIST_FILE}"
Mioke /
Last active Jan 15, 2020
Mac OS下安装及配置nginx
You can’t perform that action at this time.