Whole module optimization does exactly what we want. It compiles all the files in one go. The problem with whole module optimization is that it optimizes, so its pretty slow. But if you add a user-defined custom flag; SWIFT_WHOLE_MODULE_OPTIMIZATION and set it to yes, as well as set the optimization level to none. It will do whole module optimization without optimizing. And it'll be super fast.
by https://www.skilled.io/u/swiftsummit/swift-with-a-hundred-engineers
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
require 'liquid' | |
require 'fileutils' | |
input_file = File.absolute_path(ARGV[0]) | |
@template = Liquid::Template.parse(File.open(input_file, "r").read) | |
renderedTemplate = @template.render() | |
extn = File.extname(input_file) | |
output_file = File.dirname(input_file) + "/" + File.basename(input_file, extn) | |
File.open(output_file, "w") {|f| f.write(renderedTemplate) } |
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
@objc protocol Refreshable | |
{ | |
/// The refresh control | |
var refreshControl: UIRefreshControl? { get set } | |
/// The table view | |
var tableView: UITableView! { get set } | |
/// the function to call when the user pulls down to refresh | |
@objc func handleRefresh(_ sender: Any); |
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/bash/ | |
testPath="{ project name }Tests/PresentationLayer/UserStories/$1" | |
projectPath="{ project name }TODO/PresentationLayer/UserStories/$1" | |
generamba gen "$2" { template name } --test_path "$testPath" --module_path "$projectPath" |
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
releaseName=`date '+%Y%m%d'` | |
oldRelease=`cat {project name}/SupportFiles/Info.plist | sed -n '/CFBundleVersion/{n;p;}' | cut -d '>' -f2 | cut -d '<' -f1` | |
oldTemp=${oldRelease:0:8} | |
if [ $oldTemp == $releaseName ] | |
then | |
suffix=${oldRelease:8} | |
suffix=$(($suffix + 1)) | |
printf -v suffix "%02d" $suffix | |
else | |
suffix=01 |
- Find
SystemCodeSnippets.codesnippets
file. For Xcode8:
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/SystemCodeSnippets.codesnippets
- Make save copy of snippets
cp SystemCodeSnippets.codesnippets ~/Desktop/
- Open in vim:
sudo vim SystemCodeSnippets.codesnippets
- Move every open bracket on new line
:%s/ {/\r{/g
- Save and close
:wq
- Restart Xcode
- ????
- PROFIT!
In Terminal:
$ defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES
via https://jobs.zalando.com/tech/blog/speeding-up-xcode-builds/?gh_src=4n3gxh1
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 ~/.profile | |
source ~/.git-completion.bash | |
source ~/.git-prompt.sh | |
source ~/tools/arcanist/resources/shell/bash-completion | |
export PATH="$PATH:$HOME/tools/arcanist/bin/" | |
export EDITOR="/usr/bin/vim" | |
PS1='\[\e[31m\][\[\e[0m\]\W$(__git_ps1 " (\[\e[36m\]%s\[\e[0m\])")\[\e[31m\]]\[\e[0m\]\$ ' | |
alias be='bundle exec' | |
alias ll='ls -al' |
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
syntax on " syntax highlightnig | |
set number " add line number | |
set mouse=a " enable mouse | |
set ruler " cursor position in bottom right corner | |
set tabstop=4 " number of spaces per tab | |
set autoindent " start new line on same indentation | |
set expandtab " use spaces instead of tabs | |
filetype on " try to understand type of file for highlighting |
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
infix operator ⎽⟋: AdditionPrecedence | |
func ⎽⟋(_ left: Any, _ right: Any) { } | |
infix operator ⟍⎽: AdditionPrecedence | |
func ⟍⎽(_ left: Any, _ right: Any) { } | |
let ¯ = "" | |
let ツ = "" | |
let dunno = ¯⟍⎽(ツ)⎽⟋¯ |