[0-9]+ matches non-empty sequence of digits
[A-Z][a-z]* matches a capital + small letters
\s+ matches whitespace (non-empty)
\S+ matches non-whitespace
[nvj] matches any character that is either n, v or j
[^abc] – matches any character that is not a, b or c
[0-9] – character range: matches any digit from 0 to 9
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"os" | |
"path/filepath" | |
"github.com/chzyer/readline" | |
"github.com/fr3fou/polo/polo" |
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
# Match on all types of devices but joysticks | |
Section "InputClass" | |
Identifier "libinput pointer catchall" | |
MatchIsPointer "on" | |
MatchDevicePath "/dev/input/event*" | |
Driver "libinput" | |
EndSection | |
Section "InputClass" | |
Identifier "libinput keyboard catchall" |
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
{ | |
"Parse int from console.": { | |
"prefix": "icr", | |
"body": [ | |
"int.Parse(Console.ReadLine());", | |
"$1" | |
], | |
"description": "Parses int from console." | |
}, | |
"Parse double from console.": { |
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
using System; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
namespace KeyboardHook | |
{ | |
public class KeyboardHook | |
{ | |
public event KeyboardHook.KeyboardHookCallback KeyDown; |