Skip to content

Instantly share code, notes, and snippets.

@ericdill
ericdill / env
Last active October 18, 2019 13:15
# packages in environment at /home/ericdill/miniconda/envs/rapids-nightly:
#
# Name Version Build Channel
_libgcc_mutex 0.1 main
arrow-cpp 0.14.1 py37h5ac5442_4 conda-forge
backcall 0.1.0 py_0 conda-forge
bokeh 1.3.4 py37_0 conda-forge
boost-cpp 1.70.0 h8e57a91_2 conda-forge
brotli 1.0.7 he1b5a44_1000 conda-forge
bzip2 1.0.8 h516909a_1 conda-forge
@ericdill
ericdill / installation.md
Created September 10, 2019 12:24
Centos 7 for CUDA 10.0. Also daily driver linux desktop
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericdill
ericdill / button.ino
Last active June 22, 2019 19:42
Arduino button semaphore
//www.elegoo.com
//2016.12.08
int ledPin = 5;
int buttonApin = 9;
int buttonBpin = 8;
bool ledOn = false;
int loops = 0;
num_tiles = 10
ret = []
for _ in range(num_tiles):
x0 = random.randint(0, source_size[0] - target_width)
y0 = random.randint(0, source_size[1] - target_height)
x1 = x0 + target_width
y1 = y0 + target_height
ret.append((x0, x1, y0, y1))
def _load(path, fsrw_class=None):
"""Returns a dictionary of configuration by reading from the configuration
file."""
if fsrw_class is None:
fsrw_class = FileSystemReaderWriter
config_file = fsrw_class(path)
config_file.ensure_file_exists()
config_text = config_file.read_lines()
line = u"".join(config_text).strip()
@ericdill
ericdill / LICENSE.txt
Created January 19, 2019 13:54 — forked from eriknw/LICENSE.txt
Jupyter Notebook "goto" demo
Copyright (c) 2018 Erik Welch
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
a. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
b. Redistributions in binary form must reproduce the above copyright
@ericdill
ericdill / keybase.md
Created July 24, 2018 18:53
keybase.md

Keybase proof

I hereby claim:

  • I am ericdill on github.
  • I am ericdill (https://keybase.io/ericdill) on keybase.
  • I have a public key ASBKy3lX_Nir2vYhR4IuxKB-X9-vUzEbI4gVuDiZGWDbrAo

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "code",
"execution_count": 45,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"import fnmatch"