Skip to content

Instantly share code, notes, and snippets.

View jose-almir's full-sized avatar

José Almir jose-almir

View GitHub Profile
@jose-almir
jose-almir / iris.csv
Created May 16, 2024 14:25
Iris dataset
sepal.length sepal.width petal.length petal.width variety
5.1 3.5 1.4 .2 Setosa
4.9 3 1.4 .2 Setosa
4.7 3.2 1.3 .2 Setosa
4.6 3.1 1.5 .2 Setosa
5 3.6 1.4 .2 Setosa
5.4 3.9 1.7 .4 Setosa
4.6 3.4 1.4 .3 Setosa
5 3.4 1.5 .2 Setosa
4.4 2.9 1.4 .2 Setosa
day mnth year season holiday weekday workingday weathersit temp atemp hum windspeed rentals
1 1 2011 1 0 6 0 2 0.344167 0.363625 0.805833 0.160446 331
2 1 2011 1 0 0 0 2 0.363478 0.353739 0.696087 0.248539 131
3 1 2011 1 0 1 1 1 0.196364 0.189405 0.437273 0.248309 120
4 1 2011 1 0 2 1 1 0.2 0.212122 0.590435 0.160296 108
5 1 2011 1 0 3 1 1 0.226957 0.22927 0.436957 0.1869 82
6 1 2011 1 0 4 1 1 0.204348 0.233209 0.518261 0.0895652 88
7 1 2011 1 0 5 1 2 0.196522 0.208839 0.498696 0.168726 148
8 1 2011 1 0 6 0 2 0.165 0.162254 0.535833 0.266804 68
9 1 2011 1 0 0 0 1 0.138333 0.116175 0.434167 0.36195 54
@jose-almir
jose-almir / README.md
Last active May 12, 2024 13:09
Salary Prediction dataset

Colunas

  • age => Número;
  • education_level => 0 = Bacharel, 1 = Mestre, 2 = Doutor;
  • years_exp => Número;
  • salary => Número;
  • is_female => 0 = False, 1 = True
  • is_male => 0 = False, 1 = True
  • is_junior => 0 = False, 1 = True
  • is_senior => 0 = False, 1 = True
ubuntu_2204 = {
"publisher": "Canonical",
"offer": "0001-com-ubuntu-server-jammy",
"sku": "22_04-lts",
"version": "latest",
}
windows_server2019 = {
"publisher": "MicrosoftWindowsServer",
"offer": "WindowsServer",
Standard_NC6s_v3
Standard_NC12s_v3
Standard_NC24rs_v3
Standard_NC24s_v3
Standard_A1_v2
Standard_A2m_v2
Standard_A2_v2
Standard_A4m_v2
Standard_A4_v2
Standard_A8m_v2
#!/bin/bash
sudo apt update -y && apt-get upgrade -y
sudo apt install -y nginx
sudo apt install -y wget
sudo apt install -y unzip
sudo wget https://github.com/jose-almir/etib-2020/releases/download/v1.0/release-v1.0.zip -O temp.zip
sudo unzip temp.zip
sudo rm temp.zip
sudo mv ./SiteETIB/src/* /var/www/html
sudo rm -rf ./SiteETIB
@jose-almir
jose-almir / component.ts
Created November 8, 2023 20:13
Charts Mynd
import { HttpClient } from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
import { ChartConfiguration, ChartData, ChartType } from 'chart.js';
import { environment } from 'src/environments/environment';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
@jose-almir
jose-almir / Criteria.ts
Created August 18, 2023 20:28
Filtering proof of concept pure firebase
export interface Criteria {
field: string;
operation: string;
value: any;
}
@jose-almir
jose-almir / gist:159ab9541367e6c4b2e975692ec80c1c
Created July 4, 2023 23:23
Instalação MYSQL no Ubuntu Linux
sudo apt update
apt list --upgradable
sudo apt-get upgrade
sudo apt install mysql-server
service mysql status
sudo service mysql stop
sudo service mysql start
sudo mysql
SET GLOBAL validate_password.policy = LOW;
ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'password';
/*!
* Modified from GitHub's Dark Dimmed theme, licensed under the MIT License
* Copyright (c) 2018 GitHub Inc.
* https://github.com/primer/primitives/blob/main/LICENSE
*/
main {
--color-prettylights-syntax-comment: #768390;
--color-prettylights-syntax-constant: #6cb6ff;
--color-prettylights-syntax-entity: #dcbdfb;
--color-prettylights-syntax-storage-modifier-import: #adbac7;