Skip to content

Instantly share code, notes, and snippets.

View alexlib's full-sized avatar
:octocat:
Working

Alex Liberzon alexlib

:octocat:
Working
View GitHub Profile
@berkorbay
berkorbay / github_desktop_ubuntu.md
Last active May 19, 2025 08:58
To install Github Desktop for Ubuntu

IMPORTANT

See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)

For the sake of "maintaining the tradition" here is the updated version.

@ines
ines / Install
Last active September 21, 2023 17:14
Streamlit + spaCy
pip install streamlit
pip install spacy
python -m spacy download en_core_web_sm
python -m spacy download en_core_web_md
python -m spacy download de_core_news_sm
@r-barnes
r-barnes / mask_creator.py
Last active May 8, 2023 16:25 — forked from tonysyu/mask_creator.py
Tool to create polygon mask in Matplotlib
"""
Interactive tool to draw mask on an image or image-like array.
Adapted from matplotlib/examples/event_handling/poly_editor.py
"""
import numpy as np
# import matplotlib as mpl
# mpl.use('tkagg')
import matplotlib.pyplot as plt
@yhilpisch
yhilpisch / 01_overview.md
Last active July 22, 2019 04:10
Gist for the For Python Quants Bootcamp in New York City, May 2017

For Python Quants Bootcamp

This is the Gist the FPQ bootcamp in New York, 08.-11. May 2017 (http://fpq.io)

Notebooks & Code Files

Additional files (eg Jupyter Notebooks) are found under:

@kidpixo
kidpixo / MOLA_datashader.ipynb
Created September 30, 2016 16:28
MOLA_datashader.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phaustin
phaustin / matlab_notebook.ipynb
Last active February 20, 2021 08:26 — forked from macd/gist:10562695
Chapter 1 A Brief Tutorial. A direct translation of Chapter 1 of D.J. Higham and N.J. Higham, MATLAB Guide (2005)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jfpuget
jfpuget / Julia_Python_perf.ipynb
Last active April 15, 2022 11:55
An exercise in Python optimization: make Python benchmarks as fast, if not faster, than Julia.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexlib
alexlib / loadpivlabmat.m
Created January 15, 2016 15:00
Load PIVLab MAT files into PIVMAT
directory = '~/Desktop/ariel_piv/test_7_res';
fileList = dir(fullfile(directory,'test_7_*.mat'));
a = repmat(struct('x',[],'y',[],'vx',[],'vy',[],'choice',[],...
'unitx','px','unity','px','namex','x','namey','y',...
'unitvx','px/dt','unitvy','px/dt','namevx','vx','namevy','vy',...
'pivmat_version','3','ysign','','Attributes','',...
'name','','setname','','history',{{'PIVLab1.4'}},'source',''),1,length(fileList));
@wolever
wolever / spectrogram.py
Last active September 28, 2015 20:29 — forked from maurisvh/spectrogram.py
ANSI art spectrogram viewer that reads audio from a microphone
#!/usr/bin/python
import numpy
import pyaudio
import sys
WIDTH = 79
BOOST = 1.0
@mick001
mick001 / heatEquation.py
Created August 28, 2015 19:05
Heat Equation: a Python implementation (part 1). Full article can be found at http://www.firsttimeprogrammer.blogspot.com/2015/07/the-heat-equation-python-implementation.html
import numpy as np
from numpy import pi
import matplotlib.pyplot as plt
import matplotlib.animation as animation
fig = plt.figure()
fig.set_dpi(100)
ax1 = fig.add_subplot(1,1,1)
#Diffusion constant