Skip to content

Instantly share code, notes, and snippets.

View andersonbosa's full-sized avatar
🥑

Anderson Bosa andersonbosa

🥑
View GitHub Profile
/**
* Checks whether the two lists are the same.
* @param { *[] } arrA
* @param { *[] } arrB
* @returns { Boolean }
*/
function arraysEqual (arrA, arrB) {
if (!arrA || !arrB) {
return
// ==UserScript==
// @name Remove items wich "tilha" on name - olx.com.br
// @namespace Violentmonkey Scripts
// @match https://*.olx.com.br/*
// @author https://linktr.ee/andersonbosa
// ==/UserScript==
/**
* The expression to remove from your search.
*
/**
* Save everything that Tinder used to make a request to your data in the window.
*/
function hackRequest(request) {
window.tinderCoreRequestRequeriments = {
headers: response.headers,
url: response.url,
referrer: "https://tinder.com/",
referrerPolicy: "origin",
// ==UserScript==
// @name Dicio.com.br popup
// @namespace Violentmonkey Scripts
// @grant none
// @version 1.0
// @author -
// @description 11/28/2020, 10:08:13 AM
// ==/UserScript==
// plugin idea
@andersonbosa
andersonbosa / hangman.game.cpp
Last active April 3, 2023 21:13
Hangman game
#include <iostream>
#include <stdlib.h>
using namespace std;
#define printNewLine cout << "\n";
#define clearScreen system("clear");
#define pauseCli system("pause");
/**
* O joguinho não está funcionando 100%. Não encontrei o erro =(
/**
* Removes the accent from a String
* @see {@link https://gist.github.com/andersonbosa/d3693a3760c14e0564230d1535dd0adc}
* @param {String} rawString
* @returns {String}
*/
function normalizeString (rawString) {
const replaceMap = {
'[ãâàáä]': 'a',
'[êèéë]': 'e',
@andersonbosa
andersonbosa / browser-listener-onlocationchange.js
Created May 29, 2021 20:36
Listen to "location" change on SPAs
/**
* Returns a function, that, as long as it continues to be invoked, will not
* be triggered. The function will be called after it stops being called for
* N milliseconds. If `immediate` is passed, trigger the function on the
* leading edge, instead of the trailing
*
* @param { function () : void } func - will be triggered when it stops to be invoked
* @param { Number } wait - time to wait
* @param { boolean } [immediate] - Either to trigger the function on the
* leading edge (truthy `immediate`) or instead of the trailing (falsy `immediate`)
// ==UserScript==
// @name chats toggle button - whatsapp.com
// @match https://web.whatsapp.com/
// @version 1.0
// @author https://github.com/andersonbosa
// @description 7/3/2021, 2:20:32 PM
// ==/UserScript==
function addToggleButton () {
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@andersonbosa
andersonbosa / install-custom-font-prototype.sh
Last active July 21, 2021 15:05
install custom fonts on linux system
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
###############################################################################
###############################################################################
# Author: @darksmile92 <https://dev.to/darksmile92/get-emojis-working-on-arch-linux-with-noto-fonts-emoji-2a9/comments>
# Publisher: @t4inha <https://andersonbosa.bio.link>
#
# ! this script isn't working, it's an ideia. if you know how to make it works
# ! please consider contributing! sz
# ! contribute here: https://gist.github.com/andersonbosa/ba9ed6adfe743343edf73e3576983dd2