Skip to content

Instantly share code, notes, and snippets.

View wescleymatos's full-sized avatar
:octocat:
I'm ready!

Wescley Matos wescleymatos

:octocat:
I'm ready!
View GitHub Profile
@wescleymatos
wescleymatos / IMPORT-GITHUB-LABELS.md
Last active May 17, 2024 19:22 — forked from dysfunc/IMPORT-GITHUB-LABELS.md
Importing labels collection into GitHub Repo

Useful labeling system used in all my repositories.

const labels = [
  {
@wescleymatos
wescleymatos / vs-code.txt
Created July 12, 2020 06:24
Configuração do VS Code
- Configuração do Code
@wescleymatos
wescleymatos / fn-composition.js
Created June 6, 2020 23:28
Composição de funções JavaScript
function composicao(...funcoes) {
return function(valor) {
return funcoes.reduce((acc, fn) => {
return fn(acc);
}, valor);
};
};
//const composicao = (...funcoes) => valor => funcoes.reduce((acc, fn) => fn(acc), valor);
[alias]
ci = commit
co = checkout
cm = checkout master
cb = checkout -b
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
#lg = log --pretty=format:'%Cred%h%Creset %s %Cgreen[%an]%Creset %C(bold)[%cr]%Creset' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
@wescleymatos
wescleymatos / index.html
Created September 20, 2019 02:33 — forked from leedongwei/index.html
Using web workers with pdfmake.js
<html>
<head>
<title>Demo for using web workers with pdfmake.js</title>
<style>
body {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
@wescleymatos
wescleymatos / preview-image.js
Created March 2, 2019 12:43
Preview image JS
/*
<form id="form1" runat="server">
<input type='file' id="imgInp" />
<img id="blah" src="#" alt="sua imagem" />
</form>
*/
function leUrl(input) {
if (input.files && input.files[0]) { //verifica se o arquivo não está nulo
var reader = new FileReader(); //instancia um objeto FileReader que permite aplicações web ler o conteúdo dos arquivos (ou buffers de dados puros)
@wescleymatos
wescleymatos / JS-LINQ.js
Created February 13, 2019 06:04 — forked from DanDiplo/JS-LINQ.js
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },
{ name: "Judy", age: 42 },
{ name: "Tim", age: 8 }

Gestão de Projetos

Projeto

Projeto é um esforço temporário empreendido para criar um produto, serviço ou resultado exclusivo.

Operações X Projetos:

@wescleymatos
wescleymatos / config
Created December 7, 2018 04:39
Problema de conexão ssh com github pu gitlab
1 - Na pasta .ssh criar o arquivo config
2 - Colocar o seguinte conteúdo
Host github.com
Hostname ssh.github.com
Port 443
Host gitlab.com
Hostname altssh.gitlab.com
User git
@wescleymatos
wescleymatos / Startup.cs
Created October 9, 2018 20:01
Arquivo de startup web api 2
namespace Interface.Api
{
public class Startup
{
private static readonly string _urlBase = ConfigurationManager.AppSettings["UrlBase"];
private static readonly string _allowInsecureHttp = ConfigurationManager.AppSettings["AllowInsecureHttp"];
public void Configuration(IAppBuilder app)
{
HttpConfiguration config = new HttpConfiguration