Because finding anything in this page is harder than it should be
Date | Article | Contents |
---|---|---|
2015-02-02 | Unearthed Arcana: Eberron [PDF] | Changelings, shifters, warforged, Wizard (Artificer), rules for action points, dragonmarks |
(defun outline-copy-visible (keepp) | |
"Create a copy of the visible part of the current buffer and add | |
it to the kill ring so it can be copied into other buffers or programs. | |
The copy is created in a temporary buffer and removed after use. | |
As a special case, if you have a prefix arg KEEPP, the temporary | |
buffer will not be removed but presented to you so that you can | |
continue to use it. | |
This function is derived from org-export-visible." | |
(interactive "P") | |
(let* ((file buffer-file-name) |
Because finding anything in this page is harder than it should be
Date | Article | Contents |
---|---|---|
2015-02-02 | Unearthed Arcana: Eberron [PDF] | Changelings, shifters, warforged, Wizard (Artificer), rules for action points, dragonmarks |
import re; | |
import os; | |
with open('sorting.txt') as f: | |
lines = f.readlines() | |
with open('template.cbl') as f: | |
cbl = f.read() | |
for l in lines: |
javascript:(function()%7Blet%20table%20%3D%20document.querySelector(%22div%3Etable%22)%3B%0Alet%20list%20%3D%20document.createElement(%22ul%22)%3B%0Alet%20rows%20%3D%20%5B...table.rows%5D.slice(2)%3B%0Atable.parentElement.appendChild(list)%3B%0Arows.forEach(r%3D%3E%7B%0A%20%20%20%20let%20li%20%3D%20document.createElement(%22li%22)%3B%0A%20%20%20%20let%20name%20%3D%20r.cells%5B0%5D.textContent%3B%0A%20%20%20%20let%20rating%20%3D%20r.cells%5B1%5D.textContent%3B%0A%20%20%20%20let%20color%20%3D%20r.cells%5B0%5D.firstChild.style.color%3B%0A%20%20%20%20li.style.color%20%3D%20color%3B%0A%20%20%20%20li.innerText%20%3D%20%60%24%7Bname%7D%20%24%7Brating%7D%60%3B%0A%20%20%20%20list.appendChild(li)%3B%0A%7D)%3B%7D)() |
--- | |
title: 'Role Playing with Probabilities: The Importance of Distributions' | |
author: "Jocelyn Barker" | |
date: "September 11, 2017" | |
output: html_document | |
--- | |
I have a confession to make. I am not just a statistics nerd; I am also a role-playing games geek. I have been playing Dungeons and Dragons (DnD) and its variants since high school. While playing with my friends the other day it occurred to me, DnD may have some lessons to share in my job as a data scientist. Hidden in its dice rolling mechanics is a perfect little experiment for demonstrating at least one reason why practitioners may resist using statistical methods even when we can demonstrate a better average performance than previous methods. It is all about distributions. While our averages may be higher, the distribution of individual data points can be disasterous. | |
## Why Use Role-Playing Games as an Example? |
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
that detects and handles AJAXed content. | |
Usage example: | |
waitForKeyElements ( | |
"div.comments" | |
, commentCallbackFunction | |
); |
//although it is hard job to convert pdf to text, tika tool is cool for this. it can auto detect pdf format and choose parser to parse the pdf. | |
package june; | |
import java.io.BufferedInputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; |
// To unzip the epub, move the ePub to a folder, cd to it then simply: | |
unzip MyEbook.epub | |
// To zip up an epub: | |
1. zip -X MyNewEbook.epub mimetype | |
2. zip -rg MyNewEbook.epub META-INF -x \*.DS_Store | |
3. zip -rg MyNewEbook.epub OEBPS -x \*.DS_Store | |
Some explanations necessary here. We start each line with two flags: |
<llppconfig> | |
<ui-font size='18'> | |
<![CDATA[/home/earnest/.local/share/fonts/Fontin-Regular.otf]]> | |
</ui-font> | |
<defaults zoom='100' | |
auto-scroll-step='12' | |
horizontal-scroll-step='24' | |
case-insensitive-search='true' | |
uri-launcher='$BROWSER "%s"' |
/* | |
* Copyright (C) 2017 Alberts Muktupāvels | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |