Skip to content

Instantly share code, notes, and snippets.

View zindel's full-sized avatar

Oleksiy Golovko zindel

  • Prague, The Czech Republic
View GitHub Profile
@zindel
zindel / .vimrc
Last active August 29, 2015 14:24
NeoBundle "pangloss/vim-javascript"
NeoBundle 'mxw/vim-jsx.git'
NeoBundle 'chriskempson/vim-tomorrow-theme'
NeoBundle 'altercation/vim-colors-solarized'
NeoBundle 'jlanzarotta/bufexplorer'
NeoBundle 'kien/ctrlp.vim'
NeoBundle 'mattn/gist-vim'
NeoBundle 'mattn/webapi-vim'
call neobundle#end()
"""
:copyright: 2015, Prometheus Research, LLC
"""
from rex.core import AnyVal, StrVal, IntVal, SeqVal,BoolVal, MaybeVal
from rex.core import get_packages, cached, get_settings
from rex.widget import Widget, CollectionSpecVal, EntitySpecVal, URLVal, \
FormFieldVal, ColumnVal, undefined, Field, \
from rex.core import OMapVal
from rex.action import Wizard, Action, Page
from rex.action.typing import ValueType
from rex.widget import Widget, WidgetComposition, Field, WidgetVal
OMap = OMapVal()
TableType = ValueType('table')
class InitialTableList(Action):
/wizard/todo:
widget: !<Wizard>
initial_context:
individual: A00F5818
states:
todo:
not-skipped-not-complete:
title: Not Skipped
expression: status!='skipped'&status!='complete'
measure:
/**
* @copyright 2015, Prometheus Research, LLC
*/
'use strict';
var React = require('react');
var {Wizard, createEntity} = require('rex-action');
var TodoWizardIframe = React.createClass({
/**
* @copyright 2015, Prometheus Research, LLC
*/
import React, {PropTypes} from 'react';
import RexWidget from 'rex-widget';
import Breadcrumb from './Breadcrumb';
import Actions from './Actions';
import WithDOMSize from './WithDOMSize';
import WizardState from './WizardState';
DROP FUNCTION IF EXISTS simple_study_todo__proc() CASCADE;
DROP FUNCTION IF EXISTS condition_study_todo__proc() CASCADE;
DROP FUNCTION IF EXISTS longitudinal_study_todo__proc() CASCADE;
CREATE OR REPLACE FUNCTION longitudinal_study_todo__proc()
RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
WITH todos AS (
INSERT INTO todo
(individual_id,
requirement_id,
status,
title,
time_period__id,
expected_completion_date,
study_id,
asset_type__id,
if has('vim_starting')
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
" Required:
paths:
/with-for-demo:
action:
title: with()/for() demo
type: wizard
path:
- pick-case-type:
- make-individual:
# - replace: ../../pick-individual/view-individual
#- pick-individual: