Skip to content

Instantly share code, notes, and snippets.

View xixiaofinland's full-sized avatar

Xi Xiao xixiaofinland

View GitHub Profile
@LukeMathWalker
LukeMathWalker / audit.yml
Last active July 21, 2026 06:06
GitHub Actions - Rust setup
name: Security audit
on:
schedule:
- cron: '0 0 * * *'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
@hroi
hroi / fish_jj_prompt.fish
Last active July 1, 2026 22:12
Jujutsu (jj) prompt for fish-shell
# Place me in ~/.config/fish/functions
# Then add me to `fish_vcs_prompt`: `funced fish_vcs_prompt` and save it to
# your personal config: `funcsave fish_vcs_prompt;`
function fish_jj_prompt --description 'Write out the jj prompt'
# Is jj installed?
if not command -sq jj
return 1
end
@aidan-harding
aidan-harding / MultiMap.cls
Created August 30, 2024 15:22
A MultiMap for Salesforce Apex
/**
* @author aidan@processity.ai
* @date 29/08/2024
* @description A map where the items are lists of items and you can provide a function for how values map to keys.
* Oh, if we had generics....
*/
public class MultiMap {
private Map<Object, List<Object>> theMap;
private Type listType;