Skip to content

Instantly share code, notes, and snippets.

@rmtuckerphx
rmtuckerphx / direnv-win.md
Last active September 6, 2024 18:46
Steps to install direnv on Windows

direnv on Windows

Overview

In JavaScript projects, I used to use dotenv so that I could put local environment variables in a .env file for local development. But dotenv requires you to add code to your project. With direnv, you can put local env vars in a .envrc file and those env vars are loaded automatically in the shell.

Steps to install

For these steps, it is assummed that you have installed Git Bash on Windows. I also use VSCode as my editor.

  1. Create a folder such as c:\tools to put the direnv.exe file and add it to the Windows PATH
# Write your code here :-)
import board
import digitalio
import gamepad
import time
import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
kbd = Keyboard(usb_hid.devices)
@flrs
flrs / saturn_cloud_modeltime_gluonts_startup_script.sh
Created March 1, 2021 01:42
GPU-powered Deep Learning for Time Series with modeltime.gluonts on Saturn Cloud
# Saturn Cloud Startup Script for Running GPU-enabled modeltime.gluonts
#
# How to use:
# 1. Create an account on saturncloud.io
# 2. Create a new project in Saturn Cloud
# 3. Select image "saturncloud/saturn-gpu:2020.12.23" as image for your project
# 4. Copy and paste code below into "Advanced Settings (optional)" > "Start Script (Bash)".
# (This code will install R, a Jupyter R kernel, modeltime.gluonts, and prepare a Python environment
# for executing GluonTS.)
# 5. The startup script takes about 40 min to run. After that, you can start Jupyter Lab in your Saturn Cloud
@kylemcdonald
kylemcdonald / Collect Parler Metadata.ipynb
Last active June 27, 2024 04:09
Collect video URLs and GPS data for Parler videos.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ih2502mk
ih2502mk / list.md
Last active November 18, 2024 08:01
Quantopian Lectures Saved
@cicdw
cicdw / prefect_coiled_demo.ipynb
Last active December 7, 2020 21:27
Outline of Prefect + Coiled demo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jacobtomlinson
jacobtomlinson / Dask on Fargate from scratch.ipynb
Last active February 26, 2024 14:35
Dask on Fargate from scratch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gschivley
gschivley / altair_app.py
Created May 13, 2018 18:32
Altair plot in Plotly Dash
# -*- coding: utf-8 -*-
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import pandas as pd
import sqlalchemy
import altair as alt
import io
from vega_datasets import data
@steven2358
steven2358 / ffmpeg.md
Last active November 11, 2024 04:45
FFmpeg cheat sheet
@shortjared
shortjared / list.txt
Last active November 15, 2024 11:42
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com