With Next.js, you can load remote content using
next-mdx-remote.
For example, this section of the page was generated using a GitHub Gist as the source.
| vim.cmd([[set mouse=]]) | |
| vim.cmd([[set noswapfile]]) | |
| vim.opt.winborder = "rounded" | |
| vim.opt.tabstop = 2 | |
| vim.opt.wrap = false | |
| vim.opt.cursorcolumn = false | |
| vim.opt.ignorecase = true | |
| vim.opt.shiftwidth = 2 | |
| vim.opt.smartindent = true | |
| vim.opt.number = true |
| /** | |
| * Convert a list on Quizlet into CSV-formatted text. | |
| * Usage: | |
| * i) Copy and paste into your browser's console. | |
| * ii) Run it! | |
| */ | |
| (() => { | |
| const terms = document.querySelectorAll('.SetPageTerms-term'); | |
| const csv = []; |
With Next.js, you can load remote content using
next-mdx-remote.
For example, this section of the page was generated using a GitHub Gist as the source.
| // ==UserScript== | |
| // @name Tabroom Headings | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Adds a button to cengage to scroll to the first assignment that's not completed already. | |
| // @author You | |
| // @match https://www.tabroom.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=tabroom.com | |
| // @grant none | |
| // ==/UserScript== |
| // ==UserScript== | |
| // @name Cengage Scroll | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Adds a button to cengage to scroll to the first assignment that's not completed already. | |
| // @author You | |
| // @match https://ng.cengage.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=ng.cengage.com | |
| // @grant none | |
| // ==/UserScript== |
| // ==UserScript== | |
| // @name Twitter Improved | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.2 | |
| // @description Hide tweets with over 5k likes. | |
| // @author eiioth | |
| // @match *://*.twitter.com/home | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com | |
| // @grant none | |
| // ==/UserScript== |
| #!/bin/bash | |
| yarn add -D tailwindcss postcss autoprefixer | |
| npx tailwindcss init -p | |
| # replace tailwind.config.js with the following | |
| STRING="/** @type {import('tailwindcss').Config} */ | |
| module.exports = { | |
| content: [ | |
| \"./pages/**/*.{js,ts,jsx,tsx}\", | |
| \"./components/**/*.{js,ts,jsx,tsx}\", |
| // ==UserScript== | |
| // @name War Room Dark Mode | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Adds dark mode options to War Room for users on non-chromium browsers | |
| // @author Eliot Hertenstein | |
| // @match https://war.elk.sh/* | |
| // @icon https://emojicdn.elk.sh/%F0%9F%8E%9B%EF%B8%8F | |
| // @grant none | |
| // @run-at document-start |
| Date.prototype.addHours= function(h){ | |
| this.setHours(this.getHours()+h); | |
| return this; | |
| } | |
| function updateCalendar() { | |
| let response = UrlFetchApp.fetch('https://api.openweathermap.org/data/2.5/onecall?lat={{YOUR LATITUTE HERE}}&lon={{YOUR LONGITUDE HERE}}&units=imperial&appid={{YOUR API KEY HERE}}') | |
| let weather = JSON.parse(response.getContentText()); |
| <?php | |
| /* | |
| Migrate from User Profile Picture to Simple Local Avatars | |
| Allows sites to easily move away from the WP User Avatar plugin and switch to Simple Local Avatars instead. | |
| Run by invoking with WP CLI like so: | |
| `wp eval-file migrate-wp-user-avatar.php` | |
| Author: Eliot Hertenstein (forked from Philip John) | |
| Author URI: http://eliothertenstein.com | |
| License: GPLv2 | |
| Note: I take no responsibility for data loss throught the use of this script. Use at your own risk |