2024-03-27
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/setxkbmap -option "caps:swapescape" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set up filters | |
git init | |
git config filter.kwd.clean ./filter_clean | |
git config filter.kwd.smudge ./filter_smudge | |
echo "*.txt ident" > .gitattributes | |
echo "*.txt filter=kwd" >> .gitattributes | |
git add -A | |
rm test.txt | |
git checkout test.txt | |
head test.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This infix function allows you to | |
# `borrow` non-exported functions from | |
# a package but avoids the CMD check warning | |
# regarding ':::' usage. | |
"%:::%" <- function(p, f) { | |
get(f, envir = asNamespace(p)) | |
} |
From: https://stackoverflow.com/questions/7983204/having-a-private-branch-of-a-public-repo-on-github
- Mirror your repo
- Create a bare clone of the repository
git clone --bare https://github.com/user/old-repository.git
- Mirror-push to the new repository (must already in the remote! Create one up front!)
library(Rcpp)
library(purrr)
library(stringr)
library(bench)
# Helper function to both functions
# Extracts the SeqId portion of a string & replaces the "." -> "-"
getSeqId <- function(x) {
x <- stringr::str_trim(x) # zap whitespace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`-` <- function(x, y) { | |
if (runif(1) < 0.01) | |
base::`-`(x, y) + 1 | |
else | |
base::`-`(x, y) | |
} |
NewerOlder