Skip to content

Instantly share code, notes, and snippets.

View pmangg's full-sized avatar
🦊
scheming

Putra Manggala pmangg

🦊
scheming
  • Amsterdam, the Netherlands
View GitHub Profile
@pmangg
pmangg / installing_nvidia_driver_cuda_cudnn_linux.md
Created January 11, 2022 18:22 — forked from kmhofmann/installing_nvidia_driver_cuda_cudnn_linux.md
Installing the NVIDIA driver, CUDA and cuDNN on Linux

Installing the NVIDIA driver, CUDA and cuDNN on Linux (Ubuntu 20.04)

This is a companion piece to my instructions on building TensorFlow from source. In particular, the aim is to install the following pieces of software

on an Ubuntu Linux system, in particular Ubuntu 20.04.

## PRs:
https://github.com/Shopify/arrive-client/pull/863
## Instrumented events:
1. shop_app_page_load (C) (I)
365 ^(-1* 500) * factorial(365) * stirling_number2(500, 365)
984908967245099073498151540066719815676964169732732000522703305142726173\
134836088529399130624545077968308634139190818945672976450163466509034452\
991836146101767730053644807089036175246636897892923888533136199396827284\
950730245834822959250862877067458940650099990521056764986162388029419435\
966430620676278076580721814146348177769253488050064310020766115517504517\
208224927740809182923215562660329639455055771283857277755558022874960517\
868857332500280426050380910994595470557316630017114868162892242372195117\
095300145937888936958242866546309401179894062478884531947082495527256732\
@pmangg
pmangg / gist:7994642
Created December 16, 2013 21:21
birthday problem
import math
import numpy as np
from decimal import *
# Stirling Algorithm
# Cod3d by EXTR3ME
# http://extr3metech.wordpress.com
def stirling(n,k):
n1=n
@pmangg
pmangg / Rio
Created September 11, 2013 22:15
#!/bin/bash
# Rio: Simple bash script to redirect CSV to R and get the result as CSV on stdout
# Example usage: seq 100 | ./Rio 'sqrt(df)' 2>/dev/null
# http://jeroenjanssens.com
SCRIPT=$1
IN=$(mktemp)
OUT=$(mktemp)
cat /dev/stdin > $IN
Rscript -e "df<-read.csv('${IN}',header=F);$SCRIPT;write.table(.Last.value,'${OUT}',sep=',',quote=F,row.names=F,col.names=F);" 1>&2
@pmangg
pmangg / gist:3996256
Created November 1, 2012 20:27
grep -nC1 example
➜ DataNovel cat 1857_Stifter,Adalbert_DerNachsommer_Novel.txt| grep -nC1 'Wissen-'
723-einer verhältnismäßigen Zeit in ziemlich schwierige
724:Abteilungen des höheren Gebietes dieser Wissen-
725-schaft vorgerückt. Der Vater erlaubte mir endlich, zu-
--
--
1389-
1390:fassung aller meiner bisherigen Arbeiten die Wissen-
1391-schaft der Bildung der Erdoberfläche und dadurch
--