Skip to content

Instantly share code, notes, and snippets.

@parzonka
parzonka / widescreen_with_thread_arcs.plist
Last active December 12, 2015 03:29
Custom MailMate (http://freron.com) layout for Mailboxes view. Extends the installed widescreen layout by adding a vertical thread arcs view at the right. See screen shot at https://www.dropbox.com/s/ujdz5mgifhpq8ke/mailmate-widescreen-threadarcs.png . Save it to `~/Library/Application Support/MailMate/Resources/Layouts/Mailboxes/widescreen_with…
/* Custom MailMate (http://freron.com) layout for Mailboxes view. Extends the installed widescreen
layout by adding a vertical thread arcs view at the right. Save it to
"~/Library/Application Support/MailMate/Resources/Layouts/Mailboxes/widescreen_with_thread_arcs.plist"
and it will be available after a restart of MailMate. */
{
name = "Widescreen with Thread Arcs";
rootViewer =
{
viewerType = "MmSplitView";
wordcount <- function(str) {
sapply(gregexpr("\\b\\W+\\b", str, perl=TRUE), function(x) sum(x>0) ) + 1
}
diamonds <- ggplot2::diamonds
pryr::object_size(diamonds)
#> 3.46 MB

diamonds2 <- transform(diamonds, price_per_carat = price / carat)
pryr::object_size(diamonds2)
#> 3.89 MB

# Size of both data frames combined
@Teraflopst
Teraflopst / hide-all-app.scpt
Last active August 23, 2023 22:05
AppleScript: Hide all applications and show the desktop on Mac
tell application "Finder"
set visible of every process whose visible is true and name is not "Finder" to false
set the collapsed of windows to true
end tell