Skip to content

Instantly share code, notes, and snippets.

View djgoku's full-sized avatar
💭
🧑‍💻🔥

Johnny5 djgoku

💭
🧑‍💻🔥
  • Overland Park, KS
View GitHub Profile
@djgoku
djgoku / gist:c4e5dfd1eaedf354aecb55002462d5ba
Last active May 19, 2025 17:01
AshPhoenix.Form.add_error to alert the user that no results found for email address.
# read action
read :user_search do
argument :email_address, :string, allow_nil?: false
manual JiraDashboard.Actions.Read
prepare fn query, _ ->
Ash.Query.after_action(query, fn
query, [] ->
{
:error,
nixpkgs-commit % rg 0d534
devbox.json
14: "nixpkgs": {"commit": "0d534853a55b5d02a4ababa1d71921ce8f0aee4c"}
devbox.lock
6: "resolved": "github:NixOS/nixpkgs/0d534853a55b5d02a4ababa1d71921ce8f0aee4c#age"
,
johnny5:.rakudobrew dj_goku$ PANDA_SUBMIT_TESTREPORTS=1 panda install IDNA::Punycode
==> Fetching IDNA::Punycode
==> Building IDNA::Punycode
==> Testing IDNA::Punycode
t/basic.t .. ok
All tests successful.
Files=1, Tests=8, 1 wallclock secs ( 0.01 usr 0.00 sys + 0.47 cusr 0.04 csys = 0.52 CPU)
Result: PASS
==> Installing IDNA::Punycode
Copying blib/lib/IDNA/Punycode.pm to /Users/dj_goku/.rakudobrew/moar-nom/install/share/perl6/site/lib/IDNA/Punycode.pm
johnny5:~ dj_goku$ PANDA_SUBMIT_TESTREPORTS=1 perl6-debug-m --ll-exception ~/.rakudobrew/bin/panda install IDNA::Punycode
>>> LOADING /Users/dj_goku/.rakudobrew/bin/panda
Could not find warnings in any of:
file#lib
file#/Users/dj_goku/.perl6/2015.11-33-gfa3ce11/lib
inst#/Users/dj_goku/.perl6/2015.11-33-gfa3ce11
file#/Users/dj_goku/.rakudobrew/moar-nom/install/share/perl6/lib
file#/Users/dj_goku/.rakudobrew/moar-nom/install/share/perl6/vendor/lib
file#/Users/dj_goku/.rakudobrew/moar-nom/install/share/perl6/site/lib
inst#/Users/dj_goku/.rakudobrew/moar-nom/install/share/perl6
@djgoku
djgoku / clean_up_pod.p6
Last active October 21, 2015 03:39
clean_up_pod.p6
use v6;
my @files <a b>;
for @files {
my $contents = $_.IO.slurp;
$contents.=subst(/\n.'# vim: expandtab shiftwidth=4 ft=perl6'/, '');
spurt $_, $contents;
}