Just a quick fun experiment to try to make docker-compose
work as a Docker CLI plugin
- docker/cli#1534 CLI Plugins Design
- docker/cli#1564 Basic framework for writing and running CLI plugins
To use it (assuming you have docker compose installed):
FROM ubuntu:bionic-20220531 | |
# Must be root to install the packages | |
USER root | |
# Install required deps | |
RUN apt update | |
RUN apt -y install gnupg wget apt-transport-https coreutils java-common | |
# Import Elasticsearch GPG Key |
// | |
// CustomMacTextView.swift | |
// | |
// MacEditorv2 Created by Marc Maset - 2021 | |
// Changes inspired from MacEditorTextView by Thiago Holanda | |
// | |
// Modified by Anthony Ingle - 2022 | |
// | |
import SwiftUI |
Just a quick fun experiment to try to make docker-compose
work as a Docker CLI plugin
To use it (assuming you have docker compose installed):
import numpy as np | |
## Tri Diagonal Matrix Algorithm(a.k.a Thomas algorithm) solver | |
def TDMAsolver(a, b, c, d): | |
''' | |
TDMA solver, a b c d can be NumPy array type or Python list type. | |
refer to http://en.wikipedia.org/wiki/Tridiagonal_matrix_algorithm | |
and to http://www.cfd-online.com/Wiki/Tridiagonal_matrix_algorithm_-_TDMA_(Thomas_algorithm) | |
''' | |
nf = len(d) # number of equations |
The standard names for indexes in PostgreSQL are:
{tablename}_{columnname(s)}_{suffix}
where the suffix is one of the following:
pkey
for a Primary Key constraint;key
for a Unique constraint;excl
for an Exclusion constraint;idx
for any other kind of index;
#! /usr/bin/env python | |
""" | |
Solve linear system using LU decomposition and Gaussian elimination | |
""" | |
import numpy as np | |
from scipy.linalg import lu, inv | |
def gausselim(A,B): |
# -*- coding: utf-8 -*- | |
# @author: Peter Lamut | |
import argparse | |
import os | |
import shutil | |
N = 10 # the number of files in seach subfolder folder |
#!/usr/bin/env python2.7 | |
import random | |
import subprocess | |
class Node(object): | |
def __init__(self, key, value): | |
self.key = key | |
self.value = value |