Skip to content

Instantly share code, notes, and snippets.

View carlosal1015's full-sized avatar
🇵🇪
Studying mathematics

Oromion carlosal1015

🇵🇪
Studying mathematics
View GitHub Profile
.ipynb_checkpoints/
@carlosal1015
carlosal1015 / renew-gpgkey.md
Created January 13, 2023 21:28 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@carlosal1015
carlosal1015 / matplotlib_animation_wave.py
Created December 12, 2022 04:07 — forked from ciscorn/matplotlib_animation_wave.py
matplotlib animation:: 1-d & 2-d wave equation
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.pylab import plt
from matplotlib import animation, cm
import numpy as np
from scipy.signal import convolve, convolve2d
class Wave1D:
K = np.array([1, -2, 1])
@carlosal1015
carlosal1015 / test.py
Last active November 8, 2022 03:19
dolfinx
#!/usr/bin/env python
# https://fenicsproject.discourse.group/t/sudden-arity-mismatch-when-defining-non-linear-problem/8844/11
from mpi4py import MPI
from dolfinx import fem, mesh
import numpy as np
import ufl
from petsc4py.PETSc import ScalarType
import matplotlib.pyplot as plt
@carlosal1015
carlosal1015 / double.py
Created October 19, 2022 02:07 — forked from carlozamagni/double.py
Python support for IEEE 754 double-precision floating-point numbers.
# double.py
# Copyright (C) 2006, 2007 Martin Jansche
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, distribute with modifications, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@carlosal1015
carlosal1015 / README.md
Last active September 14, 2022 21:36
logo brainstorm

@carlosal1015
carlosal1015 / README.md
Last active September 7, 2022 17:05
python-fenics-dolfinx 0.5.0
@carlosal1015
carlosal1015 / 0001-Add-support-for-OpenCL.patch
Last active December 6, 2023 15:13
Testing petsc-complex
From e27595cdb44d18fc0c86cce0bdfbeb5189976f84 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carlos=20Aznar=C3=A1n?= <[email protected]>
Date: Wed, 6 Dec 2023 10:13:04 -0500
Subject: [PATCH] Add support for OpenCL
---
.SRCINFO | 4 +++-
PKGBUILD | 6 ++++--
test_optdepends.sh | 11 +++++++++++
3 files changed, 18 insertions(+), 3 deletions(-)
@carlosal1015
carlosal1015 / python-islpy-2022.2.1.log
Created July 19, 2022 16:13
python-islpy-2022.2.1 log
==> Making package: python-islpy 2022.2.1-1 (Tue Jul 19 11:06:19 2022)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...
Packages (10) python-apipkg-2.1.1-1 python-attrs-21.4.0-1 python-iniconfig-1.1.1-5 python-packaging-21.3-1 python-pluggy-1.0.0-1 python-py-1.11.0-1 python-pyparsing-3.0.9-1 python-tomli-2.0.1-1 imath-3.1.5-2 python-pytest-7.1.2-1
Total Download Size: 4.97 MiB
Total Installed Size: 32.44 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
@carlosal1015
carlosal1015 / clase-2-m-dulo-numpy-parte2-completa.ipynb
Created July 16, 2022 14:08
Clase#2 - M贸dulo Numpy Parte2 (Completa).ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.