Skip to content

Instantly share code, notes, and snippets.

View asnramos's full-sized avatar

Ariel Silvio Norberto RAMOS asnramos

  • JupyterLATAM, PythonNorte, SciPyLatam/Argentina, Python_Cientifico.-
  • Ciudad de Salta, Argentina
  • X @arielsilvionr
View GitHub Profile
import inspect
import json
from typing import Dict, TypeVar
SerializableDataType = TypeVar(
"SerializableDataType",
bound="Serializable"
)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@asnramos
asnramos / Photo_Effects_Sine_code.py
Created July 23, 2020 04:34
Sine wave foto effects animation
from PIL import Image
import numpy as np
import matplotlib.pyplot as pyplot
import matplotlib.animation as animation
fle = "Jup" # File name
img = Image.open("C:\\Users\\Rober\\Desktop\\"+fle+".png") # Works only with png files - adjust to your directory
# Number of horizontal and vertical lines
h = img.size[0]
@asnramos
asnramos / Photo_Effects_Sine_code_2.py
Created July 23, 2020 04:33
Sine wave distortion - both axis
from PIL import Image
import numpy as np
import matplotlib.pyplot as pyplot
import matplotlib.animation as animation
fle = "Vermeer" # File name
img = Image.open("C:\\Users\\Rober\\Desktop\\"+fle+".png") # Works only with png files - adjust to your directory
# Number of horizontal and vertical lines
h = img.size[0]
@asnramos
asnramos / Lines_interference.py
Created July 23, 2020 04:31 — forked from Especuloide/Lines_interference.py
Interference pattern animation
import numpy as np
import matplotlib.pyplot as pyplot
import matplotlib.animation as animation
pyplot.style.use("dark_background")
fig, g = pyplot.subplots(figsize=(6,6))
pyplot.subplots_adjust(top = 1.0, left = 0.00, right = 1.0, bottom = 0.00)
@asnramos
asnramos / Sorting_Bubble.py
Created July 23, 2020 04:26
Sorting algo
import random
import matplotlib.animation as animation
from matplotlib import pyplot
import numpy as np
### Plot adjusting
pyplot.style.use("ggplot")
fig, g = pyplot.subplots(figsize=(9,6))
pyplot.subplots_adjust(top = 0.93, left = 0.07, right = 0.93, bottom = 0.07)
pyplot.rcParams['axes.facecolor'] = "gray"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.