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
# -*- coding: UTF-8 -*- | |
# From https://github.com/gnunn1/tilix/blob/3f0a3d37f10f6ecfce30deca41636bb13020c2b3/data/nautilus/open-tilix.py | |
# Example modified for Pantheon Terminal | |
# Shortcuts Provider was inspired by captain nemo extension | |
from gettext import gettext, textdomain | |
from subprocess import PIPE, call | |
from urllib import unquote | |
from urlparse import urlparse |
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
# What's the fastest way to determine the number of rows of a CSV in R? | |
# ...Reading the entire CSV to only get the dimensions is likely too slow. Is there a faster way? | |
# Benchmarks done on a EC2 r3.8xlarge | |
# Cowritten with Abel Castillo <github.com/abelcastilloavant> | |
m <- 1000000 | |
d <- data.frame(id = seq(m), a = rnorm(m), b = runif(m)) | |
dim(d) | |
# [1] 1000000 3 | |
pryr::object_size(d) |
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
Homebrew build logs for rstudio-server on Ubuntu 16.04.6 LTS | |
Build date: 2020-06-03 00:37:06 |
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
Homebrew build logs for boost-rstudio-server on Ubuntu 20.04 LTS | |
Build date: 2020-06-02 18:07:27 |
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
Homebrew build logs for rstudio-server on Ubuntu 20.04 LTS | |
Build date: 2020-06-02 22:36:55 |
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
library(httpuv) | |
library(httr) | |
library(stringr) | |
app <- list( | |
call = function(req) { | |
paths <- str_split(req$PATH_INFO, "/")[[1]] | |
owner <- paths[2] | |
repo <- paths[3] | |
path <- str_c(paths[4:length(paths)]) |
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
@@ -1,1 +1,1 @@ | |
/* | |
* launcher.cc | |
* | |
* Copyright (C) 2009-13 by RStudio, Inc. | |
* | |
* This program is licensed to you under the terms of version 3 of the | |
* GNU Affero General Public License. This program is distributed WITHOUT | |
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, | |
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the |
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
library(shiny) | |
library(tidyverse) | |
library(DBI) | |
con <- dbConnect(RSQLite::SQLite(), dbname = "mtcars.sqlite") | |
onStop(function() dbDisconnect(con)) | |
# to create the .sqlite file | |
# con %>% dbWriteTable("mtcars", mtcars) |
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
echo $UCDSECRET | openconnect -b --juniper -u $UCDUSER --passwd-on-stdin --script-tun --script "ocproxy -D 8080" vpn.library.ucdavis.edu |
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
Homebrew build logs for rstudio-server on Ubuntu 16.04.6 LTS | |
Build date: 2019-04-22 01:41:36 |