Skip to content

Instantly share code, notes, and snippets.

@prabathbr
prabathbr / matplotlib_identity_line.py
Created September 2, 2022 03:30 — forked from twolodzko/matplotlib_identity_line.py
Identity line for matplotlib
import matplotlib.pyplot as plt
def identity_line(ax=None, ls='--', *args, **kwargs):
# see: https://stackoverflow.com/q/22104256/3986320
ax = ax or plt.gca()
identity, = ax.plot([], [], ls=ls, *args, **kwargs)
def callback(axes):
low_x, high_x = ax.get_xlim()
low_y, high_y = ax.get_ylim()
low = min(low_x, low_y)
@prabathbr
prabathbr / blogspot_to_jekyll.rb
Last active July 22, 2021 03:18 — forked from RobbiNespu/blogspot_to_jekyll.rb
added <require 'httparty'> , created "setup.sh" which will make a ruby environment , fixed script error with invalid post names
#!/usr/bin/env ruby
#
# Convert blogger (blogspot) posts to jekyll posts
#
# Basic Usage
# -----------
#
# ./blogger_to_jekyll.rb feed_url
#
# where `feed_url` can have the following format: