Skip to content

Instantly share code, notes, and snippets.

View bleszerd's full-sized avatar
🚀
Launching a rocket today

Vinícius Resende bleszerd

🚀
Launching a rocket today
View GitHub Profile
@bleszerd
bleszerd / NoteSwapView.kt
Created September 6, 2021 12:26
Swap note custom view
class NoteSwapView @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0,
) : FrameLayout(context, attrs, defStyleAttr) {
//Inflating layout
private val binding = NoteSwapViewBinding.inflate(LayoutInflater.from(context), this, true)
init {
@bleszerd
bleszerd / PokedexEntry.kt
Created September 27, 2021 22:28
PokemonListScreen
@ExperimentalCoilApi
@Composable
fun PokedexEntry(
entry: PokedexListEntry,
navController: NavController,
modifier: Modifier = Modifier,
viewModel: PokemonListViewModel = hiltViewModel()
) {
val defaultDominantColor = MaterialTheme.colors.surface.toArgb()
var dominantColor by rememberSaveable {
@bleszerd
bleszerd / IconifiedRoundedButton.kt
Created October 25, 2021 14:22
IconifiedRoundedButton
/**
* @Author: Vinícius "Bleszerd" Resende
* @Contact [email protected]
* @Date: 25/10/2021
*/
class RoundedButton @JvmOverloads constructor(
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : LinearLayout(context, attrs, defStyleAttr) {
@bleszerd
bleszerd / google_photos_cleanner.js
Last active May 6, 2024 20:34
This script contain logic to remove all photos from google photos without any click
const MAIN_LOOP_INTERVAL = 1000
const REMOVE_REMINDER_BAR_TIMEOUT = 100
const SELECT_ALL_VISIBLE_CHECKBOX_TIMEOUT = 350
const CLICK_ON_DELETE_BUTTON_TIMEOUT = 600
const CLICK_ON_MOVE_TO_TRASH_BUTTON_TIMEOUT = 850
const removeReminderBar = () => {
setTimeout(() => {
document.querySelector('c-wiz > div > c-wiz > div > c-wiz > div')?.remove()
document.querySelector('div[style="position: absolute; width: 1038px; height: 248px; transform: translate3d(0px, 88px, 0px);"]')?.remove()
@bleszerd
bleszerd / Kadu clean
Created September 3, 2023 14:59
Traz a paz para o chat
const THREE_MINUTES_IN_MILLIS = 177000;
const REWARD_NAME = "84|105|109|101|111|117|116|32|75|97|100|117"
function kaduClear() {
const rewardButton = document.querySelector(".eXFiyo > div:nth-child(2) > button:nth-child(1)")
rewardButton.click()
let timeoutDiv;