Skip to content

Instantly share code, notes, and snippets.

@dede999
dede999 / spreadsheet_to_json.py
Created March 3, 2025 12:20
Transform an Excel Spreadsheet to JSON
import sys
import pandas as pd
# print(pd
# .read_excel(sys.argv[1], sheet_name="Planilha1")
# .to_json(orient="records", force_ascii=False))
dados = pd.read_excel(sys.argv[1], sheet_name="Planilha1")
@dede999
dede999 / IPTV-MORENO.m3u
Created October 19, 2021 01:02 — forked from MorenoFilho/IPTV-MORENO.m3u
IPTV-MORENO.m3u
#EXTM3U
#EXTINF:-1 tvg-ID="noepg.pt" tvg-name="BBB 2020" tvg-logo="http://img.brgo.xyz/img/bbb1hd.png" group-title="Filmes e Séries",BBB 2020
http://a.srvbr.me:8880/JpeQDe4IaL/hnfgdhrteyfhdhs/11923
#EXTINF:-1 tvg-ID="MDH" tvg-name="A&E" tvg-logo="http://img.miptv.ws/A&E.png" group-title="Filmes e Séries",A&E
http://a.srvbr.me:8880/JpeQDe4IaL/hnfgdhrteyfhdhs/898
#EXTINF:-1 tvg-ID="MDH" tvg-name="A&E HD" tvg-logo="http://img.miptv.ws/A&E.png" group-title="Filmes e Séries",A&E HD
http://a.srvbr.me:8880/JpeQDe4IaL/hnfgdhrteyfhdhs/4203
#EXTINF:-1 tvg-ID="MDH" tvg-name="A&E [PLUS]" tvg-logo="http://img.miptv.ws/A&E.png" group-title="Filmes e Séries",A&E [PLUS]
http://a.srvbr.me:8880/JpeQDe4IaL/hnfgdhrteyfhdhs/4167
# -*- mode: ruby -*-
# vi: set ft=ruby :
# My Vagrant example
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.

init.vim

call plug#begin()
" All the language definitions I'll ever use are here :)
Plug 'sheerun/vim-polyglot'

" One of the best plugins for GIT
Plug 'tpope/vim-fugitive'
call plug#begin()
" All the language definitions I'll ever use are here :)
Plug 'sheerun/vim-polyglot'
" One of the best plugins for GIT
Plug 'tpope/vim-fugitive'
" Ale runs syntax checkers, linters, and compilers asynchronously and displays
" " their messages on vim's interface. It's very useful to avoid wasting time
" " compiling a file that may have a lot of syntax problems the programmer
@dede999
dede999 / init.vim
Created February 1, 2021 04:40
Advanced configuration file for SpaceVim
"=============================================================================
" init.vim --- Entry file for neovim
" Copyright (c) 2016-2020 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg@outlook.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
execute 'source' fnamemodify(expand('<sfile>'), ':h').'/main.vim'
@dede999
dede999 / init.toml
Last active February 4, 2021 18:50
Meu arquivo de configuração básica e a lista de pacotes intalados no SpaceVim
#=============================================================================
# dark_powered.toml --- dark powered configuration example for SpaceVim
# Copyright (c) 2016-2020 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg at 163.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================
# All SpaceVim option below [option] section
[options]
@dede999
dede999 / RecipeFactory.ts
Created September 7, 2020 23:56
Simple usage example of my FactoryBot class
import { Document } from "mongoose";
import FactoryBot from "../../../test/FactoryBot";
import { lorem } from "faker/locale/pt_BR"
export interface Recipe extends Document {
title: string;
description: string;
category: string;
ingredients: Array<string>;
instructions: string;
@dede999
dede999 / FactoryBot.ts
Created September 7, 2020 23:53
A simple TS helper to create mocked data
export default class FactoryBot<EntityInterface> {
constructor(protected createInstance: (...args: any[]) => EntityInterface) {}
getOne(): EntityInterface {
return this.createInstance()
}
getSome(quantity?: number): EntityInterface[] {
const instances = quantity || 1
const returned = []
{
"defaultSeverity": "warning",
"extends": [
"tslint:recommended"
],
"linterOptions": {
"exclude": [
"node_modules/**"
]
},