Skip to content

Instantly share code, notes, and snippets.

View disouzam's full-sized avatar
🚲

Dickson Souza disouzam

🚲
View GitHub Profile
@disouzam
disouzam / servidores_nivel_superior.sql
Created April 11, 2025 18:03 — forked from fernandobarbalho/servidores_nivel_superior.sql
Busca a proporção de servidores com nível superior para os municípios brasileiros usando dados da RAIS
# Os dados estão presentes no repositório big query da base dos dados
SELECT id_municipio,
count(*) as quantidade_nivel_superior,
( select count(*)
from `basedosdados.br_me_rais.microdados_vinculos` vinc_sub
where vinc_sub.id_municipio = vinc.id_municipio and
ano = 2023 and
vinculo_ativo_3112 ="1" and
natureza_juridica = "1244") as total_servidores_municipio, #1244= município
@disouzam
disouzam / get-all-computed-styles.js
Created April 8, 2025 22:36
Get all computed styles from a HTML page - for debugging purposes
// Get all computed styles of a page
class Stack {
constructor() {
this.stack = [];
}
push(element) {
this.stack.push(element);
}
@disouzam
disouzam / RelevantLinks.md
Created February 27, 2025 23:50
Links to common issues - VS Code, bash, git
@disouzam
disouzam / AddRating.cs
Created November 15, 2024 19:55 — forked from bradygaster/AddRating.cs
Contoso Crafts
public void AddRating(string productId, int rating)
{
var products = GetProducts();
var query = products.First(x => x.Id == productId);
if(query.Ratings == null)
{
query.Ratings = new int[] { rating };
}
else
@disouzam
disouzam / all_email_provider_domains.txt
Created November 11, 2024 19:52 — forked from ammarshah/all_email_provider_domains.txt
A list of all email provider domains (free, paid, blacklist etc). Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
0-mail.com
007addict.com
020.co.uk
027168.com
0815.ru
0815.su
0clickemail.com
0sg.net
0wnd.net
0wnd.org
@disouzam
disouzam / init.bat
Last active November 11, 2024 18:42
cmder initial configuration
@echo off
set CMDER_INIT_START=%time%
:: Init Script for cmd.exe
:: Created as part of cmder project
:: !!! THIS FILE IS OVERWRITTEN WHEN CMDER IS UPDATED
:: !!! Use "%CMDER_ROOT%\config\user_profile.cmd" to add your own startup commands
@disouzam
disouzam / keybindings.json
Created October 23, 2024 22:59
Custom VS Code shortcuts
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "space",
"command": "notebook.cell.collapseCellInput",
"when": "notebookCellListFocused && !inputFocus && !notebookCellInputIsCollapsed"
},
{
"key": "ctrl+k ctrl+c",
"command": "-notebook.cell.collapseCellInput",
@disouzam
disouzam / python.json
Last active October 18, 2024 01:08
Python snippets for VS Code
{
// Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace FileAnalyzer
{
public class Record
{
public DateTime Start => DateTime.Parse(_line.Split(' ')[0]);