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
#!/usr/bin/env swift | |
import Cocoa | |
import CoreGraphics | |
// We store the event tap reference globally so we can re-enable it if it's disabled: | |
var eventTapCFMachPort: CFMachPort? | |
// MARK: - Helper to Get Frontmost App Info | |
func frontmostAppInfo() -> (bundleID: String?, windowTitle: String?) { |
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
# requires python 3 | |
import getpass | |
import hashlib | |
import random | |
#from typing import List | |
import sys | |
import math |
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::io; | |
use std::io::Write; | |
fn main() { | |
let mut input = String::new(); | |
let result = io::stdin().read_line(&mut input) | |
.map(|s:usize| input) | |
.and_then(|s:String| s.parse::<u32>()); |
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
function cdf() { cd `find . -type d -name "$1" | head -n1`; } |