This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clear(); | |
var feeds = Array.prototype.slice.call(document.querySelectorAll("div.yElCb a")), | |
i = 0, p, f, doc = ""; | |
while (feeds[i]) { | |
f = feeds[i]; | |
feeds[i++] = { | |
htmlUrl : f.href, | |
xmlUrl : f.href + 'rss', | |
title : f.innerText.replace('\n', ' ').split(' ')[0], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Really cool calculator app for Teverse in 100 lines or less by dotcomboom/dcb, donut steel | |
]] -- UI objects | |
local frame = teverse.construct("guiFrame", | |
{ -- Parent frame, contains all objects | |
parent = teverse.interface, | |
size = guiCoord(1, 0, 1, 0) | |
}) | |
local topbar = teverse.construct("guiTextBox", | |
{ -- Definitely not ripped from the example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.support.ui import WebDriverWait | |
import shutil | |
import time | |
import os | |
wp_home = 'http://127.0.0.1/wordpress/' | |
wp_themes_folder = 'C:\\wamp64\\www\\wordpress\\wp-content\\themes\\' | |
wp_active_theme = 'twentytwentytwo' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pituophis | |
import os | |
from time import sleep | |
menus_to_download = ['gopher://'] # put your starting menu url here | |
sleep_between_downloads_sec = 0.1 | |
def download_menu(url): | |
req = pituophis.parse_url(url) | |
text = req.get().text() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a python script that reads an Office DOCX file, | |
# and writes a copy of the file that is changed in that | |
# every word that is not bolded or italicized is replaced | |
# with the first letter of the word. | |
# Imports. | |
from docx import Document | |
import re | |
import sys | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# python script to check using mp3guessenc every mp3 file in a directory and guess the encoding | |
# it will get the output from mp3guessenc, and parse out the text after "Maybe this file is encoded by" | |
import os | |
import subprocess | |
import sys | |
import re | |
# make a fancy graph of the results | |
import matplotlib.pyplot as plt | |
import numpy as np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# IMPORTS | |
from mpd import (MPDClient, CommandError) | |
from random import choice | |
from socket import error as SocketError | |
import sys | |
from sys import exit | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Neopets: Custom art/aliases | |
// @namespace http://lince.somnolescent.net | |
// @version 0.1 | |
// @description Replace the art and name shown for pets on the beta home page | |
// @author metalynx | |
// @match http://www.neopets.com | |
// @match http://www.neopets.com/ | |
// @match http://www.neopets.com// | |
// @match http://www.neopets.com/index.phtml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sstream> | |
#include <iostream> | |
#include "windows.h." | |
using namespace std; | |
struct timer { | |
int minutes; | |
int seconds; | |
bool active; | |
string s; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Neopets: Shop Stock Pricer | |
// @namespace http://lince.somnolescent.net | |
// @version 0.2 | |
// @description This script lets you scrape JellyNeo for prices on the shop stock page. Does not auto-submit or otherwise automate activities, though it does send a bunch of search requests to JN when run. Use at your own risk. | |
// @author metalynx | |
// @match http://www.neopets.com/market.phtml?order_by=id* | |
// @match http://www.neopets.com/market.phtml?type=your* | |
// @icon https://www.google.com/s2/favicons?domain=neopets.com | |
// @require https://cdn.jsdelivr.net/npm/axios@~0.21.1/dist/axios.min.js |
NewerOlder