Updated: Just use qutebrowser (and disable javascript). The web is done for.
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
// Compile as kspfix.so and load with LD_PRELOAD | |
#define _GNU_SOURCE | |
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <dlfcn.h> | |
#include <GL/glx.h> |
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
-- Allow changing a property with by zoom-adjusted amount | |
function zoom_invariant_add(prop, amt) | |
amt = amt / 2 ^ mp.get_property_number("video-zoom") | |
mp.set_property_number(prop, mp.get_property_number(prop) + amt) | |
end | |
-- Resets the pan if the entire image would be visible | |
function zoom_check_center() | |
local zoom = mp.get_property_number("video-zoom") | |
local rot = mp.get_property_number("video-rotate") * math.pi / 180 |
I hereby claim:
- I am haasn on github.
- I am haasn (https://keybase.io/haasn) on keybase.
- I have a public key ASAN_wtvtyoVO_75tpC2zkdYGpL76sjwNWPDf_1p8ecGIAo
To claim this, I am signing this object:
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 Control.Monad (replicateM, guard) | |
import Data.Ord (comparing) | |
import Data.List (maximumBy) | |
-- Type definitions | |
data Item = Item | |
{ name :: String | |
, wdmg :: Int | |
, udmg :: Int |
= Running benchmarks =
'bilinear': 2576 frames in 3.659612 seconds => 1.420657 ms/frame (703.90 FPS)
'bicubic': 1904 frames in 3.001828 seconds => 1.576590 ms/frame (634.28 FPS)
'deband': 1104 frames in 3.994922 seconds => 3.618589 ms/frame (276.35 FPS)
'deband_heavy': 720 frames in 7.270412 seconds => 10.097795 ms/frame (99.03 FPS)
'bilinear': 9616 frames in 2.575911 seconds => 0.267878 ms/frame (3733.05 FPS), gpu time: 0.255625 ms
'bicubic': 9856 frames in 2.944947 seconds => 0.298797 ms/frame (3346.75 FPS), gpu time: 0.286974 ms
'deband': 3024 frames in 2.960075 seconds => 0.978861 ms/frame (1021.60 FPS), gpu time: 0.963953 ms
'deband_heavy': 1264 frames in 2.983192 seconds => 2.360120 ms/frame (423.71 FPS), gpu time: 2.343436 ms
'polar': 3584 frames in 2.723650 seconds => 0.759947 ms/frame (1315.88 FPS), gpu time: 0.758262 ms