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 Data.Function | |
stride l 0 = [] | |
stride l by = | |
let index = zip [0..] -- tag elements with index | |
check_index = (==0).(`mod` by).fst -- test index | |
deindex = map snd -- strip index tags | |
in l & index & (filter check_index) & deindex |
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
-- solo.hs // usage: solo <pkgs> | |
import Data.Function ((&)) | |
import Data.List (isInfixOf, isSuffixOf, nub, sort) | |
import Data.List.Split (splitOn) | |
import System.Environment (getArgs) | |
import System.Process (readProcess) | |
import Text.Regex.PCRE ((=~)) | |
eopkg_info :: [String] -> IO [String] |
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
! uBlock Origin rules for a cleaner, calmer, less commercial Discord interface | |
! gift advert in input box | |
discord.com##.buttons-3JBrkn > .grow-q77ONN | |
! sticker and gif buttons in input box | |
discord.com##div.buttonContainer-28fw2U > .grow-q77ONN.colorBrand-3pXr91.lookBlank-3eh9lL.button-38aScr > .button-318s1X.button-3AYNKb.contents-18-Yxp | |
! ads in server list | |
discord.com##.scrollerBase-289Jih.none-2Eo-qx.scroller-1Bvpku > div.listItem-1hlISG > .listItemWrapper-t7zeg3 |
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
""" | |
Win32 virtual-key (VK) constants for Python, extracted from winuser.h with | |
comments. | |
Original copyright notice printed below: | |
/**************************************************************************** | |
* * | |
* winuser.h -- USER procedure declarations, constant definitions and macros * | |
* * | |
* Copyright (c) Microsoft Corporation. All rights reserved. * |