Skip to content

Instantly share code, notes, and snippets.

Avatar

Nino Nhexie Kierulf ninokierulf

View GitHub Profile
@ninokierulf
ninokierulf / AmongUs.swift
Last active Dec 3, 2020
SLU 2010 Among Us Source Code
View AmongUs.swift
class AmongUsGame {
init(players: [Player]) {
self.players = players
listenToPlayerEvents()
}
func start() {
assignTasks()
}
View gitworkflow-recipe-index.md

Train rerere

Download rerere.train.sh:

mkdir ~/source
cd ~/source
git clone https://github.com/git/git.git
@ninokierulf
ninokierulf / git-discard-rerere-saved-resolution.md
Last active Aug 13, 2020
Git: discard rerere saved mergreconflict resolution
View git-discard-rerere-saved-resolution.md

git rerere forget {file_path}
git checkout --conflict merge {file_path}

View git-snippets.md

TAGS

  • List all tags: git tag -l
  • List all tags in remote (eg: origin): git ls-remote --tags origin
@ninokierulf
ninokierulf / gitworkflow-topic-dependency-update.md
Last active Jun 19, 2020
gitworkflow: Topic Dependency has new code (rebase --onto)
View gitworkflow-topic-dependency-update.md

gitworkflow

Scenario

  • Topic-B depends on Topic-A
  • Topic-A has updates
  • Topic-B want Topic-A updates by replacing old merge to have clean graph
(topic-b)$ git tag "outdated"
(topic-b)$ git reset --hard master #if master is parent of Topic-B
View commit-zen.md

Commit Format

<TYPE>(<COMPONENT/MODULE>) [JIRA-000] Short message

# Long message

# BREAKING-CHANGES: 

View git_push_different_branchname.md
git push origin <local_branch>:<remote_branch>  
git push --force-with-lease origin <local_branch>:<remote_branch>
@ninokierulf
ninokierulf / zip password.md
Created Jan 21, 2020
Password protect zip
View zip password.md
zip -er "<protected>.zip" "<folder path>"
@ninokierulf
ninokierulf / git-rebase-interactive-sublimetext.md
Last active Feb 18, 2020
Use 'Sublime Text' for git rebase interactive
View git-rebase-interactive-sublimetext.md
View FRP Hunt.md

Journey to better understanding FRP

( by @ninokierulf )
created: 2015 April 02
modified:

After reading Collection Pipeline Patterns by Martin Fowler.

  • map - to transform item (similar to select?)
  • flatten - merge nested
  • flat-map - map with flatten 1 level
You can’t perform that action at this time.