I hereby claim:
- I am artemvang on github.
- I am artemvang (https://keybase.io/artemvang) on keybase.
- I have a public key ASAuqB1S-N_MlBD5pRVslpl583tmftI5U7XyhAeDcCeFMwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| TARGET_FILE=$1 | |
| PORT=$2 | |
| URL=$(ip route get 8.8.8.8 2>/dev/null | awk '{print $7}') | |
| if [ -z "$URL" ]; then | |
| echo "Can not obtain ip address. Probably, you are not connected to wifi" | |
| exit 1 | |
| fi |
| #!/bin/bash | |
| base="/home/somebody" | |
| http_send_file() { | |
| local filename="$1" | |
| local temp_file=$(mktemp) | |
| gzip $filename -c > $temp_file | |
| local length=$(stat -c '%s' $temp_file) |
| #!/bin/bash | |
| STYLESHEET='tufte.css' | |
| FILE=$1 | |
| TMPFILE=$(mktemp) | |
| mv $TMPFILE "$TMPFILE.html" | |
| TMPFILE="$TMPFILE.html" | |
| mupdf "${FILE%%.*}.pdf" & |
| import numpy as np | |
| from scipy.cluster.vq import _valid_init_meth | |
| def _kpp(data, k): | |
| dims = data.shape[1] if len(data.shape) > 1 else 1 | |
| init = np.zeros((k, dims), dtype=np.float32) | |
| diff = np.zeros((data.shape[0], k, dims), dtype=np.float32) | |
| probs = np.zeros((data.shape[0],), dtype=np.float32) | |
| curl -s https://news.hoxly.com/story/173 | pup 'a.h6, li.fact json{}' | jq '{title: .[0].text, facts: [.[1:][] | {fact: .text[:-2], source: .children[0].href}]}' |
| curl -s https://patents.google.com/patent/WO2016186801A1/en?oq=neural \ | |
| | pup 'dd[itemprop="publicationNumber"], span[itemprop="title"]:only-of-type, h2:contains("ID="), article > a, div.abstract, div.description, div[class="claims ocr"], :parent-of(h2:contains("Classifications")) ul, dd[itemprop="inventor"] json{}' \ | |
| | jq '{pat_number: .[0].text, title: .[1].text, family_id: .[2].text[3:] | tonumber, pdf_link: .[3].href, abstract: .[4].text, description: [.[5].children[] | .text] | join("\n"), claims: [.[6].children[] | [.children[] | .text] | join("\n")], classifications: [.[7].children[] | [.children[] | .children | .[] | {code: .children[0].text, name: .children[1].text}]], inventors: [.[8:][] | .text]}' |
| import json | |
| import re | |
| import asyncio | |
| import re | |
| import itertools | |
| from bs4 import BeautifulSoup | |
| import aiohttp | |
| OUTPUT_FILE = "output.txt" |