Skip to content

Instantly share code, notes, and snippets.

View michael's full-sized avatar

Michael Aufreiter michael

View GitHub Profile
import React from 'react'
import Link from 'next/link'
const ButtonType = {
primary: 'disabled:opacity-50 inline-flex whitespace-nowrap justify-center rounded-md border border-transparent shadow-sm bg-pink font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-pink sm:w-auto',
secondary: 'disabled:opacity-50 inline-flex whitespace-nowrap items-center justify-center border-2 border-gray-200 rounded-md font-medium text-pink bg-white focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-pink',
white: 'disabled:opacity-50 inline-flex whitespace-nowrap items-center justify-center border border-pink rounded-md font-medium text-pink bg-white focus:outline-none focus:ring-2 focus:ring-white',
delete: 'disabled:opacity-50 inline-flex whitespace-nowrap justify-center rounded-md border border-transparent shadow-sm bg-red-600 font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-red-500 sm:w-auto',
plain: 'disabled:opacity

Ken Customer Journeys

Purchase experience

1. View experience

Visits /read/:article_id

fbq.track('ViewContent', {
[
{
"id": "id",
"owner": "id",
"name": "string",
"title": "string",
"authors": "string[]",
"assets": "id[]",
"createdAt": "date",
"updatedAt": "date",
@michael
michael / menu-spec.js
Last active September 24, 2019 10:34
// menu spec for user menu
const userMenuSpec = {
 name: ‘user-menu’,
 items: [
   { type: ‘command’, label: ‘My documents’ },
   { type: ‘command’, label: ‘User Settings’ },
   { type: ‘separator’ },
   { type: ‘command’, label: ‘Log out’ }
 ]
}

Entry Title

Paving the Way to an Open Health-Information-Knowledge-Base

Summary (250 chars)

Collective use of open software facilitates the creation and exchange of data. Substance would like to introduce this concept to digital publishing in the health domain, enabling consumers to access the most current and accurate research and health-related content.

Entry Description (10000)

@michael
michael / pandoc-output.json
Last active September 21, 2018 08:14
pandoc -f markdown README.md -t json holy crap!
[
{
"docTitle": [],
"docAuthors": [],
"docDate": []
},
[
{
"Header": [
1,
// Github.js 0.7.0
// (c) 2012 Michael Aufreiter, Development Seed
// Github.js is freely distributable under the MIT license.
// For all details and documentation:
// http://substance.io/michael/github
function randomString() {
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
var string_length = 8;
var randomstring = '';
@michael
michael / jats4r-book-citation.xml
Last active October 28, 2017 23:26
JATS4R Citations
<element-citation publication-type="book">
<person-group person-group-type="author">
<name>
<surname>John</surname>
<given-names>Smith</given-names>
</name>
</person-group>
<person-group person-group-type="editor">
<name>
<surname>Jane</surname>
@michael
michael / app.js
Last active August 9, 2017 10:04
Scrolling is a fun
const { Component } = window.substance
window.onload = function() {
SpreadsheetComponent.mount(document.querySelector('.spreadsheet-widget'))
}
class SpreadsheetComponent extends Component {
getInitialState() {
<!DOCTYPE html>
<html>
<head>
<title>Spreadsheet Component Styles</title>
<meta charset="UTF-8">
<style>
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,