Skip to content

Instantly share code, notes, and snippets.

View JoshuaCWebDeveloper's full-sized avatar
💾
Data error (cyclic redundancy check)

Joshua Carter JoshuaCWebDeveloper

💾
Data error (cyclic redundancy check)
View GitHub Profile
@JoshuaCWebDeveloper
JoshuaCWebDeveloper / userscript.js
Last active April 4, 2024 18:35
Hide Twitter Full Sidebar Trending
// ==UserScript==
// @name Hide Trending Articles
// @namespace http://tampermonkey.net/
// @version 2024-04-04
// @description try to take over the world!
// @author You
// @match https://twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// ==/UserScript==
<div id="foolshair" style="position: absolute; left: 302px; top: 458px; width: 1cm; height: 1cm; z-index: 9000; pointer-events: none; background: url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAwCAMAAADAQ2FbAAAAXVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC5BxTwAAAAH3RSTlMAoZoai3djM6aULgqekIFtTB+tg3ppWEg+NyQQtoYngfkOTAAAAJFJREFUKM+NzkkSgzAMRFEwng22mack9z9m9l9VIVq+klrdPE1HcA4QN56UBDERYC1TNf+okyED4H6xnM6sMrHKewakiSmrYhe/A6Lnilko7QG4xNGqKYMVMQ4wtlyponARwdk8vwqVohyl/4iC4x9yiZwofh2UsFF0oZiZYgPl7BtRqBPvKyUvlN1TUribX/MFILEESqUFgTIAAAAASUVORK5CYII=&quot;) center center / contain no-repeat; transform-origin: center center 0px; transform: rotate(307deg);"></div>
@JoshuaCWebDeveloper
JoshuaCWebDeveloper / BookModel.js
Created February 28, 2020 04:13
Example for combining the redux-toolkit and redux-orm libraries
/*
* The redux-orm model and redux-toolkit slice are defined together in the same
* class.
* An export scheme similiar to Ducks is used, where the model class is
* exported in place of the reducer function.
*/
import { Model, fk, many, attr } from 'redux-orm';
import { createSlice } from '@reduxjs/toolkit';