Skip to content

Instantly share code, notes, and snippets.

@imbradmiller
imbradmiller / random-gems-everywhere
Last active December 10, 2023 21:05
Random Gems Everywhere
let totalGems = randomNumberOfGems
var gemCon = 0
func navigate () {
while !isBlocked {
moveForward()
if isOnGem {
collectGem()
gemCon += 1
@hakluke
hakluke / openinbrowser.py
Created May 18, 2019 15:38
Little Python script to open a list of URLs from a file in browser tabs, n tabs at a time
#! /usr/bin/python3
import webbrowser, sys
if len(sys.argv) < 3:
print("Usage: openinbrowser.py ./urls.txt 20")
quit()
f = open(sys.argv[1])
tabs = int(sys.argv[2])
counter = 1