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
/** | |
* Is a selector returns only one result | |
* @param {String} selector - number of threads to run | |
* @return {Boolen} result | |
*/ | |
const isUniqueSelector = (selector) => { | |
const result = document.querySelectorAll(selector); | |
if (result && result.length === 1) | |
return true; | |
return false; |
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
@echo off | |
setlocal EnableExtensions EnableDelayedExpansion | |
pushd "%~dp0" | |
:Download_7zip | |
set version=7z1803 | |
appveyor DownloadFile https://www.7-zip.org/a/%version%-src.7z | |
7z x %version%-src.7z | |
:Patch |
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 fix to width | |
// @namespace https://addons.mozilla.org | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match http://*/* | |
// @match https://*/* | |
// @grant none | |
// @run-at document-start |
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
version: 1.0.{build} | |
build_script: | |
- cmd: >- | |
C:\msys64\usr\bin\pacman -Syyuu --noconfirm | |
C:\msys64\usr\bin\pacman -Suu --noconfirm | |
appveyor DownloadFile https://gist.github.com/myfreeer/bef0503907b9559d604c89f9b630a62b/raw/build-dnscrypt-proxy.sh | |
set MSYSTEM=MINGW64 |
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
From ab8255b36ef03ba415b88a514bf52527cc11d563 Mon Sep 17 00:00:00 2001 | |
From: myfreeer <[email protected]> | |
Date: Fri, 15 Sep 2017 09:17:33 +0800 | |
Subject: [PATCH] webp: change default options | |
--- | |
src/photoshop/WebP.cpp | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
diff --git a/src/photoshop/WebP.cpp b/src/photoshop/WebP.cpp |
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 | |
# https://unix.stackexchange.com/a/40897 | |
# float number calc | |
calc() { | |
awk "BEGIN{print $*}"; | |
return $? | |
} | |
LANG=C | |
duration="" |
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 网盘自动填写密码【增强版】 | |
// @description 网盘自动填写提取密码【增强版】+网盘超链接与提取码融合。 | |
// @author 极品小猫 | |
// @namespace http://www.cnblogs.com/hkmhd/ | |
// @homepage https://greasyfork.org/scripts/13463 | |
// @supportURL https://greasyfork.org/scripts/13463/feedback | |
// @version 2.5.3.1 | |
// @date 2015.10.30 | |
// @modified 2017.07.19 |
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 Zhihu Real Image | |
// @name:zh-CN 知乎真实图片 | |
// @namespace myfreeer | |
// @version 0.1 | |
// @description Replace lazy-loaded and blurred canvas with real image (causing many errors in console) | |
// @description:zh-CN 将懒加载的模糊的canvas替换为真实图片(会导致控制台产生大量错误) | |
// @author myfreeer | |
// @match https://*.zhihu.com/question/* | |
// @match http://*.zhihu.com/question/* |
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
@echo off | |
setlocal EnableExtensions EnableDelayedExpansion | |
echo. Batch DPI Modifier for Photoshop | |
echo. Required a sendinput.exe from https://github.com/myfreeer/sendinput/releases/latest | |
echo. | |
:Num | |
set /p "num=Enter Number of Files:" | |
if "%num%"=="" goto :Num | |
echo. | |
:Dpi |
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
-- optimize performance for 4k | |
-- on high-res (width > 1920) videos: | |
-- pre-scale high-res to half the size using lavfi scale filter | |
-- change deband to no | |
-- change correct-downscaling to no | |
-- on normal-res videos: | |
-- revert everything back | |
-- from https://github.com/mpv-player/mpv/blob/39e04e929483847a3e0722d86d53f69837ed99db/TOOLS/lua/autocrop.lua | |
function del_filter_if_present(label) |