Skip to content

Instantly share code, notes, and snippets.

View 0x14Rp's full-sized avatar
:octocat:
undefined

R ツ 0x14Rp

:octocat:
undefined
  • 127.0.0.1
  • Santiago Chile
  • X @0x14Rp
View GitHub Profile
@0x14Rp
0x14Rp / the_effective_engineer.md
Created January 24, 2023 21:39 — forked from jaimelr/the_effective_engineer.md
The Effective Engineer notes

Part 1: Adopt the Right Mindsets

Focus on High-Leverage Activities

How should we decide what actually to work on in order to more effectively achieve our goals? Assess the activities' leverage:

Leverage =  (Impact Produce) / (Time Invested)

Another way of thinking about leverage is the commonly-mentioned Pare- to principle, or 80–20 rule—the notion that for many activities, 80% of the im- pact comes from 20% of the work.

@0x14Rp
0x14Rp / kitty.conf
Created April 23, 2022 21:54 — forked from sts10/kitty.conf
My config file for Kitty Terminal Emulator
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
font_family JetBrains Mono Medium
bold_font JetBrains Mono Bold
@0x14Rp
0x14Rp / init.vim
Created April 23, 2022 21:53 — forked from sts10/init.vim
One init.vim for both Mac and Linux
" call plug#begin('~/.vim/plugged')
call plug#begin('~/.config/nvim/plugged')
" Basics
Plug 'tpope/vim-commentary'
Plug 'sickill/vim-pasta'
Plug 'justinmk/vim-sneak'
Plug 'ervandew/supertab'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
@0x14Rp
0x14Rp / 📊 Weekly development breakdown
Last active November 16, 2022 19:51 — forked from antfu/📊 Weekly development breakdown
📊 Weekly development breakdown
Go 45 mins █████████████░░░░░░░ 51.2%
C 18 mins ███████░░░░░░░░░░░░░ 21.0%
TypeScript 15 mins ██████▒░░░░░░░░░░░░░ 17.8%
Java 8 mins ████▓░░░░░░░░░░░░░░░ 9.9%
@0x14Rp
0x14Rp / 1_README.md
Created May 3, 2021 16:28 — forked from salazarr-js/1_README.md
Validaciones avanzadas y personalizadas de formularios en Ionic 3 y Angular 4

Validaciones avanzadas y personalizadas de formularios en Ionic 3 y Angular 4

Los formularios son la piedra angular de nuestra aplicaciones, ya sean de escritorio, moviles o web, esto equivale a una interaccion entre el usuario y nuestra aplicacion, independiente de su fin, es la manera idónea con la que el usuario se puede comunicar con nuestra aplicacion.

Por consiguiente es de vital importancia validar la informacion que el usuario introduce en nuestros formularios, para evitar o prevenir posibles errores con dicha informacion. De igual manera es una excelente practica de experiencia de usuario, mostrarle o informarle al usuario que esta introduciendo un dato incorrecto o que se espera algun tipo de respuesta diferente.

Actualmente en Angular existen dos modos de validar los formularios, por modelo y por template, este ejemplo es por template o plantilla, puedes revisar el siguiente tutorial para aplicar tus validaciones en el modelo.

Los siguientes pasos son para ilustrar una maner

@0x14Rp
0x14Rp / hosting-on-github.md
Created July 26, 2020 03:01 — forked from TylerFisher/hosting-on-github.md
Basic steps for hosting on Github

Hey there, apparently people are still using this Gist from 2013! It's out of date! Consult the Github docs.

Steps for Hosting a Website on GitHub

  1. Create a GitHub account on github.com.
  2. Download either [GitHub for Mac][1] or [GitHub for Windows][2], depending on your operating system. Open the app and log in using the account you just created.
  3. (On Mac): After you login, click advanced and make sure that your name and email are correct. Then, click "Install Command Line Tools", just in case you want to start using the command line later in life.
  4. Create a new repository in your GitHub application. Name it your-username.github.io. The name is very important. Note the folder that GitHub is saving the repository to. Make sure the "Push to GitHub?" box is checked.
  5. Move your website's files into the folder that GitHub just created when you made the repository. IMPORTANT: Your homepage HTML file must be called "index.html", and it must exist in the top-level
@0x14Rp
0x14Rp / test.js
Last active July 17, 2020 19:06
example for recursive function 😉
const axios = require('axios');
const llamarApi = async (url,llamados = 0) => {
try {
const {data} = await axios.get(url);
console.log(data);
return data;
}catch (e) {
if (llamados > 5) {
return '';

service

@Injectable({
  providedIn: 'root'
})
export class UserService {

  constructor(
    private http: HttpClient

service

@Injectable({
  providedIn: 'root'
})
export class UserService {

  constructor(
    private http: HttpClient