Skip to content

Instantly share code, notes, and snippets.

@NyanHelsing
NyanHelsing / !waitlift.js
Last active April 19, 2025 14:30
WaitLift
/**
* curryFlip(fn) takes a two-argument function `fn` and returns
* a curried function that applies `fn` with its arguments reversed.
*/
const curryFlip = (fn) => a => b => fn(b, a);
/**
* Returns an array of promises (or values) where each item
* is [key, await transform(value)].
*/
@NyanHelsing
NyanHelsing / chat-gpt-elaboration.md
Last active February 17, 2025 14:43
Social Security Payment System Proof Of Concept in Ada

Below is a proof‐of‐concept Ada application that manages and executes social security payouts. The design is modular, splitting the functionality into several packages:

  1. Social_Security_Types: Defines the key types (e.g. the Beneficiary record).
  2. Beneficiary_Manager: Contains operations for managing a list of beneficiaries (listing, updating, etc.).
  3. Payment_Processor: Contains the payout logic for a single beneficiary.
  4. Social_Security_Payout (Main Program): Sets up a fixed list of beneficiaries and calls the processing routines.

This structure leverages Ada’s strong typing and package modularity to improve maintainability and correctness. Ada’s design-by-contract features (preconditions, postconditions) and exception handling (not shown here for brevity) would further enhance the correctness of a production system.

Suitability & Workarounds:

@NyanHelsing
NyanHelsing / PinnedGist.md
Created January 27, 2022 14:58
atri-al pinned gist

asdfsadfsadf

import Ember from 'ember';
export default Ember.Route.extend({
panelActions: Ember.inject.service('panelActions'),
model() {
return {
submission_form_name: 'Preprints Submission Form',
sections: [
{name: 'upload', divId: 'preprint-form-upload', param: 'upload_section'},

Keybase proof

I hereby claim:

  • I am exprobitasfiducia on github.
  • I am birdbrained (https://keybase.io/birdbrained) on keybase.
  • I have a public key ASB2B6uKVVbvyWgV6HxMt1G_qfrfVFhoTS8M3Jde6PiHgQo

To claim this, I am signing this object: