Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"item": [
{
"answer": [
{
"valueString": "Beda"
}
],
"linkId": "last-name"
},
{
"questionnaire": "allergies",
"meta": {
"lastUpdated": "2023-06-06T12:03:29.171353Z",
"versionId": "664",
"extension": [
{
"url": "ex:createdAt",
"valueInstant": "2023-06-06T12:03:29.171353Z"
}
@ir4y
ir4y / acc-edit-diagnoses-fr-translation.yaml
Created July 16, 2021 07:35
Questionnaire translation
item:
- text: Diagnostic
linkId: diagnosis-code
- text: Côté diagnostic
linkId: acc-diagnosis-side
answerOption:
- valueCoding:
code: left
system: 'https://www.acc.co.nz'
display: La gauche
https://docs.google.com/presentation/d/1oejsDvtVuEHWKWAwJn_gHDL7p7zQrxI341fz33xMs24/edit#slide=id.p
#!/bin/bash
fallocate -l 10G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
apt-get install htop
htop
## curl https://gist.githubusercontent.com/ir4y/063a8b1912c3ed6ef03bb463cb2fcffa/raw/8eff8079c3853a11534dfa94fb26acc72ccb12e1/add_swap.sh | bash
@ir4y
ir4y / app.js
Created February 6, 2017 04:09
var responseFromGoogle = axios.get(googleBooksUrl);
var responseFromCrossRef = = axios.get(crossRefUrl);
Promise.all([responseFromGoogle, responseFromCrossRef]).then(function(responses){
var googleData = cleanGoogleBooks(responses[2]);
var crossRefData = cleanCrossRef(responses[1]);
response.send({google: googleData, crossRef: crossRefData});
});
markTree :: Tree () -> State Integer (Tree Integer)
markTree (Leaf _) = do
n <- get
put (n+1)
return (Leaf n)
markTree (Fork l _ r) = do
l' <- markTree l
n <- get
put (n+1)
r' <- markTree r
xx :: [a] -> [a] -> [[a]]
[] `xx` xs = []
xs `xx` [] = []
(a:as) `xx` bs = (a `x` bs) ++ (as `xx` bs)
x :: a -> [a] -> [[a]]
a `x` [] = []
a `x` (b:bs) = [[a,b]] ++ (a `x` bs)
import React from 'react';
import SchemaBranchMixin from 'baobab-react-schemabranchmixin';
const Counter = React.createClass({
displayName: 'Counter',
mixins: [SchemaBranchMixin, ],
schema: {
value: 0,
},