(Also read Trouble Shoot)
If your laptop is configured to prohibit writing to USB memory devices, likely due to your company's security policy, it will not function in the workshop😣
(Also read Trouble Shoot)
If your laptop is configured to prohibit writing to USB memory devices, likely due to your company's security policy, it will not function in the workshop😣
NDJSON is a convenient format for storing or streaming structured data that may be processed one record at a time.
cat test.json | jq -c '.[]' > testNDJSON.json
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks | |
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
cursorColor: 'rgba(248,28,229,0.8)', |
#SOLID Principles with ruby examples
##SRP - Single responsibility principle A class should have only a single responsibility.
Every class should have a single responsibility, and that responsibility should be entirely encapsulated. All its services should be narrowly aligned with that responsibility, this embrace the high cohesion.
##OCP - Open/closed principle Software entities should be open for extension, but closed for modification.
# Create specified number of articles for Hugo benchmarks | |
# Create the output directory before running | |
from datetime import datetime | |
import random | |
import string | |
from sys import argv | |
def generateWord(): | |
length = random.randint(1, 10) |
A class should have only a single responsibility.
Every class should have a single responsibility, and that responsibility should be entirely encapsulated. All its services should be narrowly aligned with that responsibility, this embrace the high cohesion.
Software entities should be open for extension, but closed for modification.
class SortedGcsCsvShardFileMergeReader(object): | |
"""Merges several sorted .csv files stored on GCS. | |
This class is both an iterator and a context manager. | |
Let's say there are 2 .csv files stored on GCS, with contents like: | |
/bucket/file_1.csv: | |
[0, "Matt"], | |
[0, "Sam"], |