Skip to content

Instantly share code, notes, and snippets.

View robertoandres24's full-sized avatar
🏠
Working from home

Roberto Obando robertoandres24

🏠
Working from home
View GitHub Profile
@eolant
eolant / Confirm.vue
Last active July 29, 2024 18:14
Vuetify Confirm Dialog component that can be used locally or globally
<template>
<v-dialog v-model="dialog" :max-width="options.width" :style="{ zIndex: options.zIndex }" @keydown.esc="cancel">
<v-card>
<v-toolbar dark :color="options.color" dense flat>
<v-toolbar-title class="white--text">{{ title }}</v-toolbar-title>
</v-toolbar>
<v-card-text v-show="!!message" class="pa-4">{{ message }}</v-card-text>
<v-card-actions class="pt-0">
<v-spacer></v-spacer>
<v-btn color="primary darken-1" text @click.native="agree">Yes</v-btn>
@GhazanfarMir
GhazanfarMir / Instructions.sh
Last active December 22, 2024 01:12
Install PHP7.2 NGINX and PHP7.2-FPM on Ubuntu 16.04
########## Install NGINX ##############
# Install software-properties-common package to give us add-apt-repository package
sudo apt-get install -y software-properties-common
# Install latest nginx version from community maintained ppa
sudo add-apt-repository ppa:nginx/stable
# Update packages after adding ppa
@nickgrealy
nickgrealy / slack_emoticons_to_html_unicode.json
Created August 17, 2018 06:20
slack_emoticons_to_html_unicode.json
{
"+1": "&#x1F44D;",
"-1": "&#x1F44E;",
"100": "&#x1F4AF;",
"1234": "&#x1F522;",
"8ball": "&#x1F3B1;",
"ab": "&#x1F18E;",
"abc": "&#x1F524;",
"abcd": "&#x1F521;",
"accept": "&#x1F251;",
@robertoandres24
robertoandres24 / async-await.js
Created November 6, 2018 21:08 — forked from wesbos/async-await.js
Simple Async/Await Example
// πŸ”₯ Node 7.6 has async/await! Here is a quick run down on how async/await works
const axios = require('axios'); // promised based requests - like fetch()
function getCoffee() {
return new Promise(resolve => {
setTimeout(() => resolve('β˜•'), 2000); // it takes 2 seconds to make coffee
});
}
@seachai
seachai / gist:948ed1eeafa32ce03db6685edb879f71
Last active May 9, 2025 07:00
iTerm 2 Natural Text Editing Preset
On iTerm2 - Open Preferences > Profiles > Keys > Key Mappings > Presets > Select Natural Text Editing
- You can move a word backwards using Option βŒ₯ + ← and a word forwards using Option βŒ₯ + β†’
- Move to the start of the line using fn + ← and to the end of the line with fn + β†’.
- Also you can delete a word backwards using Option βŒ₯ + ⌫, delete the whole line using Command ⌘ + ⌫.
If the preset doesn't appear, reinstall iTerm2. If you installed it using Homebrew + Cask:
brew cask reinstall iterm2
@silver-xu
silver-xu / ts-boilerplate.md
Last active May 3, 2025 23:57
Setup a Node.js project with Typescript, ESLint, Prettier, Husky

Setup a Node.js project with Typescript, ESLint, Prettier, Husky

1_D8Wwwce8wS3auLAiM3BQKA

Starting a personal node project could be easy; starting a team node project could be challenging.

I am a developer currently working in SEEK Australia.

In my experience, common mistakes developer make when starting a projects are:

  • No Linting
@robertoandres24
robertoandres24 / .eslintrc.json
Last active November 14, 2020 02:40
create react app typescript eslint+prettier config
{
"env": {
"browser": true,
"es6": true
},
"extends": ["react-app", "prettier"],
"plugins": ["react", "prettier"],
"parserOptions": {
"ecmaVersion": 2018
},