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
var cheerio = require('cheerio'); | |
var fs = require('fs'); | |
var parseurl = require('parseurl'); | |
var queryString = require('querystring'); | |
var path = require('path'); | |
let files = fs.readdirSync('htmls'); | |
let toAnalyze = []; | |
for(x in files){ |
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 glob | |
import math | |
import numpy | |
from pathlib import Path | |
from PIL import Image | |
Image.MAX_IMAGE_PIXELS = 933120000 | |
zoomdir = "C:/Users/tkon9/Desktop/RDR2MapStream/content/maps/sat" # Essentially the output directory |
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 LSE Moodle automation | |
// @namespace http://tkon.nl | |
// @version 0.1 | |
// @description Automate tedious LSE moodle login stuff | |
// @author You | |
// @match https://moodle.lse.ac.uk/* | |
// @icon https://moodle.lse.ac.uk/theme/image.php/synergycustom/theme/1633074455/favicon | |
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js | |
// @grant none |
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
--- | |
/* Demo implementation of an Astro image component that | |
fetches a remote image and stores it locally, so it is | |
hosted on the same platform. | |
Can be expanded to generate srcset images for different | |
screen sizes and/or compress images for good Lighthouse | |
scores. | |
My usecase: using Notion as my CMS and saving thumbnails |
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
/* ==UserStyle== | |
@name Xcloud Scrollbar Fix - 1/17/2022, 10:14:28 PM | |
@namespace github.com/openstyles/stylus | |
@version 1.0.1 | |
@description Fixes the fullscreen vertical scrollbar bug on Xbox Cloud Gaming | |
@author tkon.nl | |
==/UserStyle== */ | |
@-moz-document regexp("https://www.xbox.com/(.+)/play/(.+)") { | |
html.fullscreen { | |
overflow: hidden !important; |
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 got from "got"; | |
import {CookieJar} from "tough-cookie"; | |
import {writeFile} from 'fs/promises'; | |
let cookieJar = new CookieJar(); | |
let client = got.extend({ cookieJar }); | |
// Enter details here | |
const settings = { | |
insitution: "", // This is part of your login url (e.g. https://op.responsive.net/lt/lse/ --> lse) |
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 express from 'express'; | |
import rateLimit from 'express-rate-limit'; | |
import isValidDomain from 'is-valid-domain'; | |
import fetch from 'node-fetch'; | |
import Feed from 'pfeed'; | |
const app = express(); | |
const port = 2847; | |
/* Rate limiter */ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Browsy</title> | |
<script src="/socket.io/socket.io.js"></script> | |
<script> | |
var socket = io(); | |
// var viewer = document.getElementById("viewer"); |
OlderNewer