Skip to content

Instantly share code, notes, and snippets.

View nipunsadvilkar's full-sized avatar
:octocat:
Focusing

Nipun Sadvilkar nipunsadvilkar

:octocat:
Focusing
View GitHub Profile
@nipunsadvilkar
nipunsadvilkar / youtube-dl_playlist_download.md
Last active April 3, 2017 11:33
Data8 Fall 2016 youtube playlist download | Lecture 5 - 40

Data8 Fall 2016 youtube playlist download : Lecture 5 - 40:

youtube-dl --playlist-items 5-40 -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/playlist\?list\=PLFeJ2hV8Fyt7mjvwrDQ2QNYEYdtKSNA0y

When error occurs and you want to retry the download automatically, save following lines as youtube_download_retry.sh and run it using $./youtube_download_retry.sh. change the 100 times retry to desired range.

#!/usr/bin/env bash
@nipunsadvilkar
nipunsadvilkar / spacevimrc
Created February 18, 2017 14:18
VIM and Tmux dotfiles
" You can enable the existing layers in space-vim and
" exclude the partial plugins in a certain layer.
" The command Layer and Exlcude are vaild in the function Layers().
function! Layers()
" Default layers, recommended!
Layer 'fzf'
Layer 'unite'
Layer 'better-defaults'
Layer 'emoji'
@nipunsadvilkar
nipunsadvilkar / Software Writing Skills for Your Research - Workshop.md
Created December 20, 2016 10:33
Software Writing Skills for Your Research - Workshop all levels
@nipunsadvilkar
nipunsadvilkar / Optimization_visualisation_python.md
Last active December 19, 2016 10:47
Awesome visualisations of Optimisation in python
@nipunsadvilkar
nipunsadvilkar / list_element_replace_AsPer_dict.py
Created July 22, 2016 06:10
Replacing list elements with key:value elements of dictionary
substitute_dictionary = {'EmaIL':'Email ID','PhOne':'Telephone No.','CIty':'City/country'}
list_elements = ['EmaIL','PhOne','CIty']
replaced_list_elements = [substitute_dictionary.get(element,item) for element in list_elements]
print 'Original List:',list_elements
print 'List elements replaced as per dictionary o/p:',replaced_list_elements
# Original List: ['EmaIL', 'PhOne', 'CIty']
# List elements replaced as per dictionary o/p: ['Email ID', 'Telephone No.', 'City/country']
@nipunsadvilkar
nipunsadvilkar / 0_reuse_code.js
Created July 15, 2016 17:56
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console