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
#/bin/sh | |
#Retrieve uuid from DSYM | |
$dwarfdump --uuid your_app.dSYM | cut -d ' ' -f 2 |
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
#/bin/sh | |
#prepare the settings | |
ADRUM_ACCOUNT_NAME="xxxxx-a23413453" | |
ADRUM_LICENSE_KEY="1234132-1234-1234-1234-12341234123" | |
ADRUM_EUM_PROCESSOR="https://app.domain.net" | |
ADRUM_ACCOUNT_NAME="xxxxxx-ajksjdkfasdf" | |
uuid="XXXX-XXXX-XXXX-XXXX-XXXXXXX" | |
#Check is uploaded or not by calling the folowing api |
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
#/bin/sh | |
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer | |
find /Applications/Xcode.app/ -name "symbolicatecrash" | grep "SharedFrameworks" | |
#/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash | |
#This app can sybolicate the *.crash, *.ips files, it really helps! | |
symbolicatecrash --dsym /path/xxxx.xcarchive/dSYMs --output name.symbolicated.crash name.crash |
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
Function COUNT_HOURS(startEndTime As String) | |
'Will count the hours between times in format "1230-1500" | |
'==================================== | |
Dim countHours As Double | |
countHours = 0 | |
Dim times() As String: times = Split(startEndTime, "-") |
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
extension UIView { | |
func findViewByAccessibilityIdentifier(accessibilityIdentifier identifier: String) -> UIView? { | |
for view in self.subviews { | |
if view.accessibilityIdentifier == identifier { | |
return view | |
} | |
} | |
return nil | |
} | |
} |
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
extension URLRequest { | |
func toCurlCommand() -> String { | |
func escapeTerminalString(_ value: String) -> String { | |
return value.replacingOccurrences(of: "\"", with: "\\\"", options:[], range: nil) | |
} | |
let method = self.httpMethod ?? "GET" | |
var returnValue = "curl -i \n -X \(method) " | |
for (key, value) in self.allHTTPHeaderFields ?? [:] { |
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
# INFOPLIST_FILE="xxx/Info.plist" | |
# echo $INFOPLIST_FILE | |
# get current plist file path=> $ what-marketing-version | grep "Found" | awk '{print $NF}' | |
# awk '{print $NF}'; will split the sentense and get the last one (NF=number of fields in the current record) | |
# | |
#PLIST_PATH=$(agvtool what-marketing-version | grep "Found" | awk '{print $NF}') | |
#PLIST_PATH="${PLIST_PATH%\"}" | |
#PLIST_PATH="${PLIST_PATH#\"}" | |
#(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$PLIST_PATH") |
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
#import <AVFoundation/AVFoundation.h> | |
#import "Recorder.h" | |
@interface Recorder()<AVCaptureAudioDataOutputSampleBufferDelegate>{ | |
AVCaptureDevice *audioDevice; | |
AVCaptureDeviceInput *audioInput; | |
AVCaptureAudioDataOutput* _audioDataOutput; | |
dispatch_queue_t _captureQueue; | |
AVURLAsset *_asset; |
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
// | |
// ViewController.swift | |
// CameraFilter | |
// | |
import UIKit | |
import AVFoundation | |
class ViewController: UIViewController, AVCaptureVideoDataOutputSampleBufferDelegate { | |
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
// | |
// AssetRecorderView.swift | |
// Snowball | |
// | |
// Created by Le Tai on 7/20/16. | |
// Copyright © 2016 Snowball. All rights reserved. | |
// | |
import UIKit | |
import AVFoundation |
OlderNewer