Last active
August 29, 2015 14:10
-
-
Save davharris/0c859b69de0207fffc91 to your computer and use it in GitHub Desktop.
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
#Based on https://github.com/robotlolita/fuck-you | |
# and https://en.wikipedia.org/wiki/Transformation_of_text | |
screw_you = function(x){ | |
chars = strsplit(paste0(c(" ", rev(letters), rev(LETTERS), 0, 9:1, "&_?!\".';'"), collapse = ""), "")[[1]] | |
flipped = strsplit( | |
" zʎxʍʌnʇsɹbdouɯlʞɾıɥɓɟǝpɔqɐZ⅄XMΛ∩⊥SᴚΌԀONW⅂⋊ſIH⅁ℲƎᗡƆ𐐒∀068ㄥ9ގㄣƐᘔ⇂⅋‾¿¡„,˙'؛", | |
"")[[1]] | |
split = strsplit(as.character(substitute(x)), "")[[1]] | |
out = paste0( | |
"(╯°□°)╯", | |
paste0(flipped[rev(match(split, chars))], collapse = "") | |
) | |
message(out) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example usage: