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 |
// 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: |
//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; |
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
that detects and handles AJAXed content. | |
Usage example: | |
waitForKeyElements ( | |
"div.comments" | |
, commentCallbackFunction | |
); |
--- | |
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? |
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)() |
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: |
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 |