Skip to content

Instantly share code, notes, and snippets.

@tarcisioe
tarcisioe / cookieclicker.user.js
Created August 23, 2021 22:10
Cookie Clicker automator (needs Cookie Monster)
// ==UserScript==
// @name New script - dashnet.org
// @namespace Violentmonkey Scripts
// @match https://orteil.dashnet.org/cookieclicker/
// @grant none
// @version 1.0
// @author -
// @description 7/22/2020, 7:35:39 PM
// ==/UserScript==
// ==UserScript==
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am tarcisioe on github.
  • I am tarcisioe (https://keybase.io/tarcisioe) on keybase.
  • I have a public key ASCYVb93vsHcpXgxzWzNC9dC_tS6JiZBn-hDebBRqjtr_Qo

To claim this, I am signing this object:

@tarcisioe
tarcisioe / venv-cd.sh
Last active August 29, 2015 14:06
*sh cd overload for activating a parent virtualenv.
find_file_backwards() {
while [[ "${current_path}" != "/" ]]
do
file="${current_path}/$1"
if [ -f "${file}" ]
then
echo "${file}"
return
fi
current_path="$(dirname "${current_path}")"
@tarcisioe
tarcisioe / monty_hall.py
Last active August 29, 2015 14:01
Simple Monty Hall simulation
import random
N_DOORS = 3
N_REPETITIONS = 1000
def stick(chosen, choice):
'''
This ignores the choice and sticks to the chosen door.
'''