Skip to content

Instantly share code, notes, and snippets.

View christ776's full-sized avatar

Christian De Martino christ776

View GitHub Profile
#!/usr/bin/env python3
import requests
from requests.exceptions import ConnectionError
import json
import locale
from bs4 import Tag, NavigableString, BeautifulSoup
"""
Set locale to es_ES
function flattenArray(arr) {
if (arr === undefined || arr === null) {
throw new Error('Bad argument type:', arr);
}
const flattenedArray = [].concat(...arr)
for(const m of flattenedArray) {
if (m instanceof Array) {
return flattenArray(flattenedArray);
}
}

Keybase proof

I hereby claim:

  • I am christ776 on github.
  • I am christian776 (https://keybase.io/christian776) on keybase.
  • I have a public key ASDd9jVHfzDhy3z_lIslZ5H5zZs-q5iHIrxsW6Q3dENA4Ao

To claim this, I am signing this object: