Skip to content

Instantly share code, notes, and snippets.

View igortrinidad's full-sized avatar
🎯
Focusing

Igor Trindade igortrinidad

🎯
Focusing
View GitHub Profile
@igortrinidad
igortrinidad / cloudSettings
Created September 12, 2019 17:18
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-09-12T17:18:04.995Z","extensionVersion":"v3.4.2"}
@igortrinidad
igortrinidad / MainApollo.js
Created July 14, 2020 13:40
Vue Apollo multiple endpoint setup
import Vue from 'vue'
import VueApollo from 'vue-apollo'
import { InMemoryCache } from 'apollo-cache-inmemory'
import { ApolloClient } from 'apollo-client'
const cache = new InMemoryCache()
// Install the vue plugin
Vue.use(VueApollo)
@igortrinidad
igortrinidad / gist:8a910283b3416146970d88e741a0e93f
Created October 5, 2020 15:47
Simulação criação conta company e transferência wirecard
Payload / dados da requisição para criar uma company
wirecardAccount = {
type: 'MERCHANT',
transparentAccount: true,
email: { address: '[email protected]' },
person: {
name: 'IGOR LUCAS',
birthDate: '1986-06-18',
taxDocument: { type: 'CPF', number: '12805364627' },
phone: { countryCode: '55', areaCode: '31', number: '91455975' },
@igortrinidad
igortrinidad / docker-compose.yaml
Created December 15, 2020 16:09
Nginx not restarting with docker compose daemon
version: "3"
services:
app:
build: .
container_name: cee_app
ports:
- "3333:3333"
environment:
@igortrinidad
igortrinidad / Dockerfile
Created December 16, 2020 00:56
CEE Docker setup with postgres, redis, nginx e certbot
FROM node:13.7.0
USER root
WORKDIR /app
COPY package*.json ./
RUN npm install
<template>
<div class="flex justify-center w-full h-full p-3 rounded-b-lg">
<div
class="flex flex-col items-center justify-center mx-2 cursor-move"
v-for="(option, index) in game.options"
:key="option.id"
draggable="true"
@dragstart="dragStart(index)"
@dragover="dragOver(index)"
@dragend="dragEnd"
@igortrinidad
igortrinidad / TailwindCarouselSwiper.vue
Created November 18, 2021 21:15
Tailwind Carousel Swiper Example
<template>
<ReportWithHeader
:title="getSelectedPlayer ? getSelectedPlayer.name : ' '"
>
<div class="h-full w-full relative overflow-x-hidden rounded" id="swiper-section">
<div class="w-full h-full absolute z-20 flex items-center justify-between">
<button
@click="setPlayer('left')"
:disabled="selectedPlayerIndex == 0"
class="rounded-full bg-smoke flex items-center justify-center p-1 text-white">
@igortrinidad
igortrinidad / Installation.md
Last active July 6, 2022 10:03
Install android cmdline-tools on wsl ubuntu to build Cordova Apps

Install android cmdline-tools on wsl ubuntu to build Cordova Apps

Notice! Run one command line at a time

After I have discovered the wonder called VS Code, I have been hooked to it. It's my goto editor for any project now. The convenience of having file browsing, editing with plethora of extensions, integrated terminal, and on top of that the existence of WSL means I do not need to switch Windows often. It takes the clutter out of my way.

However, this post is not about VS Code. It is about how to setup Android SDK on WSL, so that Android development can be done in a Linux system without actually having an access to one. And move the entire development work to VS Code instead of Android studio.

USUAL GOOGLE SEARCHES

If you search on Google on how to achieve this, most likely this gist will be in top five results. It covers the most crucial points, but it is a little old by now.

@igortrinidad
igortrinidad / Currencies.json
Last active December 16, 2024 11:37
Global currencies json array
[
{
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@igortrinidad
igortrinidad / MultipartUploadService.ts
Created January 21, 2024 20:02
Multipart upload chunk
import Application from '@ioc:Adonis/Core/Application'
import fs from 'fs'
import fsPromises from 'fs/promises'
import ffmpeg from 'fluent-ffmpeg'
export default class MultipartUploadService {
public stream: any = null
public file_name: string = ''
public chunk_index: number = 0