- High-Level and Accessible: Data should be made available via an API which doesn't require any (1) proprietary, idiosyncratic access technology, (2) custom query language, (3) a particular language, or (4) a particular run-time environment. In other words, users should be able to issue queries using a query language, over a communication protocol and on a run-time environment which they already are familiar with and be able to possess and maintain comfortably on a personal computer with minimal effort and no extra costs.
- Liberal: Consumers should be able to issue read/write queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This module provides various functions to inspect and normalize value inputs. | |
Reference: https://gist.github.com/vst/f377006ebe30f3a90d5d54366430ccee | |
""" | |
__all__ = ["identity", "strnorm", "is_positive_integer", "as_positive_integer"] | |
import re | |
from functools import wraps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This module provides various functions to work with XLSX file. | |
Reference: https://gist.github.com/vst/269aceb5a54de0adf2cb23e3482895f8 | |
""" | |
__all__ = ["read_workbook_data", "read_worksheet_data"] | |
from typing import Any, Dict, Iterable |
Note: For the Docker Swarm setup, check out the official guide.
bash setup.sh [<OPENFAAS-HOME-DIRECTORY>]
whereby OPENFAAS-HOME-DIRECTORY
defaults to /data/openfaas
.
Note: Follow the official guide.
bash setup.sh myusername mypassword
- Authentication information is stored under
/data/docker/registry/auth
. - Storage directory is set to be
/data/docker/registry/storage
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ack | |
axel | |
curl | |
emacs | |
git | |
htop | |
jq | |
mc | |
network-manager | |
pandoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Run the SaveAllAsCSV subroutine. | |
' Creates a CSV file from the active sheet under the given directory. | |
' | |
' Based on https://forum.openoffice.org/en/forum/viewtopic.php?t=41284 | |
sub SaveAsCSV(filename As String) | |
' Declare the document variable: | |
dim document as object | |
' Get the document: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Got this script initially from https://gist.github.com/kbl/5970131 | |
########### | |
# IMPORTS # | |
########### | |
import ConfigParser | |
import argparse | |
import json | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
=head1 NAME | |
sample.pl - Sample Perl Script | |
=head1 SYNOPSIS | |
perl sample.pl | |
perldoc sample.pl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Provides a cast operations module. | |
>>> cast_to_decimal(1.0001) | |
Decimal('1.0001') | |
>>> cast_to_decimal(1) | |
Decimal('1') | |
>>> cast_to_decimal("1.0001") | |
Decimal('1.0001') | |
>>> cast_to_decimal(Decimal("1.0001")) |