Coder Social home page Coder Social logo

qutilityfunctions's Introduction

QUtilityFunctions

Utility scripts to use in KDB processes

User Guide

a) qscripts/util_depTree.q

i) Display All Functions

Example:

.util.getAllInfo `f
.util.getAllInfo "f"
ii) Display All Tables

Example:

.util.getAllInfo `a
.util.getAllInfo "a"
iii) Tracing of Function Dependency Trees

Example: 

@param  regex       {symbol/string}     Regex to match the function spaces for  
@param  addFilter   {boolean}           Specifies if additional filter of "[(/[') ;@.]" to be appended to the regex specified
@param  isCase      {boolean}           Specifies if case sensitivity to the regex shall be applied

Can take up to three arguments, less than which, the addFilter and isCase args will default to 1b

.util.genDepTree[`.util.baseNS]             // With additional filter and case sensitivity 
.util.genDepTree[`.util.baseNS;0b]          // Without additional filter but case sensitivity
.util.genDepTree[`.util.baseNS;0b;0b]       // Without additional filter and case sensitivity
iv) Tracing of Single Regex Search

Example:

@param  regex       {symbol/string}     Regex to match the function spaces for  
@param  addFilter   {boolean}           Specifies if additional filter of "[(/[') ;@.]" to be appended to the regex specified
@param  isCase      {boolean}           Specifies if case sensitivity to the regex shall be applied

Can take up to three arguments, less than which, the addFilter and isCase args will default to 1b

.util.singleSearch[`.util.baseNS]             // With additional filter and case sensitivity 
.util.singleSearch[`.util.baseNS;0b]          // Without additional filter but case sensitivity
.util.singleSearch[`.util.baseNS;0b;0b]       // Without additional filter and case sensitivity



b) qscripts/util_html.q

i) Generation of verbose table meta information, i.e. dictionary of meta tables

Example: 

.util.getTabMeta[]

Additional Note:

.util.writeXlsTab[`test] to write the dictionary of meta tables generated above in xls format 
ii) Reverse xml (xls) files generated by .h.edsn

Example: 

.util.reverseEdsn[`test.xls]

c) HTML Interface

Initialisation Steps:

i) q html_startup.q

Initialises the q process with the relevant qutils scripts above, as well as initialise a standard port number of 5014

ii) Click on either html/qutils_meta.html or html/qutils_tree.html

This would load the relevant html pages for one to use the functions defined above easily

qutilityfunctions's People

Contributors

hmn24 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.