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
eval $(xdotool getmouselocation --shell) | |
while :; do | |
XOLD=$X | |
YOLD=$Y | |
eval $(xdotool getmouselocation --shell) | |
[ $(( XOLD - X )) -gt 10] && echo "Down swipe" | |
sleep 0.1 | |
done |
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
# Generated by iptables-save v1.6.2 on Mon Jul 9 10:34:48 2018 | |
*nat | |
:PREROUTING ACCEPT [1742:117923] | |
:INPUT ACCEPT [1740:117217] | |
:OUTPUT ACCEPT [32:2676] | |
:POSTROUTING ACCEPT [32:2676] | |
COMMIT | |
# Completed on Mon Jul 9 10:34:48 2018 | |
# Generated by iptables-save v1.6.2 on Mon Jul 9 10:34:48 2018 | |
*raw |
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
pub mod text; | |
use text::zip::fromString; | |
use text::zip::toString; | |
fn main() { | |
println!("{}", fromString("a").toString()) | |
} |
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
pub fn toString(&self) -> String { | |
self.up.push(& self.cur); | |
self.up.extend(self.down.into_iter()); | |
self.up.join("\n") | |
} |
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
use std::cmp; | |
/// Position within a line | |
pub type Pos = usize; | |
/// Text zipper | |
pub struct Zip<'a> { | |
/// Lines before the current line | |
prev: Vec<&'a str>, |
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
use std::cmp; | |
use std::mem; | |
/// Position within a line | |
pub type Pos = usize; | |
/// Text zipper | |
pub struct Zip<'a> { | |
/// Lines before the current line | |
prev: Vec<&'a str>, |
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
let (Just requestVerification) = loginPage ^. responseBody | |
. to parseTags | |
. to (find (~== "<input name='__RequestVerificationToken'>")) | |
& mapped | |
%~ fromAttrib "__RequestVerificationToken" |
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
ncurses = (pkgs.ncurses.overrideAttrs (oldAttrs: { | |
configureFlags = oldAttrs.configureFlags ++ | |
pkgs.lib.optionals pkgs.targetPlatform.isMinGW [ | |
"--enable-sp-funcs" | |
"--enable-term-driver" | |
]; | |
preFixup = pkgs.lib.optionalString (!pkgs.hostPlatform.isCygwin && !enableStatic) '' | |
rm "$out"/lib/*.a | |
''; |
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
{ pkgs, ... }: | |
{ | |
imports = [ /etc/nixos/hardware-configuration.nix ]; | |
boot = { | |
kernelParams = [ "quiet" "splash" "acpi_osi=Linux" ]; | |
loader = { | |
systemd-boot.enable = true; |
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
{ pkgs, ... }: | |
_: | |
[] |