To use this theme, add !include right after @startuml
@startuml
!include https://gist.githubusercontent.com/BinaryShrub/f60cd9e5a9658ae5b0f53b69969ac577/raw/6003ccc69dfffbe66f8984614bfedaa1e0e1507d/theme.puml
.
.
.
| import csv | |
| import datetime | |
| import sys | |
| symbol = "MNQ" | |
| commission = 0.5 | |
| fees = 0.37 | |
| def epoch(date_str): | |
| date = datetime.datetime.strptime(date_str, "%m/%d/%Y") |
To use this theme, add !include right after @startuml
@startuml
!include https://gist.githubusercontent.com/BinaryShrub/f60cd9e5a9658ae5b0f53b69969ac577/raw/6003ccc69dfffbe66f8984614bfedaa1e0e1507d/theme.puml
.
.
.
| import winston from 'winston'; | |
| import util from 'util'; | |
| const utilFormat = (enableColor: boolean) => { | |
| const printFormat = winston.format.printf(({ level, message, timestamp }) => `${timestamp} ${level}: ${message}`); | |
| const format = winston.format.combine(winston.format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss.SSS' }), { | |
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | |
| transform: (info: any) => { | |
| const args = info[Symbol.for('splat')] || []; | |
| info.message = util.formatWithOptions({ colors: enableColor }, info.message, ...args); |
| /** | |
| * Alexa Skill Lambda Function that will play an audio file | |
| * on loop, indefinitely - no libraries required! 🎉 | |
| */ | |
| const debug = false | |
| exports.handler = async(event) => { | |
| const session = { event, response: error() } |
| #!/bin/bash | |
| # run 'dnd' to enable Do Not Disturb and disable all Badge app icons in the Dock | |
| # run 'dnd off' to disable Do Not Disturb and enable all Badge app icons in the Dock | |
| dnd () { | |
| local ENABLE | |
| local ENABLE_NUM | |
| local ENABLE_STRING_NEG | |
| case "$1" in | |
| off) |
| #!/bin/bash | |
| ## LUKS remote decrypt for Ubuntu 16.04.1 - by BinaryShrub | |
| # NOTES: | |
| # Tailor lines 67 - 69 to your system before running! | |
| # Use at your own risk! | |
| # Safety Check | |
| if [ "$EUID" -ne 0 ] | |
| then echo "You must run this as root" |