Philippe Creux

95 Followers
87 Following
137 Posts
Software developer.
Bloghttps://pcreux.com
Pronounshe/him

Complex authorization rules defined with boolean expressions are hard to debug and don't allow us to tell users _why_ they can't perform a task.

That's what pundit and activepolicy rely on, though. Maybe cancan did better?

I put together a little something to define rules and compose them so that we can introspect them. WDYT?

https://gist.github.com/pcreux/16c7689cb2c5a6d28def22609bc26089

"Content missing" no more!
Here is a handler to embed the response when turboframe fails to load.
https://gist.github.com/pcreux/3cecd8d51c0d3ccc535f2b01d979a13e
Datadog's Security tab has a great UI: informative + marketing.
Le Louvre Museum even has a painting of Jeff Besos writing Amazon's business plan.
I wish all websites offered a /favicon.ico so that adding an icon next to an external link was just one <img> tag away.
Years ago, I created https://ti.cx as a Secret Santa gift for someone at Kickstarter. When combined with https://github.com/liquidx/webviewscreensaver, it makes for a such a nice screensaver.
ti.cx

That HTML-to-text in SQL didn't turn as bad as I thought. 😅

Adding a command palette to an admin UI is pretty simple with https://github.com/ssleptsov/ninja-keys.

I just registered all menu bar links as actions and boom we can all happily CMD+K around the UI.

Low effort / high return!

GitHub - ssleptsov/ninja-keys: Keyboard shortcuts interface for your website. Working with static HTML, Vanilla JS, Vue, React, Svelte.

Keyboard shortcuts interface for your website. Working with static HTML, Vanilla JS, Vue, React, Svelte. - ssleptsov/ninja-keys

GitHub
Hey CircleCI, if you ever want to start offering merch, here is a design that would resonate with many people. 😆
[BUG] Some packages are no longer installable after test command is removed · Issue #4519 · pypa/setuptools

For those landing on this issue, please see: (thank you @delfick for summarizing this) This functionality has been deprecated for 5 years, there is a separate issue for discussing if there would ha...

GitHub