Useful labeling system used in all my repositories.
- Visit the labels page https://github.com/{user}/{repo}/labels
- Click on "New Label"
- Open the Developer Console
- Paste this snippet and hit enter
const labels = [
{
Useful labeling system used in all my repositories.
const labels = [
{
- Configuração do Code |
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}) |
<html> | |
<head> | |
<title>Demo for using web workers with pdfmake.js</title> | |
<style> | |
body { | |
width: 100vw; | |
height: 100vh; | |
display: flex; | |
justify-content: center; |
/* | |
<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) |
// 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 } |
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 |
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 |