Skip to content

Instantly share code, notes, and snippets.

View ninokierulf's full-sized avatar

Nino Nhexie Kierulf ninokierulf

View GitHub Profile
@ninokierulf
ninokierulf / FRP Hunt.md
Last active April 26, 2022 06:49
Functional Reactive Programming

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
@ninokierulf
ninokierulf / git-rebase-interactive-sublimetext.md
Last active February 18, 2020 17:32
Use 'Sublime Text' for git rebase interactive
@ninokierulf
ninokierulf / zip password.md
Created January 21, 2020 06:36
Password protect zip
zip -er "<protected>.zip" "<folder path>"
@ninokierulf
ninokierulf / git_push_different_branchname.md
Created March 2, 2020 02:22
Git Push Different Branch Names
git push origin <local_branch>:<remote_branch>  
git push --force-with-lease origin <local_branch>:<remote_branch>
@ninokierulf
ninokierulf / commit-zen.md
Last active March 31, 2020 01:08
CommitZen

Commit Format

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

# Long message

# BREAKING-CHANGES: 

@ninokierulf
ninokierulf / gitworkflow-topic-dependency-update.md
Last active June 19, 2020 01:13
gitworkflow: Topic Dependency has new code (rebase --onto)

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

TAGS

  • List all tags: git tag -l
  • List all tags in remote (eg: origin): git ls-remote --tags origin
@ninokierulf
ninokierulf / git-discard-rerere-saved-resolution.md
Last active August 13, 2020 09:43
Git: discard rerere saved mergreconflict resolution

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

@ninokierulf
ninokierulf / gitworkflow-recipe-index.md
Last active June 19, 2020 02:06
gitworkflow: Recipes

Train rerere

Download rerere.train.sh:

mkdir ~/source
cd ~/source
git clone https://github.com/git/git.git
@ninokierulf
ninokierulf / AmongUs.swift
Last active December 3, 2020 04:05
SLU 2010 Among Us Source Code
class AmongUsGame {
init(players: [Player]) {
self.players = players
listenToPlayerEvents()
}
func start() {
assignTasks()
}