Skip to content

Instantly share code, notes, and snippets.

View SuggonM's full-sized avatar
🐢
shut-in

Suggon SuggonM

🐢
shut-in
View GitHub Profile
@niun
niun / set-pretty-git-log-alias.sh
Last active November 27, 2025 19:35
git log graph --oneline with date and author and colored ref names as alias
## One line per log entry with merge graph
## (--decorate is implicit for newer git versions?):
#git log --graph --oneline --decorate
## |
## Add --branches --remotes --tags --merges to see entries for all of the
## corresponding refs, not only commits (--all for all refs).
## Format output with --pretty=tformat:'<format>'
## Interesting placeholders for oneline <format>:
@lotsofcode
lotsofcode / prepend-child.js
Created July 31, 2014 14:30
JavaScript implementation of "prependChild"
Element.prototype.prependChild = function(newElement) {
return this.insertBefore(newElement, this.firstChild);
};