Skip to content

Instantly share code, notes, and snippets.

@joebeeson
joebeeson / docker-compose.yaml
Created August 28, 2020 15:35
Anchors in docker-compose.yaml
version: "3.4"
x-defaults: &defaults
image: "dask-dev/dask-notebook"
# With lists, each entry requires its own anchor if you
# intend to extend/reuse an entry in concrete services.
configs:
- &configs_condarc
source: "condarc"
@joebeeson
joebeeson / nearest-zero.py
Last active August 28, 2020 15:10
Read arbitrarily large input, print number closest to zero
from itertools import islice, tee
# Assume an input such:
#
# 3
# 1 -3 4
# 2
# 8 9
# 0
#
@joebeeson
joebeeson / directhings.groovy
Last active August 7, 2019 16:40
A SmartThings SmartApp for controlling your DirecTV receivers.
/**
* DirecThings v0.32
*
* Created by Joe Beeson <jbeeson@gmail.com>
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
@joebeeson
joebeeson / auto-arlo.groovy
Last active October 18, 2018 04:15
AutoArlo
/**
* AutoArlo
*
* Created by Joe Beeson <jbeeson@gmail.com>
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any