This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A: B {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APPNAME=YourAppName # not including .app/.ipa suffix | |
BUILDNUMBER=300 # change build number to this value | |
CERTIFICATE="iPhone Distribution: Your Organisation name here (8JSK92JDKSM)" | |
PROFILE="NewProvisioningProfile.mobileprovision" | |
BUNDLE_ID="BundleID" | |
cp "${APPNAME}.ipa" "${APPNAME}.zip" | |
mkdir contents || true | |
unzip "${APPNAME}.zip" -d contents | |
codesign -d --entitlements :Entitlements.plist "contents/Payload/${APPNAME}.app" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' do | |
gem 'sinatra' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//: A UIKit based Playground for presenting user interface | |
import UIKit | |
import PlaygroundSupport | |
let vc = UIViewController() | |
let view = vc.view! | |
PlaygroundPage.current.liveView = vc | |
view.layoutIfNeeded() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APPNAME=App | |
BUILDNUMBER=123 | |
CERTIFICATE="iPhone Distribution" | |
cp "${APPNAME}.ipa" "${APPNAME}.zip" | |
mkdir contents || true | |
unzip "${APPNAME}.zip" -d contents | |
codesign -d --entitlements :Entitlements.plist "contents/Payload/${APPNAME}.app" | |
plutil -replace CFBundleVersion -string "${BUILDNUMBER}" "contents/Payload/${APPNAME}.app/Info.plist" | |
rm -r "contents/Payload/${APPNAME}.app/_CodeSignature" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dependencies: sudo gem install colorize | |
# Usage: ruby SRPAnalyser.rb --hide-acceptable <Path to search> | |
require 'colorize' | |
def displayFileWithNumberOfLines (file, lines, hideAcceptable) | |
message = "#{file} has #{lines} lines." | |
maxLines = 250 | |
acceptableLines = 150 | |
if lines > maxLines |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: ruby LineCounter.rb <directory to search> | |
class LineCounter | |
def initialize(lineCounts) | |
@lineCounts = lineCountsFromString(lineCounts) | |
end | |
def lineCountsFromString(string) | |
lineCountsStrings = string.split("\n") |