Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View adaoex's full-sized avatar

Adão Gonçalves adaoex

View GitHub Profile
@adaoex
adaoex / semantic-commit-messages.md
Created December 16, 2022 21:26 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

/* 01. Restringe Acesso ao Banco de Dados somente para "SysAdmin" */
USE master;
go
ALTER DATABASE nome_banco_dados
SET SINGLE_USER;
GO
ALTER DATABASE nome_banco_dados
SET RESTRICTED_USER;
/* 01. Restringe Acesso ao Banco de Dados somente para "SysAdmin" */
USE master;
GO
ALTER DATABASE nome_banco_dados
SET SINGLE_USER;
GO
ALTER DATABASE nome_banco_dados
SET RESTRICTED_USER;
-- Criar uma tabela para Teste
CREATE TABLE Table_TEST
(
Id INT IDENTITY(1,1),
Data DATETIME
);
-- Tentar um INSERT
INSERT INTO Table_TEST (Id, Data)
VALUES(10,GETDATE())
CREATE TABLE Table_TEST
(
Id INT IDENTITY(1,1),
Data DATETIME
)
@adaoex
adaoex / index.html
Created September 23, 2016 17:00
Bootstrap - animação de botões de carregamento (loading) com CSS
<!-- Code snippet -->
<div class="form-group">
<div class="col-md-12 text-center">
<span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span>
</div>
</div>