Skip to content

Instantly share code, notes, and snippets.

View alexmx's full-sized avatar
🏴‍☠️
(╯°□°)╯︵ ┻━┻

Alex Maimescu alexmx

🏴‍☠️
(╯°□°)╯︵ ┻━┻
View GitHub Profile
@alexmx
alexmx / carousel-pagination.swift
Created February 19, 2018 22:56
Sample carousel implementation which supports spacing, content mode and custom pagination.
@alexmx
alexmx / swift-lint-modified-files.sh
Created August 21, 2018 18:54
Run SwiftLint against files which have been changed in the current branch relative to RELATIVE_BRANCH (eg. master)
#!/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() {
@alexmx
alexmx / remove-stale-local-branches.sh
Created June 19, 2019 16:47
Remove stale git local branches
git remote prune origin
git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -D

Keybase proof

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: