Instantly share code, notes, and snippets.

View docker_notes.md

Docker notes:

General

Images - Stopped containers Containers - running containers

Commands

View Helpful_Python.py
# select n items from a dict
from itertools import islice
def take(n, iterable):
"Return first n items of the iterable as a list"
return list(islice(iterable, n))
n = 5
for k,v in take(n, dictionary.items()):
print(k,v)
View WindowsCLI.md
  • dir : list all files and directories (equivalent of ls)
  • dir /od /n : /od is sorted (o) by date (d)
  • cls : clear terminal
  • <escape key> : clears current line from terminal, similar to ctrl + u on linux
  • <home key> : go to beginning of current string in the terminal, peforms same function as ctrl + a on linux
  • <end key> : got to end of current string in the terminal, similar to ctrl + e on linux
  • <f7> : view all command history in terminal
View index.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="pandoc" />
View Error_list.md

List of metrics First Tier:

  • False Positive - Type I
  • False Negative - Type II
  • True Positive
  • True Negative

Second Tier: Primary issues with 2nd tier - not easy to remember and have various names for the same thing: is there a way to prevent this, i.e. create some type of

View text_transistion.js
function transition_text(element_id, display_text, t_duration){
// base off of https://bl.ocks.org/mbostock/f7dcecb19c4af317e464
svg.select(element_id)
.transition()
.duration(t_duration)
.on("start", function () {
var t = d3.active(this)
.style("opacity", 0)
.remove();
View .block
license: gpl-3.0
View .block
license: mit
border: no
View .block
license: mit
border: no