Skip to content

Instantly share code, notes, and snippets.

View gabizinha12's full-sized avatar
🖥️
creating bugs

Gabrielle Lima gabizinha12

🖥️
creating bugs
  • São Paulo
  • 22:38 (UTC -03:00)
View GitHub Profile
@fzmaster
fzmaster / fizzbuzz.py
Created December 21, 2010 03:32
Função do problema FizzBuzz
# -*- coding:utf-8 -*-
def executaFizzBuzz(numero):
"""
Autor: fzmaster
Data: 21/12/2010
Problema: Fizz Buzz
http://codingkata.org/katas/unit/fizz-buzz
Esta é a função responsável por converter múltiplos de 3 em 'fizz', múltiplos de 5 em 'buzz' e múltiplos de ambos
@stongo
stongo / app.js
Last active January 23, 2024 18:48
Joi validation in a Mongoose model
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test');
var db = mongoose.connection;
db.on('error', function() {
return console.error.bind(console, 'connection error: ');
});
@rxaviers
rxaviers / gist:7360908
Last active April 25, 2024 23:16
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:
@igorcosta
igorcosta / cpf_cnpj_validator
Created June 26, 2014 19:13
Regex para validar CPF e CNPJ
Para CPF
/^\d{3}\.\d{3}\.\d{3}\-\d{2}$/
Para CNPJ
/^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/
Para ambos ao mesmo tempo
@samueltcsantos
samueltcsantos / conversor.py
Created November 10, 2014 16:06
Converter metros para centímetros em Python.
# -*- coding: utf-8 -*-
'''
Autor: Samuel T. C. Santos
Data: 09.11.2014
'''
metros = float (input('Metros? '))
centimetros = metros * 100;
@amysimmons
amysimmons / js-tricky-bits.md
Last active November 16, 2022 02:42
Understanding closures, callbacks and promises in JavaScript

#Understanding closures, callbacks and promises

For a code newbie like myself, callbacks, closures and promises are scary JavaScript concepts.

10 months into my full-time dev career, and I would struggle to explain these words to a peer.

So I decided it was time to face my fears, and try to get my head around each concept.

Here are the notes from my initial reading. I'll continue to refine them as my understanding improves.

@franciscojsc
franciscojsc / tabuada.py
Created October 24, 2017 14:29
TABUADA EM PYTHON
valor = int(input('Entre com um número para saber a tabuada: '))
aux = 0
print('*' * 18)
print('Tabuada de {}'.format(valor))
print('*' * 18)
while(aux <= 10):
print('{0} X {1} = {2}'.format(aux, valor, (aux * valor)))
aux = aux + 1
@tanaikech
tanaikech / submit.md
Last active May 27, 2021 10:14
Send mails from Gmail using Nodemailer

Send mails from Gmail using Nodemailer

This is a sample script for sending e-mails from gmail using Nodemailer. In order to use this, please retrieve the folloing parameters before run this script.

  1. gmail address
  2. client ID
  3. client Secret
  4. Refresh token
    • Please include https://mail.google.com/ in the scope.
  5. Enable gmail API at API console.
  6. Install Nodemailer
@hrmsk66
hrmsk66 / bulma-form.html
Created May 13, 2018 06:27
Bulma Simple Form
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello Bulma!</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css">
<script defer src="https://use.fontawesome.com/releases/v5.0.7/js/all.js"></script>
</head>
<body>
@filipemansano
filipemansano / getcep.html
Created November 17, 2018 04:24
Exemplo básico de consulta de CEP consumindo uma API em jQuery
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Pesquisa CEP</title>
</head>
<body>