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 / 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
@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 / Optimization_visualisation_python.md
Last active December 19, 2016 10:47
Awesome visualisations of Optimisation in python
@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 / 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 / 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 / Different_style_guide_python.md
Created March 23, 2017 07:10
What is the standard Python docstring format?

Formats

Python docstrings can be written following several formats as the other posts showed. However the default Sphinx docstring format was not mentioned and is based on reStructuredText (reST). You can get some information about the main formats in that tuto.

Note that the reST is recommended by the PEP 287

There follows the main used formats for docstrings.

- Epytext

@nipunsadvilkar
nipunsadvilkar / Different_style_guide_python.md
Last active July 10, 2024 08:10
What is the standard Python docstring format?

Formats

Python docstrings can be written following several formats as the other posts showed. However the default Sphinx docstring format was not mentioned and is based on reStructuredText (reST). You can get some information about the main formats in that tuto.

Note that the reST is recommended by the PEP 287

There follows the main used formats for docstrings.

- Epytext

@nipunsadvilkar
nipunsadvilkar / Superset.md
Last active March 28, 2017 11:58
Superset analysis

Superset (previously known as Caravel):

1) Responsiveness of Dashboard:

On Desktop:

alt-img