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
| Fix xcode 12 simulator issue. Based on https://stackoverflow.com/a/63955114 | |
| Warning: active Xcode and active command line tools must match (xcode->prerefernce->locations->command line tools): | |
| Xcode 12 - command line tools 12 | |
| Xcode 11 - command line tools 11 | |
| Add to Podfile next code (where xcodeCLTVersion - https://gist.github.com/artemch/8807c55bb3401d353aaeaeebf28b5415). Then call pod install: | |
| # add at the top of Podfile | |
| require "./path_to_file/xcodeCLTVersion" |
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
| def xcodeCLTVersion | |
| IO.popen("xcodebuild -version") do |io| | |
| version = io.readline.split(" ").last.to_f | |
| end | |
| 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
| ################################################################################ | |
| # | |
| # Copyright 2015 Realm Inc. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
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
| Pod::Spec.new do |s| | |
| s.name = "Focus" | |
| s.version = "0.3.1" | |
| s.license = "MIT" | |
| s.summary = "Focus is an Optics library for Swift (where Optics includes Lens, Prisms, and Isos) that is inspired by Haskell's Lens library." | |
| s.homepage = "https://github.com/typelift/Focus" | |
| s.source = { :git => 'https://github.com/typelift/Focus.git', | |
| :tag => "#{s.version}", :submodules => true | |
| } | |
| s.author = { "" => "" } |
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
| // | |
| // Signal+Extensions.swift | |
| // Khan Academy | |
| // | |
| // Created by Nacho Soto on 10/1/15. | |
| // Copyright © 2015 Khan Academy. All rights reserved. | |
| // | |
| import ReactiveCocoa |
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
| -(NSString *)shortNumberFromLarge:(NSNumber*)number { | |
| if (!number) { | |
| return nil; | |
| } | |
| long long num = [number longLongValue]; | |
| int s = ( (num < 0) ? -1 : (num > 0) ? 1 : 0 ); | |
| NSString *sign = (s == -1 ? @"-" : @"" ); |
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
| path = Dir.getwd | |
| extensions = ['.m4a','.mp3','.wav'] | |
| Dir.foreach(path) do |item| | |
| next if item == '.' or item == '..' | |
| if extensions.include? File.extname(item) | |
| string = 'afconvert -f caff -d ima4 ' + item | |
| output = system(string) | |
| puts "output is #{output}" | |
| end | |
| end |