Skip to content

Instantly share code, notes, and snippets.

:octocat:

Alex Liberzon alexlib

:octocat:
Block or report user

Report or block alexlib

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View x_y_to_row_col.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexlib
alexlib / quiver_demo.py
Created Dec 2, 2019
Matplotlib quiver from stackoverflow
View quiver_demo.py
from __future__ import division, print_function
import numpy as np
import matplotlib.pyplot as plt
def elec_field(x, y, x_coords=[0], y_coords=[0], charges=[1]):
Ex = np.zeros_like(x)
Ey = np.zeros_like(x)
for x0, y0, q in zip(x_coords, y_coords, charges):
R = np.sqrt((x - x0)**2 + (y - y0)**2) + 1e-6
@alexlib
alexlib / distributing_cython_pypi
Created Dec 1, 2019
distributing cython pypi from stackoverflow
View distributing_cython_pypi
try:
from Cython.Distutils.extension import Extension
from Cython.Distutils import build_ext
except ImportError:
from setuptools import Extension
USING_CYTHON = False
else:
USING_CYTHON = True
ext = 'pyx' if USING_CYTHON else 'c'
@alexlib
alexlib / Install
Created Nov 29, 2019 — forked from ines/Install
Streamlit + spaCy
View Install
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
View test_csv_pivpy.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View keybase.md

Keybase proof

I hereby claim:

  • I am alexlib on github.
  • I am alexlib (https://keybase.io/alexlib) on keybase.
  • I have a public key ASCMZvcpYLbfHCUbqGKfkuId-M472xiBcYsVcTxD2juRQgo

To claim this, I am signing this object:

View openpiv_test.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexlib
alexlib / openpiv_test.ipynb
Last active Oct 1, 2019
openpiv-test.ipynb
View openpiv_test.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexlib
alexlib / mapread.c
Created Aug 31, 2019 — forked from marcetcheverry/mapread.c
mmap and read/write string to file
View mapread.c
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <unistd.h>
int main(int argc, const char *argv[])
{
View openpiv_gpu.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.