Skip to content

Instantly share code, notes, and snippets.

View michael's full-sized avatar

Michael Aufreiter michael

View GitHub Profile
class Toolbar extends React.Component {
render() {
return $$("div", { className: "toolbar"},
$$(TextToolComponent, { tool: 'text', title: 'Switch text'}),
$$(ToolComponent, { tool: 'emphasis', classNames: ['button', 'tool']}, "Emphasis"),
$$(ToolComponent, { tool: 'strong', classNames: ['button', 'tool']}, "Strong")
);
}
}
/* Variables
-------------------------------------------------- */
$border-color: #ddd;
$fill-light-color: #f8f8f8;
$fill-white-color: #fff;
$fill-dark-color: #404040;
/* Mixins
-------------------------------------------------- */
@michael
michael / tahi-data-spec.html
Created May 26, 2015 13:35
Tahi Data Spec
<html>
<head>
<!-- no title annotations possible with meta tags so moved into html body -->
<!-- no abstract annotations possible with meta tags so moved into html body -->
<meta name="doi" content="10.1234/myJournal.00001"/>
<meta name="status" content="in-review"/>
<meta name="creator" content="userx"/>
<meta name="created-at" content="2015-05-12T08:20:19.657Z"/>
<meta name="updated-at" content="2015-05-13T04:18:42.657Z"/>
</head>

The Tahi Article Format

Note: The following spec is considered a draft and open for discussion.

Tahi Source XML

Content in Tahi is considered data. That data lives in several places: Figures and references are considered external resources that live in separate DB tables. The main content however is expressed in XML using a strict schema. By choosing XML, we can utilize toolchains for automated data processing (e.g XSLT for normalizing content, server side maintenance scripts, etc.).

Goals:

<article>
<head id="document">
<title>Article short title</title>
<doi>10.7554/eLife.00005</doi>
</head>
<body id="content">
<h1 id="h1">Level 1 heading</h1>
<p>
The <em>PRC2 complex</em> has been the focus of a significant number of biochemical and molecular studies (for a recent review see
<ref ref-type="reference" rid="ref13">Margueron and Reinberg, 2011</ref>) ...
@michael
michael / tahi-article-spec.md
Last active August 29, 2015 14:21
TAHI Article Format Specification

TAHI Article Format Specification

Top level article structure

HTML

<article>
  <head>
    <title>Article short title</title>
michael ~/projects/lens-elife [lens-official] $ substance --update
Cloning sub-module: node_modules/substance-application
Creating folder: /Users/michael/projects/lens-elife/node_modules
Cloning into 'substance-application'...
remote: Counting objects: 598, done.
remote: Total 598 (delta 0), reused 0 (delta 0), pack-reused 598
Receiving objects: 100% (598/598), 97.95 KiB | 0 bytes/s, done.
Resolving deltas: 100% (351/351), done.
Checking connectivity... done.
Cloning sub-module: node_modules/substance-data
var ENTITIES = [
// Prisons
{"id":"54ef1331afda2d3c024e4818","type":"prison","name":"неизвестно /Австрия","nearest_locality":"неизвестно","country":"Австрия","description":"Респондент В. В. Щебетюк (ID 40) не помнит название села, куда был доставлен в сотаве 20 остарбайтеров. Жили в специальном охраняемым помещении, откуда их выводили на работы. Щебетюк был занят на полевых работах. В селе в том числе содержались поляки-военнопленные. ","__v":0,"prison_type":["частная сельскохозяйственная ферма"],"synonyms":["неизвестно /Австрия","\"работали в Австрии\"; \"не помню даже село\"; \"большой бауэр"," который имел более сто гектаров земли"," ферму большую и в деревне шоколадную фабрику\"; \"В селе"," значит"," там были военнопленные","\nвоеннопленные – польские\"; \"Работали у этого бауэра на полю\""],"id":"54ef1331afda2d3c024e4818"},{"id":"54ef1331afda2d3c024e4817","type":"prison","name":"Гоппенраде","nearest_locality":"Гоппенраде","country":"Германия","description":"город в земле Мекленбург-Передняя Померани
[
{
"property": "subjects",
"name": "Subjects",
"values": [
{
"frequency": 16,
"name": "Developmental biology and stem cells",
"selected": false
},
@michael
michael / virtual-box-cheating.md
Last active August 29, 2015 14:14
Virtual Box Cheating

See local available dist images (they are stored locally around 400mb size they have)

vagrant box list

To create a new vagrant env do this:

vagrant init

Now edit Vagrantfile