Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
use tauri_hotkey as hotkey; // Discontinued, but v0.1.2 is working fine as of 2021-10-14 | |
use std::io::{stdin, Read}; | |
fn main() { | |
let spec = "ctrl+alt+r"; | |
let mut hk = hotkey::HotkeyManager::new(); | |
let key = hotkey::parse_hotkey(&spec).unwrap(); | |
println!("Listening for {}. Enter to exit", &spec); | |
hk.register(key, move || println!("{} pressed!", &spec)).unwrap(); | |
stdin().read(&mut [0]).unwrap(); // wait for "enter" |
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 pathlib import Path | |
import re, sys, os | |
def clean_note_lines(title: str, lines: list[str]): | |
""" | |
Remove any lines matching title | |
""" | |
nn = re.compile(r"[^a-zA-Z0-9]") | |
def norm(s): |
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
' | |
' Reply To All in Plain Text, with Linux-style quoting | |
' | |
' This allows you to use Outlook to reply to a mailinglist | |
' | |
' Copyright 2009 Matthijs van de Water | |
' | |
Sub ReplyAllPlain() | |
Dim app As New Outlook.Application |
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
<html> | |
<head> | |
<title>Labyrinten</title> | |
</head> | |
<body> | |
<script> | |
function dragstart_handler(ev) { | |
ev.dataTransfer.setData("text/plain", ev.target.id); | |
} | |
function dragover_handler(ev) { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 requests | |
import json | |
from pathlib import Path | |
import time | |
import subprocess | |
import re | |
from datetime import datetime | |
import logging | |
import argparse |
NewerOlder