Skip to content

Instantly share code, notes, and snippets.

View Nifled's full-sized avatar
👀

Erick Delfin Nifled

👀
  • Mexico
View GitHub Profile
@davidteren
davidteren / nerd_fonts.md
Last active April 24, 2025 06:26
Install Nerd Fonts via Homebrew [updated & fixed]
@judaew
judaew / keychron_k2.adoc
Last active April 22, 2025 12:50
Keychron K2 Manual

Keychron K2 Manual

Connect Bluetooth

On the side of the keyboard, switch the toggle to Bluetooth. Press fn+1 3 seconds and pair with device named Keychron K2.

  • fn+1 connect to 1st device

  • fn+2 connect to 2nd device

  • fn+3 connect to 3rd device

@aleclarson
aleclarson / rollup-typescript.md
Last active February 28, 2025 16:13
The best Rollup config for TypeScript libraries

It's 2024. You should use tsup instead of this.


Features

🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs bundle
.d.ts bundle + type-checking

@rimatla
rimatla / TSLInt-Prettier-CreateReactApp-TypeScript-setup.md
Last active August 23, 2024 21:50
Create React App + TypeScript Linting with TSLint and Prettier setup on VSCode

Ps: The current setup was done on 01-04-19

Project Dependency Versions at the time 👇

  "react": "^16.7.0",
  "react-dom": "^16.7.0",
  "react-scripts": "2.1.3",
  "typescript": "^3.2.2"
  "tslint": "^5.12.0",
  "tslint-config-prettier": "^1.17.0",
@jeanpaulsio
jeanpaulsio / sorted_times.js
Last active January 10, 2018 09:02
Sorted Time Data
let new_times = all_times
.slice(0)
.sort((a, b) => a.time_block - b.time_block)
.reduce((obj, item) => {
if (!obj[item.day_string]) {
obj[item.day_string] = [item]
} else {
obj[item.day_string] = [
...obj[item.day_string],
item
// Como usar async await 😎
// Defines la función que lo encierra como async.
// Cualquier funcion que regrese una promise va a tener un await antes.
let asyncAwait = async () => {
await fetch('algo');
};
// Aun tenemos que manejar errores.
package Blockbuster;
public class App {
public static void main(String[] args){
Cliente ariel = new Cliente("Ariel Camacho");
Catalogo catalogo = new Catalogo();
Serie houseOfCards = catalogo.getSeriePorNombre("House Of Cards");
System.out.println("Antes de rentar: "+houseOfCards.toString());
@juhaelee
juhaelee / react-typescript.md
Last active May 28, 2024 17:41
React + Typescript Cheatsheet

React + Typescript Cheatsheet

Setup

If you use atom... download & install the following packages:

What are Typescript type definition files? (*.d.ts)

autoload -U add-zsh-hook
load-nvmrc() {
if [[ -f .nvmrc && -r .nvmrc ]]; then
nvm use
fi
}
add-zsh-hook chpwd load-nvmrc