This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"accept": "*/*", | |
"host": "smee.io", | |
"user-agent": "GitHub-Hookshot/9b97f8a", | |
"max-forwards": "10", | |
"x-github-delivery": "96a80720-f0c2-11ee-9b0a-b980f6ca0037", | |
"x-github-event": "pull_request", | |
"x-github-hook-id": "470162148", | |
"x-github-hook-installation-target-id": "111815790", | |
"x-github-hook-installation-target-type": "organization", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Ansi 6 Color" : { | |
"Green Component" : 0.73333334922790527, | |
"Blue Component" : 0.73333334922790527, | |
"Red Component" : 0 | |
}, | |
"Tags" : [ | |
], | |
"Ansi 12 Color" : { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
execute(){ | |
echo "sample execute like a charm!" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias glog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reason to create this script: | |
// My profile was created in portuguese, but when I translated | |
// it to english and tried to save my profile as PDF, it could not | |
// translate some words and dates to english, so I created this gist | |
// as an alternative. | |
// Usage | |
// 1. open your public profile in an incognito* browser tab. E.g.: https://www.linkedin.com/in/marioluan | |
// 2. copy-n-past the code below into the browser console | |
// 3. save as PDF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
current_name=$1 | |
new_name=$2 | |
files=`grep -irl $current_name` | |
num_files=`grep -irl $current_name | wc -l` | |
echo "found $num_files file(s) with import name $current_name" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var alphabet = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']; | |
function encryption ( word, shift ) { | |
var encryptedWord = ''; | |
for (var i = 0; i < word.length; i++) { | |
var letter = word[i].toUpperCase(); | |
var letterIndex = alphabet.indexOf(letter); | |
var shiftedIndex = letterIndex+shift; | |
var newLetterIndex = shiftedIndex % alphabet.length; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*linear: | |
- somente 1 dimensao | |
- lista finita e sequencial de items | |
A escolha do metodo a ser utilizado depende de: | |
- quantidade de dados envolvidos | |
- volume de operacoes de inclusao/exclusao | |
Algoritmos relacionados à memória primária | |
Busca linear/sequencial |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compile os arquivos: | |
$ gcc -o executavel_server socket_server.c | |
$ gcc -o executavel_client socket_client.c | |
Inicie o server: | |
$ ./executavel_server | |
Rode o client: | |
$ ./executavel_client |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Slider( containerSlider ){ | |
this.container = document.querySelector( containerSlider ); | |
this.botoesSlider = this.container.querySelectorAll( '.slider-navegacao-botao' ); | |
this.tagImagem = this.container.querySelector( '.slider-imagem' ); | |
this.listaImagens = this.tagImagem.attributes['data-images'].value.split(','); | |
this.areaClicavelImagem = this.container.querySelector( '.area-clicavel-imagem' ); | |
this.botaoRetroceder = this.areaClicavelImagem.querySelector( '.botao-retroceder' ); | |
this.botaoAvancar = this.areaClicavelImagem.querySelector( '.botao-avancar' ); | |
this.posicaoSlider = 0; | |
this.quantidade = this.listaImagens.length; |
NewerOlder