I hereby claim:
- I am alexmx on github.
- I am amaimescu (https://keybase.io/amaimescu) on keybase.
- I have a public key ASBFZdW6cPj3g362RdExAzA9ompbGGbqAQDeQp_IdI7UcAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
git remote prune origin | |
git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -D |
#!/bin/bash | |
# Path to the repository root folder | |
REPO_ROOT_DIR=$1 | |
# The branch name relative to which the modified files will be determined | |
RELATIVE_BRANCH=$2 | |
# The path to the SwiftLint command. | |
SWIFT_LINT_PATH=$3 | |
run_swiftlint() { |
import UIKit | |
@objc | |
public protocol CarouselViewDataSource: class { | |
func numberOfPages(in carouselView: CarouselView) -> Int | |
func carouselView(_ carouselView: CarouselView, pageAt index: Int) -> UIView | |
} |
#!/bin/bash | |
START=$(date +%s) | |
# Command to benchmark | |
END=$(date +%s) | |
DIFF=$(echo "$END - $START" | bc) | |
echo "Time elapsed: $DIFF" |
defaults write com.apple.dt.Xcode IDEDisableStructureEditingCoordinator -bool YES |
#ifndef AMXLog | |
#ifdef DEBUG | |
#define AMXLog(f...) NSLog(f) | |
#else | |
#define AMXLog(...) | |
#endif | |
#endif |
echo ".config" >> .gitignore | |
git clone --bare [email protected]:alexmx/dotfiles.git $HOME/.dotfiles | |
function config { | |
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@ | |
} | |
mkdir -p .dotfiles-backup | |
config checkout |