Skip to content

Instantly share code, notes, and snippets.

View basilesimon's full-sized avatar

Basile Simon basilesimon

View GitHub Profile
@aendra-rininsland
aendra-rininsland / gdpr-sar-template.txt
Created January 3, 2020 16:46
GDPR Subject Access Request -- Template
Hi there! Please forward this to your GDPR compliance department. Thank you!
--
To whom it may concern — I'm interested in what sorts of data your company collects about me.
To wit, I would like to file a Subject Access Request (SAR) under the EU General Data Protection Regulation (GDPR) for all personal information relating to myself using the following personal identifiers:
[ list which PII you feel or can prove is held by the entity in question ]
# Takes an ordered vector of numeric values and returns a small bar chart made
# out of Unicode block elements. Works well inside dplyr mutate() or summarise()
# calls on grouped data frames.
sparkbar <- function(values) {
span <- max(values) - min(values)
if(span > 0 & !is.na(span)) {
steps <- round(values / (span / 7))
blocks <- c('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
paste(sapply(steps - (min(steps) - 1), function(i) blocks[i]), collapse = '')
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<!-- Animate Dashed line - based off http://css-tricks.com/svg-line-animation-works
-->
@imjasonh
imjasonh / markdown.css
Last active November 6, 2024 14:26
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@iaincollins
iaincollins / gist:3ed9e690f6d7f3fb8aa0
Created September 29, 2014 12:51
Adolf Hitler Co-Occurences
{
"co-occurrences": [
{
"img": "http://upload.wikimedia.org/wikipedia/commons/thumb/c/ca/Vladimir_Putin_12015.jpg/200px-Vladimir_Putin_12015.jpg",
"label": "Vladimir Putin",
"occurrence": "89",
"thing": "http://dbpedia.org/resource/Vladimir_Putin"
},
{
"img": "http://upload.wikimedia.org/wikipedia/commons/thumb/8/80/Official-photo-cameron.png/200px-Official-photo-cameron.png",
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active November 17, 2024 01:28
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname