This file contains hidden or 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
import pandas as pd | |
from tabula import read_pdf | |
# Specify file name | |
FILE_NAME = "sample.pdf" | |
# Total Pages | |
TOTAL_PAGES = 2 | |
# Read the first page. | |
final_frame = read_pdf(FILE_NAME, pages="1")[0] |
This file contains hidden or 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
//@ts-nocheck | |
import { isEqual, isObject, transform } from 'lodash' | |
/** | |
* Deep diff between two object, using lodash | |
* @param {Object} object Object compared | |
* @param {Object} base Object to compare with | |
* @return {Object} Return a new object who represent the diff | |
*/ |
This file contains hidden or 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 bash | |
# make sure this bash script has executable permission, if doesn't have, run following command | |
# > $ chmod +x *.sh | |
gsutil - m cp - r "gs://[BUCKET_PATH]/$1". \ | |
zip - r /root/ $1.zip $1 \ | |
rm - rf $1 \ | |
gsutil cp /root/ $1.zip gs://[BUCKET_PATH]/ \ | |
rm -rf /root/$1.zip |
OlderNewer