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

Expected Behavior

Current Behavior

@wescleymatos
wescleymatos / .gitlab-ci.yml
Created January 12, 2018 12:21 — forked from yetanotherchris/ .gitlab-ci.yml
.NET Core continous integration with Docker, Kubernetes, Gitlab and Google Cloud
# http://docs.gitlab.com/ce/ci/docker/using_docker_build.html#using-the-gitlab-container-registry
# The docker tag is the first 6 letters of the Git commit id
job_build_dotnet:
stage: build
image: microsoft/dotnet:latest
script:
- dotnet restore
- dotnet publish src/MyProject.Web -c Release
artifacts:
@wescleymatos
wescleymatos / .gitlab-ci.yml
Created January 12, 2018 12:12 — forked from zerda/.gitlab-ci.yml
Gitlab CI for ASP.Net Core project
image: microsoft/aspnetcore-build:1.1
variables:
PROJECT_DIR: "app"
cache:
key: "$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME"
paths:
- .nuget/
@wescleymatos
wescleymatos / ISSUE_TEMPLATE.md
Created December 29, 2017 13:09
Template para criação de issues seguindo o padrão Gherkin

Feature: <title>

In order to As a I want to

Backgroud:

  • Given
  • And

Scenario:

@wescleymatos
wescleymatos / get_column.sql
Last active December 15, 2017 11:38
Buscar por campos em qualquer tabela do banco de dados Oracle
SELECT * FROM all_tab_columns WHERE upper(column_name) LIKE '%IDRELATORIO%';
@wescleymatos
wescleymatos / export_commits.sh
Created November 17, 2017 20:32
Exportação de lista de commits
git log --pretty=format:"%h - %s" --decorate --numstat --grep 111045 > C:\Users\Wescley\Documents\log.txt
@wescleymatos
wescleymatos / observer.js
Created October 20, 2017 16:37
Aplicação do padrão Observer com Javascript
<html>
<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>Document</title>
</head>
<body>
<p></p>
<button id="btn-1" type="button">observar</button>
@wescleymatos
wescleymatos / thinced.js
Created October 2, 2017 20:03 — forked from varmais/thinced.js
Geolocation to Promise wrap example
var getPosition = function (options) {
return new Promise(function (resolve, reject) {
navigator.geolocation.getCurrentPosition(resolve, reject, options);
});
}
getPosition()
.then((position) => {
console.log(position);
})
@wescleymatos
wescleymatos / es7-async-await.js
Created September 27, 2017 06:31 — forked from msmfsd/es7-async-await.js
Javascript fetch JSON with ES7 Async Await
// Async/Await requirements: Latest Chrome/FF browser or Babel: https://babeljs.io/docs/plugins/transform-async-to-generator/
// Fetch requirements: Latest Chrome/FF browser or Github fetch polyfill: https://github.com/github/fetch
// async function
async function fetchAsync () {
// await response of fetch call
let response = await fetch('https://api.github.com');
// only proceed once promise is resolved
let data = await response.json();
// only proceed once second promise is resolved
<snippet>
<content><![CDATA[public function get${1/(.*)/\u$1/}()
{
return \$this->${1:$SELECTION};
}
public function set${1/(.*)/\u$1/}(\$$1)
{
return \$this->$1 = \$$1;
}