Skip to content

Instantly share code, notes, and snippets.

View iamlucianojr's full-sized avatar
👨‍💻
If you want to go fast, go alone. If you want to go far, go with others.

Luciano Jr iamlucianojr

👨‍💻
If you want to go fast, go alone. If you want to go far, go with others.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am iamlucianojr on github.
  • I am lucianojr (https://keybase.io/lucianojr) on keybase.
  • I have a public key ASBKUKNr5lkxk1C5r9ClWhAihR99hLrjkCot5E9R7gaVgwo

To claim this, I am signing this object:

```composer req league/csv```
<?php
declare(strict_types=1);
namespace Miscellaneous\Voucher\UI\Command;
use League\Csv\Reader;
use Miscellaneous\Voucher\Exception\CouldNotLoadFileException;

Docker compose file for setting up a EFK service foobar

A basic docker compose file that will set up Elasticsearch, Fluent Bit, and Kibana.

The following docker compose allows to ingest data through Forward protocol or Syslog in UDP mode, examples:

Send data through Forward protocol

// Function to check letters and numbers
function alphanumeric(senha) {
var letterNumber = /^[0-9a-zA-Z]+$/;
if (senha.match(letterNumber)) {
return true;
}
return false
}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: nginx-ingress
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- host: api.lucianojr.com.br
http:
Hi, hope you are great! We are a couple looking for a cozy place to stay in Dublin. I work at CCT Marketing International at D9 as a software developer since April 2018, my gross salary is 45k per year and my girlfriend is a self employed journalist gaining about 20k per year. We would like to have the opportunity to schedule a visit to know your place. We can also provide some references and what else is necessary.
function gen_one_to_three()
{
for ($i = 1; $i <= 3; $i++) {
// Note that $i is preserved between yields.
yield $i;
}
}
$generator = gen_one_to_three();
async function functionName (arguments) {
// Do something asynchronous
}
const functionName = async (arguments) => {
// Do something asynchronous
}
jeffBuysCake('black forest')
.then(partyAsPlanned)
version: "3"
networks:
kong-net:
driver: bridge
services:
#######################################
# Postgres: The database used by Kong
Tom Mitchell provides a more modern definition: "A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience E."
Linear Regression= Straigh line draw by the machine using set of data points
Polynomial regression = Non linear data points, curved line to fit better
Linear logistic regression = spam example, two different groups
Supervised learning = Train the model by giving it examples and guiding it to the right answers.