Skip to content

Instantly share code, notes, and snippets.

@michellephung
michellephung / sublime-command-line.md
Created February 2, 2016 22:07 — forked from adrianorsouza/sublime-command-line.md
launch sublime text from the command line

Launch Sublime Text from the command line on OSX

Sublime Text includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.

Requirements

  • Sublime text 2 or 3 installed in your system within Applications folder

Setup

@fomightez
fomightez / added_clearing.py
Last active January 19, 2022 07:59
Fixing the artifact of the two plots showing by adding clearing at right point. Via `plt.cla()`. see https://stackoverflow.com/q/70761535/8508004
import scipy.integrate
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
plt.rcParams["animation.html"] = "jshtml"
plt.rcParams['figure.dpi'] = 150
plt.ioff()
def showConvolution(t0, f1, f2):
# Calculate the overall convolution result using Simpson integration