Skip to content

Instantly share code, notes, and snippets.

View zkamvar's full-sized avatar

Zhian N. Kamvar zkamvar

View GitHub Profile
johnslemmer / index.html
Last active June 9, 2022 17:45
Wordle (copy of source code on 2022.01.31 just in case the NYTimes fucks it up)
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<title>Wordle - A daily word game</title>
<meta name="description" content="Guess the hidden word in 6 tries. A new puzzle is available each day.">
<!-- FB Meta Tags -->
emilyriederer / ugliest-ggplot-theme.R
Last active May 11, 2023 06:35
A very, very ugly ggplot2 to demonstrate the wide variety of ggplot2 theme() options
View ugliest-ggplot-theme.R
# sample data for plot ----
points <-
x = rep(1:10,3),
y = rep(1:10,3),
z = sort(rep(letters[1:2], 15)),
w = rep(letters[3:4], 15)
# ggplot using many theme options ----
brodieG / cran-check.R
Last active June 18, 2019 21:02
Check CRAN Results
View cran-check.R
# started with `foghorn`, but that comes with dependencies and
# slows down R startup. `browseURL` just barely slows startup,
# even if actual page is slow to load.
check_cran_old <- function(email) {
gsub("[^A-Za-z0-9_:.-]", "_", sub("@", "_at_", email))
) ) }
View shy-sort.html
<!doctype html>
<!-- This is just a very slightly modified tracking.js demo: -->
<meta charset="utf-8">
<script src=""></script>
<script src=""></script>
video, canvas {
margin-left: 100px;
joshkatz / sotu.R
Created January 31, 2018 15:49
State of the Union WPM chart
View sotu.R
needs(rvest, tidyverse, zoo)
df <- c('minutes', 'words') %>%
map(function(var) {
doc <- var %>%
sprintf(fmt = '') %>%
doc %>%
html_node('table tr:nth-of-type(2) table') %>%
html_table(fill = T) %>%
junioryauricasa / index.html
Created December 9, 2017 19:14
table style css - Tablas estilo EXCEL
View index.html
<html xmlns="">
<link rel="stylesheet" type="text/css" href="excel-2000.css"/>
<link rel="stylesheet" type="text/css" href="excel-xp.css"/>
<link rel="stylesheet" type="text/css" href="excel-2003.css"/>
<link rel="stylesheet" type="text/css" href="excel-2007.css"/>
<script lang="javascript">
ericclemmons /
Last active November 8, 2023 18:03
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

 Summary Goes Here
bastman /
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see:

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm