Skip to content

Instantly share code, notes, and snippets.

View lucianobragaweb's full-sized avatar
🏠
Working from home

Luciano Braga lucianobragaweb

🏠
Working from home
View GitHub Profile
@lucianobragaweb
lucianobragaweb / Instructions.sh
Created January 15, 2020 20:29 — forked from GhazanfarMir/Instructions.sh
Install PHP7.2 NGINX and PHP7.2-FPM on Ubuntu 16.04
########## Install NGINX ##############
# Install software-properties-common package to give us add-apt-repository package
sudo apt-get install -y software-properties-common
# Install latest nginx version from community maintained ppa
sudo add-apt-repository ppa:nginx/stable
# Update packages after adding ppa
@lucianobragaweb
lucianobragaweb / docker-compose.yml
Created December 16, 2019 11:21
Docker Compose para Node.js
version: "2"
services:
node:
image: "node:12"
working_dir: /app
volumes:
- ./:/app
expose:
- "8080"
ports:
@lucianobragaweb
lucianobragaweb / .dockerignore
Last active February 19, 2022 14:17
Docker file for Vue.js
node_modules
root = true
[*]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
# editorconfig-tools is unable to ignore longs strings or urls
@lucianobragaweb
lucianobragaweb / aulaPascal.pas
Last active February 19, 2022 14:15
Exemplo de programa em Pascal
program aula01;
{
Author: Luciano Braga
Date: 2018-09-05
Description: Descrição do Arquivo ou programa
}
begin
{ Escopo do Programa }
@lucianobragaweb
lucianobragaweb / .gitignore
Last active May 2, 2020 13:16
.gitignore for Pascal project files - This ignore executable/binary files from your project root and directories
# Ignore all
*
# Unignore all with extensions
!*.*
# Ignore all with extension .o
*.o
# Rules for dirs
@lucianobragaweb
lucianobragaweb / SweetAlert.html
Last active February 19, 2022 14:13
Exemplo de uso do Sweet Alert JS
<!DOCTYPE html>
<html>
<head>
<title>Sweet Alert</title>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
</head>
<body>
<script type="text/javascript">
swal("Good job!", "You clicked the button!", "success");
</script>
<form action="">
<select class="target">
<option value="option1" selected="selected">Option 1</option>
<option value="option2">Option 2</option>
</select>
<input type="text" id="txt" name="" value="">
</form>
<script type="text/javascript">
$( ".target" ).change(function() {
@lucianobragaweb
lucianobragaweb / README-Template.md
Created October 11, 2017 01:52 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

$(document).ready(function() {
var url = getEntidadeURL() + '/publication';
$.ajax({
url: url,
dataType: "json",
}).then(function(data) {
$('#box-outras-publicacoes').html('<li class="list-group-item active">Outras Publicações</li>');
$.each(data, function(i, item) {