#…or create a new repository on the command line
echo "# test-lol" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:pazthor/test-lol.git
git push -u origin main
| <?php | |
| namespace App\Services; | |
| use GuzzleHttp\Exception\GuzzleException; | |
| class GetCustomer | |
| { | |
| private $token; |
#…or create a new repository on the command line
echo "# test-lol" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:pazthor/test-lol.git
git push -u origin main
| #!/usr/bin/env bash | |
| ##? supuestos: | |
| ##? Use Linux, systemd, tengas permisos de super usuario | |
| ##? source: https://wiki.archlinux.org/title/Xorg/Keyboard_configuration#Using_X_configuration_files | |
| localectl status | |
| localectl --no-convert set-x11-keymap us "" altgr-intl ctrl:swapcaps |
| import sys | |
| from time import sleep | |
| import random | |
| import cursor | |
| class Renderer: | |
| def __init__(self, width, height): |
| //fsx | |
| // sumar una lista de elementos elevados al qubo | |
| let square n= n*n | |
| let alCubo n = (square n) * n | |
| alCubo (-3) | |
| alCubo (abs -3) | |
| let list = [1;2;3;4] | |
| let list' = [-2 .. 2] |
| # Esta es una lista de problemas que hice en hacker rank como prueba tecnica para una empresa. | |
| # Arrays: Left Rotation | |
| # a es uin arreglo, d es el número de veces a rotar. | |
| def rotLeft(a, d): | |
| return a[d:] + a[:d] | |
| # New Year Chaos | |
| # queue: una lista de elementos |
| SUBSYSTEMS=="input", ATTRS{name}=="Keychron K2", RUN+="/bin/sh -c 'echo 0 > /sys/module/hid_apple/parameters/fnmode'" |
| export const FetchPost = async (url = "", data = {}, sessionToken = "") => { | |
| const errorFetchCode = 2; | |
| const errorServerCode = 1; | |
| const notErros = 0; | |
| const POST = "POST"; | |
| const errorFetch = "TypeError: Failed to fetch"; | |
| const rawResponse = await fetch(url, { | |
| method: POST, | |
| headers: { |