Skip to content

Instantly share code, notes, and snippets.

View benoror's full-sized avatar
🌀
In a quantum state between coding and procrastinating

Ben Orozco benoror

🌀
In a quantum state between coding and procrastinating
View GitHub Profile
@benoror
benoror / functional-spec.md
Last active June 29, 2019 02:35
Sundly Sharing (read-only)

User Story

  • Alice adds Bob as a contact
  • Alice shares his data with Alice
  • Bob now can see Alice Profile & Timeline (timestamped) in their contacts

Mockups

[ Bob.id ](link-to-user-profile/timeline) [Share icon]
Verifying my Blockstack ID is secured with the address 1DAj3qXbJRVG6WTSAJv7DSSN6f5uVwFqBG https://explorer.blockstack.org/address/1DAj3qXbJRVG6WTSAJv7DSSN6f5uVwFqBG

Tech Spec: Cumulus Alpha 0.1

Summary

As explained in the original purpose doc, Cumulus aims to provide a centralized way for sharing health records in a way that a diversity of systems (a.k.a. consumers) can pull & push patient data in an organized way, thus keeping the health records updated and relevant throughout different healthcare providers and the patient itself.

TL;DR; Digital health information should follow the patient throughout modern healthcare providers, and not the other way around

Technology / Components Architecture

@benoror
benoror / draft_rfc_tech_spec_custom-forms-2.5.md
Last active January 18, 2018 03:15
(DRAFT) Pre-Tech Spec: Custom Forms 2.5

(DRAFT) Pre-Tech Spec: Custom Forms 2.5

ARCHITECTURE


As-is Now

img_20170406_122039339

+------+ +-----+ +-----+ +-----+
| | | | | | | |
| Foo +-->| Bar +---+ Baz |<--+ Moo |
| | | | | | | |
+------+ +-----+ +--+--+ +-----+
^ |
| V
.-------------+-----------------------.
@benoror
benoror / is-empty-object.js
Last active November 18, 2016 16:22
app/helpers/is-empty-object.js
/*
* Helper to detect an empty Object ( {} )
* More info: https://github.com/emberjs/rfcs/issues/82
*/
import Ember from 'ember';
const { Helper, isBlank } = Ember;
export function isEmptyObject(params) {
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@benoror
benoror / predict_cd.js
Created October 3, 2016 22:07
Briand endpoint (pseudocode)
function predict_cd(options = {}) {
if(!options.cause) {
return Error("c'mon, you need at least a cause!");
}
cause = options.cause;
// optional to increase % confidence
gender = options.gender || null;
age = options.age || null;
pet_name = options.pet_name || null;
// do your magic
@benoror
benoror / array.js
Last active October 3, 2016 07:13 — forked from NuckChorris/array.js
In Ember-CLI, transforms are located in app/transforms/name.js
// app/transforms/array.js
import Ember from 'ember';
import DS from 'ember-data';
export default DS.Transform.extend({
deserialize: function(value) {
if (Ember.isArray(value)) {
return Ember.A(value);
} else {
return Ember.A();
@benoror
benoror / controllers.application.js
Last active September 18, 2016 23:59
testing-serializers-david-tang
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});