This file contains hidden or 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
| $roguerooms_zoomable $mol_view | |
| zoom? 1 | |
| position? / | |
| 0 | |
| 0 | |
| event * | |
| wheel? <=> event_wheel? null | |
| keypress? <=> event_key? null | |
| mousedown? <=> event_mouse_down? null | |
| mousemove? <=> event_mouse_move? null |
This file contains hidden or 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
| // twitter.com | x.com member user list scapper | |
| let tweets = []; // Initialize an empty array to hold all tweet elements | |
| const scrollInterval = 2000; | |
| const scrollStep = 5000; // Pixels to scroll on each step | |
| let previousTweetCount = 0; | |
| let unchangedCount = 0; | |
| const scrollToEndIntervalID = setInterval(() => { |
This file contains hidden or 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 smootherstep(edgeA, edgeB, x) { | |
| // Scale, bias and saturate x to 0..1 range | |
| x = clamp((x - edgeA) / (edgeB - edgeA), 0, 1) | |
| // Evaluate polynomial | |
| return x * x * x * (x * (x * 6 - 15) + 10) | |
| } | |
| function clamp(x, min, max) { | |
| if (x < min) | |
| return min |
This file contains hidden or 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 smoothstep(edgeA, edgeB, x) { | |
| // Scale, bias and saturate x to 0..1 range | |
| x = clamp((x - edgeA) / (edgeB - edgeA), 0, 1); | |
| // Evaluate polynomial | |
| return x * x * (3 - 2 * x); | |
| } | |
| function clamp(x, min, max) { | |
| if (x < min) | |
| return min |
This file contains hidden or 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 mix(a, b, amount) { | |
| return a + amount * (b - a) | |
| } |