Coder Social home page Coder Social logo

scriptingexamples's Introduction

scriptingExamples

This is a collection of simple examples for general scripting concepts. The focus is on reusability in the form of a process of functions pieced together in the flow of the script.

TechSteps.vbs

This script shows an example of when we needed to have an icon open a website with companion software installed on the client to allow the website to remain on top. The main process is at top. It checks for the installation of the required software. If it is there, launch everything. If it is not, install everything first and then launch.

CheckRDP.js

A Nodejs script that uses a configuration file to specify the options. The script is small and simple, so a top-down flow is used with the portions of the script broken off into separate functions for readability. Reading down the script goes further into the details.

rMarkdownReport.rmd

A report written in RStudio that uses a SQL query with specified parameters to generate a report with resulting data. At the top are all the required R libraries. Then, the DB connection followed by the query setup. The variables are setup to be easy to adjust and then they are updated to add in the single quotes automatically. The query is is run to get the needed data for a chart at the time it is needed in the report. Using this pattern, multiple queries are setup at the top and they are all dynamically using the variables defined. The query is run to get the data and dislay the chart in it's own section. Finally, at the end, the ODBC connection is closed. The approach is generally the more global items are near the top and the details fall below.

scriptingexamples's People

Contributors

jasoncmcg 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.