Skip to content

Instantly share code, notes, and snippets.

View dvassallo's full-sized avatar

Daniel Vassallo dvassallo

View GitHub Profile
@dvassallo
dvassallo / snake.py
Last active December 24, 2023 04:48
import pygame
import time
import random
class Snake:
def __init__(self):
self.body = [(0, 0)]
self.direction = 'right'
def draw(self, screen):
@dvassallo
dvassallo / add_button.js
Created August 31, 2021 09:16
Add button to tweets
let tweets = document.querySelectorAll('article div [aria-label$="Reply"]')
for (let i = 0; i < tweets.length; i++) {
let likeButton = tweets[i].parentElement.parentElement.children[2]
let historyButton = likeButton.cloneNode(true)
historyButton.children[0].children[0].children[0].remove()
historyButton.children[0].children[0].children[0].children[0].children[0].innerHTML = 'History'
likeButton.after(historyButton)
}
@dvassallo
dvassallo / keybase.md
Created May 31, 2019 22:10
keybase.md

Keybase proof

I hereby claim:

  • I am dvassallo on github.
  • I am dvassallo (https://keybase.io/dvassallo) on keybase.
  • I have a public key ASCUMiZaVdwr1mcWBjDRfNGr5-UEfX0umyZYrMXZSkqpjQo

To claim this, I am signing this object: