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 Hide Elon Musk (or other unblockable user) tweets | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0.1 | |
// @description Hide tweets from @elonmusk on X.com (formerly Twitter); change username for any other user | |
// @author Bart Read | |
// @match https://*.x.com/* | |
// @grant none | |
// ==/UserScript== |
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
#!/bin/bash | |
# Note, if using Cygwin, ImageMagick is *not* installed by default and will need to | |
# be manually selected during the install. | |
# Using these turns out to be much less effort than firing up GIMP and, moreover, | |
# all of these operations are of course scriptable for batch processing of images. | |
# RESIZING AN IMAGE | |
# Note that if file extensions don't match, the image will be converted |
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
function noop() { } | |
function identity(x) { return x; }; |
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 config = { | |
delay: 200, | |
duration: 500, | |
easing: function gimmeSomeEase(thingummy) { | |
var aResult = ...; | |
// Maybe do some stuff here | |
return aResult; | |
}, | |
tick: { | |
tick$$1: function () { |
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 delay = config.delay || 0, | |
duration = config.duration || 300, | |
easing = config.easing || identity, | |
tick$$1 = (config.tick ? config.tick.tick$$1 : noop) || noop, | |
css = config.css; |
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 { delay = 0, duration = 300, easing = identity, tick: tick$$1 = noop, css } = config; |
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
'use strict'; | |
(function () { | |
var RADIANS_IN_A_CIRCLE = 2 * Math.PI; | |
var ONE_DEGREE = RADIANS_IN_A_CIRCLE / 360; | |
var lookup = []; | |
for (var index = 0; index < 360; ++index) { | |
lookup[index] = Math.tan(index * ONE_DEGREE); |
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
'use strict'; | |
(function () { | |
const RADIANS_IN_A_CIRCLE = 2 * Math.PI; | |
const ONE_DEGREE = RADIANS_IN_A_CIRCLE / 360; | |
let lookup = []; | |
for (let index = 0; index < 360; ++index) { | |
lookup[index] = Math.tan(index * ONE_DEGREE); |
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
'use strict'; | |
(function () { | |
var RADIANS_IN_A_CIRCLE = 2 * Math.PI; | |
var ONE_DEGREE = RADIANS_IN_A_CIRCLE / 360; | |
var lookup = []; | |
for (var index = 0; index < 360; ++index) { | |
lookup[index] = Math.cos(index * ONE_DEGREE); |
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
'use strict'; | |
(function () { | |
const RADIANS_IN_A_CIRCLE = 2 * Math.PI; | |
const ONE_DEGREE = RADIANS_IN_A_CIRCLE / 360; | |
let lookup = []; | |
for (let index = 0; index < 360; ++index) { | |
lookup[index] = Math.cos(index * ONE_DEGREE); |
NewerOlder