Skip to content

Instantly share code, notes, and snippets.

View DevWellington's full-sized avatar
🐻
Bear 👍

Wellington Ribeiro DevWellington

🐻
Bear 👍
  • Telemar Norte Leste (Oi)
  • Belo Horizonte / MG / Brasil
View GitHub Profile
https://github.com/sigalor/whatsapp-web-reveng
@DevWellington
DevWellington / insertion_sort.php
Created September 22, 2018 12:00
Insertion Sort method with PHP
<?php
$list = [4,3,1,5,2];
print_r("list: ". implode('|',$list) . PHP_EOL);
for ($i=0; $i < count($list); $i++) {
print_r($list[$i].PHP_EOL);
$current = $list[$i];
@DevWellington
DevWellington / selection_sort.php
Created September 22, 2018 10:41
Selection Sort method with PHP
<?php
$list = [64,25,12,22,11];
print_r("list: ". implode(',',$list) . PHP_EOL);
for ($i=0; $i < count($list); $i++) {
$min = $i;
print_r($list[$i].PHP_EOL);
@DevWellington
DevWellington / bubblesort.php
Created September 22, 2018 00:33
Bubble Sort method with php
<?php
$list = [5,3,2,4,7,1,0,6];
print_r($list);
for ($i=0; $i < count($list); $i++) {
for ($j=$i+1; $j < count($list); $j++) {
$current = $list[$i];
import { Component } from '@angular/core'
@Component({
selector: 'app-first',
templateUrl: './myfirst-component.html',
// template: `<h1>{{ title }}</h1>`,
// template: `<h1>{{ title }}</h1>
// <p> Welcome, {{ user.name }}!</p>`
})
@DevWellington
DevWellington / image-url-downloader.js
Created October 15, 2016 15:38 — forked from anonymous/image-url-downloader.js
Image Mass URL Downloader - Javascript
function downloadDataUrlFromJavascript(filename, dataUrl) {
// Construct the a element
var link = document.createElement("a");
link.download = filename;
link.target = "_blank";
// Construct the uri
link.href = dataUrl;
document.body.appendChild(link);
@DevWellington
DevWellington / instagram-bot.js
Created September 14, 2016 03:44
Instagram Bot - Scraper Following of user
var script = document.createElement('script');
script.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(script);
// funcao para rodar o scroller
function scrollerDiv (height, interval, rodou) {
var i = 0;
var count = 1;
var timer = setInterval(function(){
@DevWellington
DevWellington / bot-send-message.js
Last active November 6, 2021 16:41
bot web.whatsapp.com - send message for a contacts list
var script = document.createElement('script');
script.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(script);
// search contact
function searchContact(searchValue, interval_add)
{
var interval = interval_add;
var count = 1;

Linux com Ubuntu processos e programas - Alura

Anotações Relevantes:

- Comandos básicos
	- whoami (qual usuario esta logado)
	- ssh -X (loga no servidor com modo grafico ativo)
	- kill -9, killall -9 (forca a parada)
	- jobs (verificar processos rodando em bg - no terminal ativo)
  • /etc/init.d/* (servicos que rodam no inicio da maquina)
<html>
<head>
<meta charset="utf-8">
<title>Cadastro de Funcionários</title>
<link rel="stylesheet" text="text/css" href="estilo.css">
</head>
<body>
<?php
require ("config.php");
?>