Skip to content

Instantly share code, notes, and snippets.

Arvid arvids

Block or report user

Report or block arvids

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
arvids / PKGBUILD
Last active Dec 3, 2017
polybar PKGBUILD
The polybar package has been updated so this is no longer needed.
View Change login background in OS X
mv ImageForLoginWallpaper.png /Library/Caches/
View raspberry_arch
# Packages required
# dosfstools parted
# Can be run on any Linux system
# loop.max_part=15 must be in kernel cmdline (cmdline.txt for rpi)
# then reboot
echo "creating image to fit on 2Gb card"
dd if=/dev/zero of=arch-rpi.img bs=1M count=1850
arvids /
Created Mar 29, 2014
Positive Pointwise mutual information
from scipy import sparse
import numpy
from itertools import izip, repeat
from multiprocessing import Pool
def ppmi(matrix,np,n):
if not sparse.isspmatrix_coo(matrix):
matrix = matrix.tocoo()
M,N = matrix.shape
data =
You can’t perform that action at this time.