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
class BetterMap<k, v> extends Map<k, v> { | |
update(key:k, updater: (v:v, k:k) => v, notset:v = undefined) { | |
if(this.has(key)) this.set(key, updater(this.get(key), key)) | |
else this.set(key, notset) | |
} | |
filter(predicate: (v:v, k:k) => boolean) { | |
const newMap = new BetterMap<k, v>() | |
const entries = Array.from(this.entries()) | |
for(const [key, value] of entries) { |
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
#!/bin/bash | |
# | |
# author: Sergio Ribera | |
# github: @SergioRibera | |
# | |
set -e | |
export SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# install | |
sudo apt-get install proxychains | |
sudo apt-get install tor | |
# then update the files /etc/proxychains.conf and /etc/tor/torrc with the given config | |
# restart tor server | |
sudo service restart tor |
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
You want to use a live wallpaper in x11? | |
Great!!...but It come as a cost. | |
I did experiment with .gif backend and non hardware accelerate backend, It sucks. | |
CPU usage was so high (40% up just for idle), unacceptable for my laptop. | |
Running with those backend for such a really long time will slowly turn your laptop into the hot potato. | |
But don't be upset, we can reduce those cost. | |
Using the video player with hardware video decoding support can reduce the cost. |
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
class BetterMap<k, v> extends Map<k, v> { | |
update(key:k, updater: (v:v, k:k) => v, notset:v = undefined) { | |
if(this.has(key)) this.set(key, updater(this.get(key), key)) | |
else this.set(key, notset) | |
} | |
filter(predicate: (v:v, k:k) => boolean) { | |
const newMap = new BetterMap<k, v>() | |
const entries = Array.from(this.entries()) | |
for(const [key, value] of entries) { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
From e7acb9ce6e1785b2c2166ddad9705fea779e3e14 Mon Sep 17 00:00:00 2001 | |
From: example <[email protected]> | |
Date: Mon, 9 May 2016 17:23:50 +0300 | |
Subject: [PATCH] vo_opengl: Super-xBR: add antiring and offset-bias suboptions | |
Add Hyllian's tweakable antiringing algorithm. superxbr-antiring | |
suboption can be between 0.0 and 1.0 (default=0). Add offset-bias | |
setting to tweak how Super-xBR is applied, setting this to lower values | |
can help with having thinner edges. | |
superxbr-offset-bias suboption can be between 0.01 and 1.0 |
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
// vim: set ft=glsl: | |
/* | |
LumaSharpenHook 0.3 | |
original hlsl by Christian Cann Schuldt Jensen ~ CeeJay.dk | |
port to glsl by Anon | |
It blurs the original pixel with the surrounding pixels and then subtracts this blur to sharpen the image. | |
It does this in luma to avoid color artifacts and allows limiting the maximum sharpning to avoid or lessen halo artifacts. |
NewerOlder