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
arvids / PKGBUILD
Last active Dec 3, 2017
polybar PKGBUILD
View 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/com.apple.desktop.admin.png
View raspberry_arch
#!/bin/bash
# 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
arvids / ppmi.py
Created Mar 29, 2014
Positive Pointwise mutual information
View ppmi.py
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 = matrix.data
You can’t perform that action at this time.