Skip to content

Instantly share code, notes, and snippets.

View imanojkumar's full-sized avatar
:octocat:
👨🏼‍🎓

Manoj Kumar imanojkumar

:octocat:
👨🏼‍🎓
View GitHub Profile
@imanojkumar
imanojkumar / msi-gtx1060-ubuntu-18.04-deeplearning.md
Created July 4, 2019 20:27 — forked from hereismari/msi-gtx1060-ubuntu-18.04-deeplearning.md
Setting up a MSI laptop with GPU (gtx1060), Installing Ubuntu 18.04, CUDA, CDNN, Pytorch and TensorFlow
@imanojkumar
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
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
imanojkumar / image_scatter.py
Created June 2, 2016 07:20 — forked from lukemetz/image_scatter.py
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
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
# 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 = "https://cran-archive.r-project.org/bin/windows/contrib/",
active = "https://cran.r-project.org/bin/windows/contrib/"
)
get_urls <- function(url){
@imanojkumar
imanojkumar / index.html
Created June 29, 2015 05:44
rCharts D3 Spatial Packages
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='http://nvd3.org/assets/css/nv.d3.css'>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script>
<script src='http://d3js.org/d3.v3.min.js' type='text/javascript'></script>
<script src='http://timelyportfolio.github.io/rCharts_nvd3_tests/libraries/widgets/nvd3/js/nv.d3.min-new.js' type='text/javascript'></script>
<script src='http://nvd3.org/assets/lib/fisheye.js' type='text/javascript'></script>