Skip to content

Instantly share code, notes, and snippets.

@jQwotos
jQwotos / MoveScreens.spoon
Created January 18, 2021 07:48
Spoon for Hamerspoon that moves Windows between Physical Screens
local obj = {}
obj.__index = obj
-- Heavily inspired by suggestion on stack overflow by Karsten S. (2019)
-- https://stackoverflow.com/questions/54151343/how-to-move-an-application-between-monitors-in-hammerspoon
obj.name = "MoveScreens"
obj.version = "1.0"
obj.author = "Jason L."
obj.license = ""
@jQwotos
jQwotos / cuhacking_email_extractor.py
Last active November 25, 2017 18:59
Extracts email addresses from CUHacking Registration emails.
# Usage Instructions
# 1. Download the emails from Zoho
# 2. Extract them into the proper folder name, default is Emails
# 3. Run the script (in python3) and done!
from os import chdir
from glob import glob
import re
import csv
@jQwotos
jQwotos / flipp_scraper.py
Created October 17, 2017 13:39
A basic scraper that scrapes search results from flipp.com
import requests
BASE_URL = 'https://flipp.com'
BACKEND_URL = 'https://backflipp.wishabi.com/flipp'
SEARCH_URL = '%s/items/search' % BACKEND_URL
ITEM_URL = '%s/items/' % BACKEND_URL
def scrape_item(item_id):
return requests.get(
"%s/%s" % (ITEM_URL, item_id,)

Keybase proof

I hereby claim:

  • I am jQwotos on github.
  • I am jqwotos (https://keybase.io/jqwotos) on keybase.
  • I have a public key whose fingerprint is 32A7 2E6B A338 5170 B3E4 1683 47B4 C6FC 1F1C B004

To claim this, I am signing this object:

@jQwotos
jQwotos / codons_to_anticodons.py
Created December 19, 2016 03:22
Takes in a string of codons and converts them into anticodons
i = 'AUG|UUU|GUA|CAU|UUG|UGU|GGG|AGU|CAC|CUG|GUU|GAG|GCG|UUG|UAU|UUG|GUU|UGU|GGC|GAG|CCC|GGC|UUU|UAC|CAG|UUA|GAG|AAU|UAC|UGA'
x = ''
convert = {
'A' : 'U',
'G' : 'C'
}
for letter in i:
y += i
if letter == "|":