-
Simplest intro to git by github and codeschool - Try Git
-
[Intro to github]
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
Byobu Commands | |
============== | |
byobu Screen manager | |
Level 0 Commands (Quick Start) | |
------------------------------ | |
<F2> Create a new window |
Install the newest version of R. Additionally, I highly recommend R-Studio for working with R regularly (but the basic command line will work just fine for most applications). Once R is installed, you can install GTK directly from within R (details below). In short:
- install R for Windows
- optional but recommended: install R-Studio
- install GTK+
- From the R command line (e.g. in R-Studio), install the
RGtk2
package by running:install.packages("RGtk2", depen=T)
This might fail with the warning thatpackage ‘RGtk2’ is not available (for R version xxx)
if your version of R has been released very recently. If so, just runinstall.packages("RGtk2", depen=T, type="source")
instead to install theRGtk2
package directly from its source code (this might take a few
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
# Here are a few methods for getting text from PDF files. Do read through | |
# the instructions carefully! NOte that this code is written for Windows 7, | |
# slight adjustments may be needed for other OSs | |
# Tell R what folder contains your 1000s of PDFs | |
dest <- "G:/somehere/with/many/PDFs" | |
# make a vector of PDF file names | |
myfiles <- list.files(path = dest, pattern = "pdf", full.names = TRUE) |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
- ⌘ : Command key
- ⌃ : Control key
- ⌫ : Delete key
- ← : Left arrow key
- → : Right arrow key
- ↑ : Up arrow key
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(data.table) | |
library(gganimate) | |
library(ggplot2) | |
#toy example data | |
dt = data.table(time=1:10, x=round(runif(10, 50, 100), 0)) | |
#number of frames per bar | |
n_frames_per_bar = 20 | |
#create sequence per time (to imitate the bar growing from ground) |
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(magick) | |
library(reshape2) | |
library(dplyr) | |
library(tidygraph) | |
library(particles) | |
library(animation) | |
plot_fun <- function(sim) { | |
df <- as_tibble(sim) | |
plot(df$x, df$y, col = df$color, pch = '.', axes = FALSE, xlim = c(-100, 317), ylim = c(-268, 100), xlab = NA, ylab = NA) |
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/env Rscript | |
library(rvest) | |
futile.logger::flog.info('starting...') | |
futile.logger::flog.info('checking website') | |
ubuntu_dailies <- read_html("https://dailies.rstudio.com/rstudioserver/oss/ubuntu/amd64/") | |
futile.logger::flog.info('extracting url') | |
ubuntu_latest <- ubuntu_dailies %>% | |
html_nodes(".filename a") %>% | |
html_attr("href") |