Skip to content

Instantly share code, notes, and snippets.

View imanojkumar's full-sized avatar

Manoj Kumar imanojkumar

View GitHub Profile
imanojkumar /
Created July 4, 2019 20:27 — forked from hereismari/
Setting up a MSI laptop with GPU (gtx1060), Installing Ubuntu 18.04, CUDA, CDNN, Pytorch and TensorFlow
imanojkumar / gist:dce668d097282f0ef929d51e8008bf0d
Created April 3, 2017 04:12 — forked from ibogun/gist:ec0a4005c25df57a1b9d
Installing gcc 4.9 & g++ 4.9 on Ubuntu 12.04 OR Ubuntu 14.04
View gist:dce668d097282f0ef929d51e8008bf0d
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50
sudo apt-get install g++-4.9
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 50
imanojkumar /
Created June 2, 2016 07:20 — forked from lukemetz/
Image tsne scatter plot
from tsne import bh_sne
import numpy as np
from skimage.transform import resize
from matplotlib import pyplot as plt
def gray_to_color(img):
if len(img.shape) == 2:
img = np.dstack((img, img, img))
return img
imanojkumar / CRAN_pkg_history.R
Created April 22, 2016 05:47 — forked from andrie/CRAN_pkg_history.R
Scrapes CRAN for historical number of packages per release
View CRAN_pkg_history.R
# Scrapes CRAN archives to determine the number of packages per release
# Create a list of pages to scrape, including both archive and current
extract_url <- function(){
url <- list(
archive = "",
active = ""
get_urls <- function(url){
imanojkumar / index.html
Created June 29, 2015 05:44
rCharts D3 Spatial Packages
View index.html
<!doctype HTML>
<meta charset = 'utf-8'>
<link rel='stylesheet' href=''>
<script src='' type='text/javascript'></script>
<script src='' type='text/javascript'></script>
<script src='' type='text/javascript'></script>
<script src='' type='text/javascript'></script>