Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
$ git config --global core.excludesfile ~/.gitignore | |
$ echo .DS_Store >> ~/.gitignore |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
#!/usr/bin/ruby | |
# For an OO language, this is distinctly procedural. Should probably fix that. | |
require 'json' | |
details = Hash.new({}) | |
capture_params = [ | |
{ :name => "title", :message => "Enter project name." }, | |
{ :name => "url", :message => "Enter the URL of the project repository." }, |
You'll need to make 2 plots and use grid.arrange
if you want more uniform spacing in 8.1 and 8.2. You can add a fill to strip.background
to extend the background colors and rotate the text with strip.text
# https://www.r-graph-gallery.com/283-the-hourly-heatmap.html | |
library(ggplot2) | |
library(dplyr) # easier data wrangling | |
library(viridis) # colour blind friendly palette, works in B&W also | |
library(Interpol.T) # will generate a large dataset on initial load | |
library(lubridate) # for easy date manipulation | |
library(ggExtra) # because remembering ggplot theme options is beyond me | |
library(tidyr) |
library(ggplot2) | |
library(igraph) | |
library(ggraph) | |
library(scales) | |
library(ggforce) | |
network_theme <- theme_no_axes() + | |
theme(panel.border = element_blank()) | |
theme_set(network_theme) |
# the --recursive is important, this has a submodule! | |
git clone --recursive https://github.com/asciinema/asciicast2gif.git | |
cd asciicast2gif | |
# If you forget to use --recursive you can do | |
git submodule init | |
git submodule update | |
# install npm dependencies | |
npm install |
slide_windows <- function(tbl, doc_var, window_size) { | |
tbl %>% | |
group_by(!!doc_var) %>% | |
mutate(WordId = row_number() - 1, | |
RowCount = n()) %>% | |
ungroup() %>% | |
crossing(InWindowIndex = 0:(window_size-1)) %>% | |
filter((WordId - InWindowIndex) >= 0, # starting position of a window must be after the beginning of the document | |
(WordId - InWindowIndex + window_size - 1) < RowCount # ending position of a window must be before the end of the document | |
) %>% |
I travel a lot so I'm down to like 30 minutes of packing per any kind of trip. I always bring one carry-on suitcase for any trips up to 2 weeks (that I never check in unless forced) -- I have an Away suitcase because it's got a built-in (removable) battery, and amazing wheels.