Element.
<Text>Hello, gini</Text>
Element with clothes off.
{
type: Text,
/* Pair of compress/decompress functions for hex-triplet encoded web safe 16x16 image. | |
* | |
* Uses max Brotli quality for max compression ratio, trading off computation | |
* time. Assumes lower case image string input and produces lower case output. | |
* | |
* Uses the first byte to lookup the encoding/compression strategy. | |
*/ | |
const base91 = require('node-base91') | |
const stream = require('stream') // needed for zlib |
import base64 | |
import itertools | |
import zlib | |
# look up table for web safe color rgb hex | |
allowed_hex = ['0', '3', '6', '9', 'c', 'f'] | |
code_to_hex = {idx: ''.join(s) | |
for idx, s in enumerate(itertools.product(allowed_hex, repeat=3))} |
" from vim-sexp | |
function! s:get_visual_marks() | |
return [getpos("'<"), getpos("'>")] | |
endfunction | |
function! s:set_visual_marks(marks) | |
call setpos("'<", a:marks[0]) | |
call setpos("'>", a:marks[1]) | |
endfunction |
direnv_hook() { | |
local previous_exit_status=$?; | |
# eval "$(direnv export bash)"; | |
eval "$(direnv export bash 2> >( \ | |
awk ' | |
$0 !~ /^direnv: export/ | |
$0 ~ /^direnv: export/ { | |
plus = gsub("\\+", ""); | |
minus = gsub("-", ""); | |
change = gsub("~", ""); |
#!/usr/bin/env bash | |
# From https://github.com/pinealan/dotfiles | |
nix-list() { | |
nix-env --list-generations | |
} | |
get_current_gen() { | |
if [ -z $1 ] ; then | |
# default to current generation of nix-env |
venv() { | |
# use global venvs from $HOME if arg is provided | |
if [[ -n $1 ]]; then | |
. ~/venv/$1/bin/activate | |
return | |
fi | |
# look for a venv in current directory | |
for dir in "venv" ".venv" "env" ".env"; do | |
if [[ -d $dir ]]; then |
#!/home/alan/miniconda3/bin/python3 | |
import sys | |
import json | |
from datetime import datetime | |
from recordclass import recordclass | |
from matplotlib import pyplot as plt | |
Candle = recordclass('Candle', ['open', 'close', 'hi', 'low', 'ts', 'volume']) |
#!/bin/bash | |
OPT="" | |
AUTHOR="" | |
for i in "$@"; do | |
case $i in | |
-a|--all) | |
OPT+="--all" | |
OPT+=" " |