Skip to content

Instantly share code, notes, and snippets.

View gnppro's full-sized avatar
🇲🇽

Gerardo Nava Pereda gnppro

🇲🇽
View GitHub Profile
@gnppro
gnppro / manjaro
Last active January 11, 2024 11:15
Manjaro Arch Linux
sudo pacman -Syu
https://wiki.manjaro.org/index.php/Configure_Graphics_Cards
https://wiki.archlinux.org/title/Vulkan
sudo mhwd -a [pci or usb connection] [free or nonfree drivers] 0300
https://wiki.archlinux.org/title/Xorg#AMD
https://wiki.archlinux.org/title/ATI
https://wiki.archlinux.org/title/AMDGPU
@gnppro
gnppro / gist:446bec676fd0de584748d1ddc8aa4b1b
Last active December 8, 2023 21:42
Tech Interview React
Counter component using react and typescript
1. Should display count.
2. Should have 3 buttons: "+", "-" and "reset" (reset should change counter to initial one).
3. Should be able to create different counter, with different initial count.
4. Should automaticaly reset counter after provided timeout. auto reset should happen if counter value didn't change for certain amount of time.
import { useState, useEffect } from 'react';
Cambiar a México
Educación
Nuevo sistema de aulas con computadoras e internet de alta velocidad
Tu educacuón depende única y exclusivamente de ti
Sistema 100% transparencia
Facturas, ingresos, egresos, gastos, inversiones, costos, estado de resultados de costos.
Parametrizar rangos de precios de mercados.
Catalogo público de productos y servicios
@gnppro
gnppro / gradients.css
Created October 22, 2021 05:08
Colors
background: linear-gradient(120deg,#540C78 0%,#4697E8 100%);
background: linear-gradient(120deg, #540C78 14%, #4697E8 91%);
@gnppro
gnppro / GRUB Menuentry.md
Last active April 23, 2021 03:09
Arch Linux - Manjaro

Put this in your /etc/grub.d/40_custom file:

menuentry 'Windows 10' {
    search --fs-uuid --no-floppy --set=root D464-A236
    chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}

Source: Grub2 menuentry for Windows 10 UEFI

@gnppro
gnppro / Ubuntu rbenv
Last active October 17, 2020 20:49 — forked from vtsatskin/Ubuntu rbenv
Installing Ruby 1.9.3 with OpenSSL on Ubuntu 11.04 using ruby-build and rbenv
# for more info: https://gist.github.com/1120938

FOLDER STRUCTURE FOR REACT

AVAILABLE SCRIPTS

In the project directory, you can run:

npm install | yarn install

This command install all packages, and any packages that it depends on. If the folder has a package-lock.json, the installation of dependencies will be driven by that.

@gnppro
gnppro / Custom Terminal - Ubuntu 20.04.md
Last active March 31, 2022 19:06
Customize the Ubuntu 20.04 LTS Command Line

Immutability in JS

Lo último que quería que hiciera cualquier programador es meterse con el estado interno, incluso si se presenta de forma figurada. Es lamentable que gran parte de lo que hoy se llama OOP es simplemente un estilo de programación antiguo con construcciones más elegantes.

Referential transparency

Una expresión se denomina referencialmente transparente si se puede reemplazar con su valor correspondiente sin cambiar el comportamiento del programa.

Persistent data structure

La estructura de datos persistentes es una estructura de datos que siempre conserva la versión anterior de sí misma cuando se modifica

@gnppro
gnppro / order.css
Created May 6, 2020 02:02
Orden para poder declarar CSS
Orden para poder declarar CSS
1.- Position
2.- Box model
3.- typography
4.- Visual
5.- Miscelanos