Skip to content

Instantly share code, notes, and snippets.

View matheusportoo's full-sized avatar
💭
¯\_(ツ)_/¯

Matheus Porto matheusportoo

💭
¯\_(ツ)_/¯
View GitHub Profile
@matheusportoo
matheusportoo / Convert .mov or .MP4 to .gif.md
Created June 17, 2025 16:43 — forked from SheldonWangRJT/Convert .mov or .MP4 to .gif.md
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

#!/bin/bash
clear
function print_message () {
# $1 -> message
# $2 -> color
# $3 -> \n
case "$2" in
"1") echo -e "\e[31m$1\e[0m $3" ;; # 1.red
@matheusportoo
matheusportoo / notations.md
Created February 18, 2020 12:24
React Architecture

react architecture

- components/
- graphql/
- hooks/
- layouts/
- pages/
- routes/
- server/

Plano de carga

no load da página realiza duas requisões:

  • Listagem cargas.

    • url: /api/branches/300/shipments
    • query string: ?limit=50&offset=0&date=2020-02-07
  • Listagem datas

  • url: /api/branches/300/weekdays

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
FROM node:lts-alpine
RUN mkdir -p /home/node/api/node_modules && chwn -R node:node /home/node/api
WORKDIR /home/node/api
COPY package.json yarn.* ./
USER node
@matheusportoo
matheusportoo / gist:e8892abfae347de825402ed6e5117f7a
Created June 7, 2019 17:23 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
query ProductsSearchPage(
$term: String!,
$first: Int,
$department: String,
$brands: [String],
$size_types: SizeTypesSearchFilter
) {
search(products: {
term: $term,
filters: {
@matheusportoo
matheusportoo / best-practices.md
Last active February 14, 2019 18:08
React - Best practices

Estrutura de pastas

Estrutura baseado na proposta do João: Lucid Chart

app/javascript
  |- packs
  |- shared
    |- utils
      |- emitter.js
@matheusportoo
matheusportoo / query.graphql
Created January 17, 2019 18:24
Github API GraphQL
# https://developer.github.com/v4/explorer/
query getUserGists($first: Int, $last: Int, $after: String, $before: String) {
viewer{
email
gists(first: $first, after: $after, before: $before, last: $last) {
pageInfo {
endCursor
hasNextPage
hasPreviousPage