Skip to content

Instantly share code, notes, and snippets.

View felipe-ssilva's full-sized avatar
😁
Solving problems

Felipe da Silva felipe-ssilva

😁
Solving problems
View GitHub Profile
@felipe-ssilva
felipe-ssilva / gist:6e8307f21d3af5d71f113b87b6de6f46
Last active November 18, 2023 20:08
SMS Colombia Two Factor

Github Two-Factor Authentication (2FA) for Colombia via SMS

O GitHub não provê o código para enviar SMS para a Colombia (+57). Para adicionar essa opção ao select, rode o código abaixo no console do seu navegador:

var colombia = document.createElement('option');
colombia.value = '+57';
colombia.appendChild(document.createTextNode('Colombia +57'));
document.querySelectorAll('#countrycode').forEach((select) => select.appendChild(colombia));
@felipe-ssilva
felipe-ssilva / CalendlyEmbedReact.js
Created July 6, 2020 18:57 — forked from oak-wildwood/CalendlyEmbedReact.js
Calendly Embed React component
import React from 'react';
class CalendlyEmbed extends React.Component {
calendlyScriptSrc = 'https://assets.calendly.com/assets/external/widget.js'
buildCalendlyUrl = (account, eventName) =>
`https://calendly.com/${account}/${eventName}`
componentDidMount() {
const head = document.querySelector('head')
const script = document.createElement('script')
@felipe-ssilva
felipe-ssilva / gist:2d1a77f3b9b8501862658d71117252e3
Created May 8, 2020 21:11 — 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:
@felipe-ssilva
felipe-ssilva / react-native-solving-problem.md
Created March 26, 2020 02:09
Solving problem in react native mac os 9

Solving problem in react native mac os 9

  • open the file node_modules/react-native/scripts/ios-configure-glog.sh in Sublime Text editor
  • change the line endings with View > Line Endings > Mac OS 9

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@felipe-ssilva
felipe-ssilva / good-practices.md
Last active October 15, 2019 22:23
Good practices

Branchs name

  • Always in english
  • Task type
    • Feature: for new implementations
    • Hotfix: for fast fixes or something not considered before
    • Bug: for bugs
  • Name pattern
    • [task_type]/[task_id]-[task_target]
    • Example: task SCBOT-123 to implement a new menu
  • feature/scbot123-new-menu
$ curl 'https://graphql.buildkite.com/v1' \
-H 'Authorization: Bearer xxxxxxx' \
-d '{
"query": "query { allUsers { user { name } } }"
}'
{
"data": {
"allUsers": {
"user": {
"name": "Felipe"
mutation {
updateUser(id:1, name: "Felipe Silva", email: "felipe.silva@gmail.com") {
id
firstName
lastName
}
}
const typeDefs = `
type Mutation {
updateUser(id: ID!, name: String!, email: String!): User
}
`;
const resolvers = {
Mutation: {
updateUser: (_, { id, name, email }) => {
const typeDefs = `
type Mutation {
createUser(name: String!, email: String!): User
}
`;
const resolvers = {
Mutation: {
createUser: (parent, args) => {
const newUser = Object.assign({id: users.length + 1}, args);