Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
#
# Como `git grep`, pero Imprime una tabla solo con el nombre de las funciones
# que ocupan la expresion.
#
# Copyright (C) 2025 Ian Mejias
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
" vim:fdm=marker
" 0. CORE {{{1
" »»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
" Enable true color 启用终端24位色
if exists('+termguicolors')
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
@IanMejias
IanMejias / solucion_ejer_numpy.py
Last active November 21, 2016 00:56
Una posible solución al ejercicio propuesto en la diapositiva de Numpy
# -*- coding: utf-8 -*-
# Genere un programa en Python que lea dos matrices de dos archivos de texto
# (matrizA.txt y matrizB.txt) y con ellas:
#
# - Verifique que tienen dimensiones válidas para ser multiplicadas
# - Realice el cálculo de la multiplicación
# - Escriba el cálculo de la multiplicación en un archivo de texto
# “resultado.txt”
#
#!/bin/sh
exec < /dev/tty
./.git/hooks/validate_commit.rb $1