Skip to content

Instantly share code, notes, and snippets.

View heathdrobertson's full-sized avatar
🏠
FIRE TAC 1

Heath Robertson heathdrobertson

🏠
FIRE TAC 1
View GitHub Profile
@heathdrobertson
heathdrobertson / EMA_Ribbon.md
Last active October 26, 2023 04:14
Tradingview - Pine Script - Exponential Moving Average Ribbon

Pine Script (Tradingview)

EMA Ribbon

//@version=3
study(title="Exponential Moving Average Ribbon", shorttitle="EMA", overlay=true)

src = input(title="Source", type=source, defval=close)
// srcno = input(close, title="Source None", scale=scale.none)
// https://www.tradingcode.net/tradingview/indicator-settings/scale-indicator/
@heathdrobertson
heathdrobertson / currency_design.md
Last active February 14, 2024 02:44
Currency Design Master Class
@heathdrobertson
heathdrobertson / python.nix
Last active November 13, 2019 22:04
A NixOs Docker Container Build for JupyterLab
# see https://nixos.org/nixos/packages.html to search for more
with import <nixpkgs> {};
# with pkgs;
let
my-python-packages = python-packages: with python-packages; [
jupyterlab
pandas
numpy
@heathdrobertson
heathdrobertson / Dockerfile
Last active November 13, 2019 21:59
iHaskell Jupyter Lab Docker Image Build
```Dockerfile
FROM fpco/stack-build:lts-14.7
# Install all necessary Ubuntu packages
RUN apt-get update && apt-get install -y python3-pip libgmp-dev libmagic-dev libtinfo-dev libzmq3-dev libcairo2-dev libpango1.0-dev libblas-dev liblapack-dev gcc g++ nodejs && \
rm -rf /var/lib/apt/lists/*
# Install Jupyter notebook
RUN pip3 install -U jupyterlab
@heathdrobertson
heathdrobertson / create.nix
Last active November 14, 2019 03:15
Setting up a Jekyll Static Website for GitHub Pages.
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "base-jekyll-builder";
buildInputs = [
ruby
jekyll
nodejs
];
" Neovim Plugins https://github.com/neovim/neovim/wiki/Related-projects#plugins
" vim-plug Plugin Manager - https://github.com/junegunn/vim-plug#usage
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - For Vim: ~.vim/plugged
" - Avoid using standard Vim directory names like 'plugin'
" - Reload .vimrc and :PlugInstall to install plugins.
call plug#begin('~/.local/share/nvim/plugged')
" Make sure you use single quotes
@heathdrobertson
heathdrobertson / haskell.nix
Last active November 14, 2019 01:10
A Haskell environment built with a Nix shell.
{ nixpkgs ? import <nixpkgs> {} }:
let
inherit (nixpkgs) pkgs;
inherit (pkgs) haskellPackages;
haskellDeps = ps: with ps; [
base
lens
mtl
];
@heathdrobertson
heathdrobertson / cowsay.nix
Created November 14, 2019 01:17
A sample container expossing a running Nix shell.
# This imports the nix package collection,
# so we can access the `pkgs` and `stdenv` variables
with import <nixpkgs> {};
# Make a new "derivation" that represents our shell
stdenv.mkDerivation {
name = "haskell_env";
# The packages in the `buildInputs` list will be added to the PATH in our shell
buildInputs = [
@heathdrobertson
heathdrobertson / design_notes_adobe.md
Last active November 30, 2019 13:04
Design project notes. Illustrator, Photoshop, After Effects, Premiere

Premiere

After Effects

Illustrator

Photoshop

Acrobat

@heathdrobertson
heathdrobertson / node_express.nix
Last active November 27, 2019 22:37
Node.js & Express Framework
with import <nixpkgs> {};
# with pkgs;
stdenv.mkDerivation {
name = "Express API";
buildInputs = [python37 nodejs];
shellHook = ''
npm install bitcoin-core bitcoinjs-lib bitcoinjs-message body-parser crypto-js express hex2ascii morgan nodemon