Skip to content

Instantly share code, notes, and snippets.

View lyzkov's full-sized avatar
:octocat:

Boguś Łyczba Jr. lyzkov

:octocat:
  • 01:45 (UTC +02:00)
View GitHub Profile
@lyzkov
lyzkov / git-log-update-committer.sh
Created August 5, 2021 22:18
Update the committer info for each commit in all branches
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
@lyzkov
lyzkov / UICollectionViewFlowLayout+DelegateAccess.swift
Created April 23, 2018 16:42 — forked from danielctull/UICollectionViewFlowLayout+DelegateAccess.swift
Wraps the six UICollectionViewFlowLayout delegate methods and their equivalent properties using functional programming techniques, so that values are easier to retrieve. Full details at: http://danieltull.co.uk/blog/2018/04/13/simplifying-uicollectionviewflowlayout-delegate-method-usage-with-functional-programming/
extension UICollectionViewFlowLayout {
typealias DelegateMethod<Key, Value> = ((UICollectionView, UICollectionViewLayout, Key) -> Value)
private var delegate: UICollectionViewDelegateFlowLayout? {
return collectionView?.delegate as? UICollectionViewDelegateFlowLayout
}
func retrieve<Key, Value>(
### Keybase proof
I hereby claim:
* I am lyzkov on github.
* I am lyzkov (https://keybase.io/lyzkov) on keybase.
* I have a public key ASDdFBRJvkXrbLiG8o8OKBQO9CxVa_GR-DWn9h3Q4PRMrwo
To claim this, I am signing this object:
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,