Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nicoguaro
nicoguaro / cuerda_rigida.ipynb
Last active July 17, 2021 22:12
FEM code for a stiff string
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nicoguaro
nicoguaro / phase_portrait.png
Last active March 10, 2022 12:06
Phase portrait for a system with a strange critical point.
phase_portrait.png
@nicoguaro
nicoguaro / ecuacion_onda_FD.ipynb
Last active April 10, 2021 20:52
Propagación de una onda en una cuerda con diferencias finitas.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Cumulative deaths Fall in GDP
0 1.73
5 0.36
7 -13.41
9 -4.41
13 -8.45
14 -13.09
20 -9.23
28 -14.18
34 -7.23
@nicoguaro
nicoguaro / neon_example.png
Last active March 19, 2024 06:03
Plots with neon-glow in Matplotlib.
neon_example.png
@nicoguaro
nicoguaro / Generators.txt
Created August 27, 2020 15:44
Visualization of polytopes in Python.
0 1 2 3 4
0 1 5
0 5 6
0 6 7
0 7 8
0 3 9 10
0 8 11
0 9 11
9 12 13
12 13 14 15
@nicoguaro
nicoguaro / block_uniform load.py
Last active March 31, 2022 17:39
SolidsPy scripts
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Block with different loading and constraint conditions.
This examples runs with the developing version of SolidsPy (2.0).
@author: Nicolás Guarín-Zapata
@date: July 2020
"""
@nicoguaro
nicoguaro / cifrado_corrimiento.py
Created June 25, 2020 16:46
Cifra un mensaje haciendo un corrimiento hacia la derecha o izquierda.
# -*- coding: utf-8 -*-
"""
Cifra una mensaje haciendo un corrimiento del alfabeto.
@author: Nicolás Guarín-Zapata
"""
ALFABETO = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
'm', 'n', 'ñ', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
'x', 'y', 'z']
@nicoguaro
nicoguaro / environment.yml
Created May 20, 2020 20:46
Polyscope example.
name: polyscope
channels:
- conda-forge
- default
dependencies:
- python>=3.6
- numpy
- scipy
- matplotlib>=2.0
- polyscope