Skip to content

Instantly share code, notes, and snippets.

View douglasquintanilha's full-sized avatar

Douglas Quintanilha douglasquintanilha

View GitHub Profile
@douglasquintanilha
douglasquintanilha / day-20.js
Created June 15, 2021 01:41
30 days of code - day 20
let numberOfSwaps = 0;
// Write your code here
let i,j;
for (i = 0; i < n; i++) {
for (j=0; j < n -1; j++){
if (a[j] > a[j+1]){
let temp = a[j];
a[j] = a[j+1];
@douglasquintanilha
douglasquintanilha / day-8.go
Created June 1, 2021 02:14
30 days of code - day 8
package main
import "fmt"
import "bufio"
import "os"
import "strconv"
import "strings"
func main() {
//Enter your code here. Read input from STDIN. Print output to STDOUT
input := make([]string,0)

Keybase proof

I hereby claim:

  • I am douglasquintanilha on github.
  • I am dquintanilha (https://keybase.io/dquintanilha) on keybase.
  • I have a public key whose fingerprint is 3AD4 DE55 134A 922A 6513 A48F 2C23 9DB0 DA88 E284

To claim this, I am signing this object:

@douglasquintanilha
douglasquintanilha / .zshrc
Last active October 2, 2019 22:16
.zshrc config file
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOPATH:$GOBIN
export EDITOR="code --wait"
# Path to your oh-my-zsh installation.
export ZSH="/Users/douglasferreira/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
Criar a classe marcado no css:
.marcado{
background-color: white
}
// Busca com Highlight
$("#busca").on("input", function(){
var busca = $(this).val().trim();
<div class="produto">
<h1>Fuzzy Cardigan</h1>
<p>por apenas R$ 129,00</p>
<form>
<fieldset class="cores">
<legend>Escolha a cor:</legend>
<input type="radio" name="cor" value="verde" id="verde" checked>
<label for="verde">
<img src="http://lorempixel.com/100/100/sports" alt="verde">
</label>
@douglasquintanilha
douglasquintanilha / History|-187782e7|entries.json
Last active September 7, 2022 23:29
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/douglas.quintanilha/.aws/config","entries":[{"id":"rKuH","timestamp":1662590958053},{"id":"fAyT","timestamp":1662590974656},{"id":"nEuS","source":"undoRedo.source","timestamp":1662590975784},{"id":"eWvE","timestamp":1662590990906},{"id":"MhaF","timestamp":1662591005120}]}
<form>
<label for="usuario">Seu usuário:</label>
<input type="text" name="cliente" id="usuario">
<input type="submit">
</form>
.quadrado{
top: 0px;
width: 200px;
height: 200px;
background: red;
position: relative;
}
.quadrado:hover{
background-color: blue;
}