Skip to content

Instantly share code, notes, and snippets.

Avatar
☁️
yeet

Simo Aleksandrov fr3fou

☁️
yeet
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am fr3fou on github.
  • I am fr3fou (https://keybase.io/fr3fou) on keybase.
  • I have a public key ASDo8gbD5E_a3zF5-x_eXR4MQcQ1308I70WR1nFfgJfNiwo

To claim this, I am signing this object:

@fr3fou
fr3fou / cloudSettings
Created Nov 1, 2018
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2018-11-01T21:29:33.978Z","extensionVersion":"v3.2.0"}
View 90-libinput.conf
# 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"
View vscode-csharp-snippets.json
{
"Parse int from console.": {
"prefix": "icr",
"body": [
"int.Parse(Console.ReadLine());",
"$1"
],
"description": "Parses int from console."
},
"Parse double from console.": {
View Regex.md

REGEX

[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
View KeyboardHook.cs
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace KeyboardHook
{
public class KeyboardHook
{
public event KeyboardHook.KeyboardHookCallback KeyDown;
You can’t perform that action at this time.