Skip to content

Instantly share code, notes, and snippets.

@p2
p2 / autoflask-patch.diff
Created March 5, 2014 22:32
Patch for autoflask to sort docstrings by path and group by endpoint/method
diff --git a/httpdomain/sphinxcontrib/autohttp/flask.py b/httpdomain/sphinxcontrib/autohttp/flask.py
--- a/httpdomain/sphinxcontrib/autohttp/flask.py
+++ b/httpdomain/sphinxcontrib/autohttp/flask.py
@@ -93,7 +93,15 @@
def make_rst(self):
app = import_object(self.arguments[0])
- for method, path, endpoint in get_routes(app):
+
+ # order by paths, remember last path per endpoint
@p2
p2 / UrTUpdater-crash-2014-08-07.crash
Created August 8, 2014 02:59
UrTUpdater-crash-2014-08-07
Process: UrTUpdater [3031]
Path: /Applications/Xgames/*/UrTUpdater.app/Contents/MacOS/UrTUpdater
Identifier: @BUNDLEIDENTIFIER@
Version: ???
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: UrTUpdater [3031]
User ID: 501
Date/Time: 2014-08-07 22:57:38.198 -0400
{
"security": {
"cors": 1,
"description": "This server implements OAuth2 for login",
"http://fhir-registry.smartplatforms.org/Profile/oauth-uris#authorize": [
{
"valueUri": "https://fhir-dev.healthintersections.com.au:0/oauth2/auth"
}
],
"http://fhir-registry.smartplatforms.org/Profile/oauth-uris#oidc-discovery": [
@p2
p2 / Example-FHIR-codings.md
Last active August 29, 2015 14:20
Example FHIR MedicationPrescription codings

Example FHIR codings

Example MedicationStatement resources on how certain scenarios can be stated. Only the parts relevant to the dosage are shown, Patient and Medication references as well as dates should be present as well.


Medication is taken daily, not further specified when:

@p2
p2 / Example-FHIR-codings-(basic).md
Created July 10, 2015 10:08
Example 🔥FHIR MedicationPrescription codings

Example FHIR codings (Basic Review)

Example MedicationStatement resources on how certain scenarios can be stated. Only the parts relevant to the dosage are shown, Patient and Medication references as well as dates should be present as well.


Medication is taken, as directed:

@p2
p2 / yesnodontknow.json
Last active August 29, 2015 14:24
🔥FHIR ValueSet: Yes/No/Don't know
{
"resourceType": "ValueSet",
"status": "draft",
"identifier": {
"system": "https://smarthealthit.org/ValueSet/questionnaire-yesnodontknow"
},
"name": "Yes/No/Don't Know",
"description": "Captures simple yes-no-don't know answers",
"compose": {
"import": [
@p2
p2 / convert.html
Created August 22, 2011 04:29
A bookmarklet that converts inches to cm and feet to m. Can be expanded to convert other units as well. Visit www.ossus.ch/Convert.html, drag the link shown there to your bookmark bar and when you're on a website that needs conversion, click the boomarkle
<h1>Convert Bookmarklet</h1>
<p>A bookmarklet to (currently) convert <b>feet to cm</b> and <b>inches to Meter</b> on any website.</p>
<p>Drag this link to your bookmark bar and click it when you're on a website you want to convert: <a href="javascript:(function(){var head=document.getElementsByTagName('head')[0],script=document.createElement('script');script.type='text/javascript';script.src='http://www.ossus.ch/convert.js?'+Math.floor(Math.random()*99999);head.appendChild(script);})(); void 0">Convert</a>
</p>
@p2
p2 / Custom CSS
Created February 22, 2012 15:28
Tumblr Blog Page
h3 {
margin-bottom: 0.5em;
}
#header {
margin-bottom: 40px;
padding-top: 40px;
}
#header h1 a.no_header {
font-family: Palatino, Helvetica, sans-serif;
@p2
p2 / TerminalOutput.sh
Created July 18, 2012 23:59
Error installing gnome-doc-utils
$ brew update
Updated Homebrew from 612e0b1c to c4b88b2a.
==> Updated Formula
ddrescue fbida geeqie
$ brew doctor
Your system is raring to brew.
$ brew uninstall libxml2
Uninstalling /usr/local/Cellar/libxml2/2.8.0...
$ brew install libxml2 --with-python
==> Downloading ftp://xmlsoft.org/libxml2/libxml2-2.8.0.tar.gz