In Sep, 2021, Jupyterlab Desktop App (electron) was released by Mehmet Bektas (github repo).
brew install --cask jupyterlab
import pyautogui | |
import webbrowser | |
import time | |
import tkinter as tk | |
from tkinter import messagebox | |
url = "https://zbib.org/" | |
instructions = "This bot needs to have access to you keyboard and mouse to function.\nPlease don't mess with keyboard or cursor while this bot is running\nTo use this bot, copy and paste all your article(references) website links in the textbox.\nPlease make sure that every link is on newline or else bot won't work.\nDon't worry, its just a bot, not A.I. ;)\n" |
require(dplyr) | |
require(ggplot2) | |
# make sure that purrr package is installed to use purrr::set_names | |
# aggregate data | |
df = mpg %>% | |
group_by(year, manufacturer) %>% | |
summarize(mixmpg = mean(cty + hwy)) %>% | |
# create dummy var which reflects order when sorted alphabetically | |
mutate(ord =sprintf("%02i", as.integer(rank(mixmpg))) ) |
In Sep, 2021, Jupyterlab Desktop App (electron) was released by Mehmet Bektas (github repo).
brew install --cask jupyterlab
#!/bin/bash | |
# | |
# Download the Large-scale CelebFaces Attributes (CelebA) Dataset | |
# from their Google Drive link. | |
# | |
# CelebA: http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html | |
# | |
# Google Drive: https://drive.google.com/drive/folders/0B7EVK8r0v71pWEZsZE9oNnFzTm8 | |
python3 get_drive_file.py 0B7EVK8r0v71pZjFTYXZWM3FlRnM celebA.zip |
(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)
The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.
pdanford - April 2020
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="author" content=""> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
uReshape <- function(data, id.vars, var.stubs, sep) { | |
# vectorized version of grep | |
vGrep <- Vectorize(grep, "pattern", SIMPLIFY = FALSE) | |
# Isolate the columns starting with the var.stubs | |
temp <- names(data)[names(data) %in% unlist(vGrep(var.stubs, names(data), value = TRUE))] | |
# Split the vector and reasemble into a data.frame | |
x <- do.call(rbind.data.frame, strsplit(temp, split = sep)) | |
names(x) <- c("VAR", paste(".time", 1:(length(x)-1), sep = "_")) |