Skip to content

Instantly share code, notes, and snippets.

@bkief
bkief / HotOnes.csv
Created June 4, 2024 18:33
Hot Ones
Season Position Sauce SHU
1 1 Texas Pete Original Hot Sauce 747
1 2 Cholula Original Hot Sauce 3600
1 3 El Yucateco Caribbean Hot Sauce 5790
1 4 Lottie's Traditional Barbados Yellow Hot Pepper Sauce 15000
1 5 Pain Is Good Batch #218 Louisiana Style Hot Sauce 13000
1 6 Pain 100% Hot Sauce 40600
1 7 Blair's Original Death Sauce with Chipotle 30000
1 8 Dave's Gourmet Temporary Insanity Hot Sauce 57000
1 9 Dave's Gourmet Insanity Hot Sauce 180000
@bkief
bkief / encrypt_password.py
Created March 26, 2024 16:37 — forked from jkatz/encrypt_password.py
Methods to create password verifiers for PostgreSQL
# Copyright 2019-2022 Jonathan S. Katz
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@bkief
bkief / configmap.yaml
Last active March 7, 2024 20:23
CNPG & Traefik
apiVersion: v1
kind: ConfigMap
metadata:
name: traefik-config
namespace: pg-traefik
data:
dynamic-config.yaml: |
tcp:
routers:
MyDBRouter0:
@bkief
bkief / Gfortran Static Compile Notes.txt
Last active January 9, 2020 14:07
Nice hack for statically compiling gfortran with all dependencies
Hi,
there is the long standing annoyance that it is very hard to
statically compile in libquadmath.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46539 and
https://gcc.gnu.org/ml/gcc-patches/2014-10/msg00375.html.
Unfortunately, the patch from FX went nowhere, and the
second suggestion of Tobias (gfortran -specs=myspecfile) does not work.
@bkief
bkief / JupyterEnv.py
Last active November 21, 2019 17:26
Jupyter Virtual Environments
import ipykernel.kernelspec as ipyk
import jupyter_client.kernelspec as jupyter_kernel
import papermill
class JupyterEnv:
'''A class to assist with running a Jupyter notebook from the same
environment it was involked from. Especially useful for use with
Python virutal environments.
'''
@bkief
bkief / .block
Last active November 15, 2017 17:54 — forked from mbostock/.block
Bilevel Partition
license: gpl-3.0
@bkief
bkief / .block
Created November 15, 2017 17:32 — forked from kerryrodden/.block
Sequences sunburst
license: apache-2.0
@bkief
bkief / README.md
Created November 2, 2017 16:10 — forked from ganeshv/.block
Zoomable Treemap Template

Zoomable Treemap

Treemaps for visualizing hierarchical data. Click to zoom to the next level. Click on the top orange band to zoom out. Based on Mike Bostock's Zoomable Treemaps

This template follows pigshell's convention for "gist templates":

  • It is supplied data using postMessage(), as a single object of the form