Skip to content

Instantly share code, notes, and snippets.

@g1stavo
g1stavo / gist:2103383f1621230b04b35d1c0b93d29e
Last active November 1, 2019 19:54
Frases hostis do quadro
2018
"Gosto de terminar as coisas numa sentada só" (KRIEGER, Iury)
"Ain, que grosseria" (CINHA, Lingui)
"Reskin não é pastel" (PUTO, Claudinho)
"Nossa, que lindo" (CINHA, Lingui)
"Validação em excesso nunca é ruim" (SÂNGELA, Ro)
"Pega a régua e levanta o pau!" (PEOPLEWARE, Letícia)
"Sim, eles são chatos" (JUAN)
"Ninguém programa PHP direito" (GABRIEL)
"Lógico, não foi feito pra programar direito" (PREUSS)

Task Info

Title: Adaptar mail para suportar https

Link: https://app.asana.com/0/24457451196652/542003220566791/f

Tags: ATD CC:Mail T1

Description: Verificar se todos os links são protocol free ou https (atenção da reconstrução de cart), se todas as funções e os CSS são protocol free ou https e estão disponíveis em https.

Solution

@g1stavo
g1stavo / randomizer.js
Created November 29, 2018 17:52
$ groups=X min=X node randomizer.js
const env_groups = process.env.groups;
const env_min = process.env.min;
let participants = [
'Juliana',
'Christian',
'Gleice',
'Gustavo',
'Denise',
'Eduardo',
| / \ .-.
| / \ / \ .-. .-. _ _
+--/-------\-----/-----\-----/---\---/---\---/-\-/-\/\/---
| / \ / \ / '-' '-'
|/ '-' '-'
@g1stavo
g1stavo / 2
Last active May 2, 2019 04:07
\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \
\__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__
__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\
\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \
\__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__
__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\
\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \
\__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__
__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\
\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \__\ \
name: 'Auto assign PRs'
description: 'Auto assign pull requests'
author: '<seu usuário>'
# Exemplo: author: 'delivery-much'
branding:
icon: 'code'
color: 'yellow'
inputs:
token:
description: 'GitHub token'
const { getInput, setFailed } = require('@actions/core')
const { handle } = require('./github')
// Run Action.
const run = async () => {
try {
const token = getInput('token', { required: true })
await handle(token)
} catch (error) {
setFailed(error.message)
const { context, getOctokit } = require('@actions/github')
/**
* Creates Octokit instance and assign.
*
* @param {string} token - GitHub token
*/
const handle = async (token) => {
if (context.eventName === 'pull_request') {
const octokit = getOctokit(token)
"scripts": {
"package": "ncc build src/index.js -o dist"
},
npm run package
git add action.yml README.md src/index.js src/github.js package.json .gitignore
git commit -m "Add Action files"
git push origin master
git tag v1
git push origin v1