Skip to content

Instantly share code, notes, and snippets.

@Snigdha2020
Snigdha2020 / readme.sh
Created November 4, 2022 10:52 — forked from massiws/readme.sh
Install Samsung M2070 FW printer/scanner in Mint/Ubuntu
# Download last official driver
# (see here https://support.hp.com/de-de/drivers/selfservice/samsung-xpress-sl-m2070-laser-multifunction-printer-series/16450377)
wget https://ftp.hp.com/pub/softlib/software13/printers/SS/SL-M4580FX/uld_V1.00.39_01.17.tar.gz
# Unpack archive:
tar -xf uld_V1.00.39_01.17.tar.gz
# Move into driver folder:
cd uld
@Snigdha2020
Snigdha2020 / pagerank.py
Created October 2, 2020 05:31 — forked from diogojc/pagerank.py
python implementation of pagerank
import numpy as np
from scipy.sparse import csc_matrix
def pageRank(G, s = .85, maxerr = .001):
"""
Computes the pagerank for each of the n states.
Used in webpage ranking and text summarization using unweighted
or weighted transitions respectively.