This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add-my-appointment: | |
| type: make | |
| title: Schedule New Appointment | |
| entity: appointment | |
| input: | |
| - start: datetime | |
| - duration: number | |
| submit_button: Add Appointment | |
| value: | |
| requestor: $USER |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def fields(table_name, prefix, skip=[]): | |
| skip_dict = dict([(f.label, True) for f in skip]) | |
| table = model().table(table_name) | |
| ret = [] | |
| print table | |
| print table.schema | |
| for f in table.fields(): | |
| if f.label in skip_dict: | |
| continue | |
| ret.append(f.label) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "rex-dbgui", | |
| "version": "4.0.0", | |
| "main": "./lib/index.js", | |
| "rex": { | |
| "bundleAll": true | |
| }, | |
| "dependencies": { | |
| }, | |
| "peerDependencies": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import {Action} from 'rex-action'; | |
| import {Link} from 'rex-widget'; | |
| import {Preloader, SuccessButton} from 'rex-widget/ui'; | |
| import {HBox, VBox} from 'rex-widget/layout'; | |
| import {Fetch, DataSet} from 'rex-widget/data'; | |
| import autobind from 'autobind-decorator'; | |
| import {DataTableBase} from 'rex-widget/datatable'; | |
| import {SearchInput} from 'rex-widget/form'; | |
| import Title from 'rex-action/lib/actions/Title'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <script id="aaa"></script> | |
| <script> | |
| function callback ( response ) | |
| { | |
| console.log(response); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function! TabForward() | |
| if col('.')>1 && strpart( getline('.'), col('.')-2, 3 ) =~ '^\w' | |
| return "\<C-N>" | |
| else | |
| return "\<Tab>" | |
| endfunction | |
| inoremap <Tab> <C-R>=TabForward()<CR> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| os.makedirs(os.path.join(os.getcwd(), 'resource')) | |
| for path, _, files in os.walk('./urlmap'): | |
| for file in files: | |
| if not file.endswith('.yaml'): | |
| continue | |
| fname = os.path.join(path, file) | |
| content = open(fname).read() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as ui from '@prometheusresearch/react-ui'; | |
| const Card = stylesheet.style(ui.Card, { | |
| margin: '5px', | |
| padding: '3px', | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @copyright 2015, Prometheus Research, LLC | |
| */ | |
| 'use strict'; | |
| import React from 'react'; | |
| import * as data from 'rex-widget/data'; | |
| import {WithFormValue, Field} from 'rex-widget/form'; | |
| import {Preloader} from 'rex-widget/ui'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /do( | |
| $_id := update(top(study_enrollment.filter(id()=$study_enrollment)){ | |
| id(), | |
| enrollment_date := $enrollment_date, | |
| enrollment_status := $enrollment_status | |
| }), | |
| with($visit_todo, do( | |
| for($v := $visit, with($v, update(top(visit.filter(id()=$id)){ | |
| id(), | |
| status := $status |