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
add-my-appointment:
type: make
title: Schedule New Appointment
entity: appointment
input:
- start: datetime
- duration: number
submit_button: Add Appointment
value:
requestor: $USER
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)
{
"name": "rex-dbgui",
"version": "4.0.0",
"main": "./lib/index.js",
"rex": {
"bundleAll": true
},
"dependencies": {
},
"peerDependencies": {
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';
<html>
<script id="aaa"></script>
<script>
function callback ( response )
{
console.log(response);
}
function! TabForward()
if col('.')>1 && strpart( getline('.'), col('.')-2, 3 ) =~ '^\w'
return "\<C-N>"
else
return "\<Tab>"
endfunction
inoremap <Tab> <C-R>=TabForward()<CR>
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()
import * as ui from '@prometheusresearch/react-ui';
const Card = stylesheet.style(ui.Card, {
margin: '5px',
padding: '3px',
});
/**
* @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';
/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