Skip to content

Instantly share code, notes, and snippets.

View fidel-karsto's full-sized avatar
🚀
¯\_(ツ)_/

Karsten Rieger fidel-karsto

🚀
¯\_(ツ)_/
View GitHub Profile
@fidel-karsto
fidel-karsto / git-cheat-sheet.md
Created February 11, 2019 08:40 — forked from barbara-rogar/git-cheat-sheet.md
List of helpful git commands

Git cheat sheet

Set up

Set up global .gitignore

git config --global core.excludesfile '~/.gitignore'

Set upstream

@fidel-karsto
fidel-karsto / koObservableArrayGetAsyncTwin.js
Created July 29, 2016 13:48
ObservableArray.getAsyncTwin() for Knockout
/**
* Adds a `getAsyncTwin()` method to the prototype of Knockout's ObservableArray
* returning a new ObservableArray that will be a continuous non-instant copy of the original.
* Whenever the original ObservableArray changes, the copy will be populated
* in chunks of a given size and with a given delay between the chunks until it is identical to the original.
*
* Intended to allow rendering the first (visible) part of huge lists faster before all the rest.
*
* Example:
*