Skip to content

Instantly share code, notes, and snippets.

# Set the base image to Node 18
FROM node:18
# File Author / Maintainer
LABEL maintainer=your_email@gmail.com"
# Update the repository sources list
RUN apt-get update && apt-get upgrade -y
# Install Chromium
@zstumgoren
zstumgoren / process_csv.py
Created April 9, 2011 18:02
Sample script on how to use Python's csv DictReader class to process tabular data.
#!/usr/bin/env python
import csv
source_file = open('/path/to/Testfile.txt','rb')
# Use the DictReader class to read in your data. This class allows you to access
# field names by name. It assumes the first line in the file contains the field names
for line in csv.DictReader(source_file, delimiter='\t'):