This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
grafana: | |
image: grafana/grafana | |
container_name: grafana | |
restart: unless-stopped | |
ports: | |
- '3000:3000' | |
networks: | |
- network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Play with it: https://bnfplayground.pauliankline.com/ */ | |
<sexpr> ::= <atom> | <list> | <quote> | <unquote> | |
<atom> ::= <any>+ | |
<list> ::= "(" " "* (<sexpr> " "+)* <sexpr>? ")" | |
<quote> ::= "'" <sexpr> | |
<unquote> ::= "," <sexpr> | |
<any> ::= <alpha> | <special> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function usage { | |
echo "Usage: $(basename "$0") [OPTION]... FILE" 2>&1 | |
echo " -i modify the file in place" | |
echo " -o don't strip the outputs" | |
echo " -h display this help and exit" | |
exit 0 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See: | |
# https://people.eecs.berkeley.edu/%7Ejordan/courses/260-spring10/lectures/lecture5.pdf | |
# https://www.cs.ubc.ca/%7Emurphyk/Papers/bayesGauss.pdf | |
post <- function(x, mu0, kappa0, alpha0, beta0) { | |
n <- length(x) | |
xbar <- mean(x) | |
sse <- sum((x - xbar)^2) | |
mu <- ((kappa0 * mu0) + (n * xbar)) / (kappa0 + n) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import sys | |
# Validate if notebook cells were executed in order | |
if __name__ == '__main__': | |
if len(sys.argv) > 0: | |
path = sys.argv[1] | |
else: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import signal | |
from contextlib import contextmanager | |
from time import sleep | |
import pytest | |
@contextmanager | |
def timeout(time): | |
"""Timeout context manager | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
) | |
func main() { | |
if len(os.Args) > 1 && os.Args[1] == "--help" { | |
args := "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Redirect Jupyter notebooks from GitHub | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @match github.com/*.ipynb | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder