Skip to content

Instantly share code, notes, and snippets.

View siddhantmedar's full-sized avatar
🎯
Focusing

Siddhant Medar siddhantmedar

🎯
Focusing
  • United States
View GitHub Profile
@siddhantmedar
siddhantmedar / command.txt
Created May 7, 2017 07:46
Command Line to install Sublime Text on Ubuntu 16.04
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
sudo ln -s /usr/lib/sublime-text-3/sublime_text /usr/local/bin/sublime
@siddhantmedar
siddhantmedar / flux.txt
Created May 7, 2017 07:58
Command Line to install flux on Ubuntu
sudo add-apt-repository ppa:nathan-renniewaldock/flux
sudo apt-get update
sudo apt-get install fluxgui
To uninstall:
sudo apt-get remove fluxgui
@siddhantmedar
siddhantmedar / tensorflow.txt
Created September 20, 2017 13:02
TensorFlow Installation commands
TensorFlow Installation commands:
For Python 3.5.2
There is a CPU and a GPU version, you can install either or both if you wish so. The commands are as follows:
CPU:
pip install --upgrade
https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
@siddhantmedar
siddhantmedar / uninstall_eclipse.txt
Created December 28, 2017 03:28
Uninstall Eclipse installed using Ubuntu-make (umake)
umake ide eclipse --remove
@siddhantmedar
siddhantmedar / deluge.txt
Created December 28, 2017 03:30
Install Deluge on Ubuntu
sudo apt-get install deluge
@siddhantmedar
siddhantmedar / PyTorch_Install.txt
Created June 12, 2018 16:03
PyTorch CPU Windows 10 x64 [Working]
conda install -c peterjc123 pytorch-cpu
#Install OpenCV on ubuntu 18.04
python -m pip install opencv-python
@siddhantmedar
siddhantmedar / Jupyter_Notebook_CMD_fix
Created November 30, 2019 17:10
Fix! Error while opening Jupyter Notebook from Windows Command Prompt
When an attempt is made to open Jupyter Notebook using Command Prompt, an error is displayed. The solution to this problem is to launch Jupyter Notebook either from Anaconda Command Prompt OR Anconda Navigator
@siddhantmedar
siddhantmedar / Prefix Tree.py
Created March 20, 2022 04:28
Implementation of Prefix Tree (Trie) in Python along with insert and search operations
class Trie:
def __init__(self):
self.children = {}
self.isEnd = False
def insert(self, word):
curr = self
for w in word:
if w not in curr.children:
curr.children[w] = Trie()
@siddhantmedar
siddhantmedar / Custom Comparator.py
Created June 22, 2022 18:58
Custom comparator implementation for sorting array
import functools
item = [4, 5, 13, 1, 2, 7]
def cmp(a, b):
if a < b:
return -1
elif a == b:
return 0