Learn from the experts at CALIcon16

Learn from the experts! Declining applications and the legal marketplace recession creates a more complex and competitive market for legal education and lawyers.  Many of the fixes have a technology component like distance learning, formative assessment, virtual law practice, law practice tech, document and process automation to name a few.  Many technologies that have proven […]


Original URL: http://spotlight.classcaster.net/2016/05/17/learn-from-the-experts-at-calicon16/

Original article

A Node.js bridge for COBOL

README.md

node.cobol

PayPal AMA Version Downloads Get help on Codementor

Node.js bridge for COBOL which allows you to run Node.js code from COBOL.

node.cobol

You have to install Node.js on
your machine. In case you do not have a COBOL compiler,
you can install it by running:

# Ubuntu
sudo apt-get install open-cobol

# OS X
brew install gnu-cobol

:clipboard: Example

      * Compile this file together with the node.cobol
      * modules:
      *
      *  $ cobc -x example/main.cbl lib/node-exec-*
      *
      * Then execute the binary file:
      *
      *  $ ./main
       IDENTIFICATION DIVISION.
       PROGRAM-ID. MAIN.

       DATA DIVISION.
          WORKING-STORAGE SECTION.
          01 NODEJS-CODE PIC X(100) value "console.log('Hello World!')".

       PROCEDURE DIVISION.
      * Execute a short Node.js snippet
           CALL 'EXEC_NODEJS' USING NODEJS-CODE

           DISPLAY "Starting an HTTP server on port 8000".

      * Convert an image into ASCII/ANSI art
           CALL 'EXEC_NODEJS_FILE' USING "example/grace-hopper.js"

           DISPLAY "Starting an HTTP server on port 8000".

      * Starting an HTTP server in Node.js
           CALL 'EXEC_NODEJS_FILE' USING "example/server.js".
       STOP RUN.

To compile the program, use:

cobc -x example/main.cbl lib/node-exec-*

:memo: Documentation

The COBOL modules from the lib/ directory export the following subroutines:

EXEC_NODEJS(code)

  • code: The Node.js snippet to execute.

EXEC_NODEJS_FILE(file)

  • file: The Node.js file path.

:yum: How to contribute

Have an idea? Found a bug? See how to contribute.

:sparkles: Related

  • cobol—COBOL bridge for NodeJS which allows you to run COBOL code from NodeJS.
  • fortran—Fortran bridge for Node.js which allows you to run Fortran code from Node.js.
  • node.fortran—Execute Node.js in your Fortran programs.

:scroll: License

MIT © Ionică Bizău


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/p7J5XIF5vxk/node.cobol

Original article

Virtual company may raise $200 million, largest in crowdfunding

NEW YORK (Reuters) – A virtual company created using a computer code could raise $200 million when it ends its fund-raising campaign next week, according to the founder of the firm that wrote the code for the new digital enterprise.


Original URL: http://feeds.reuters.com/~r/reuters/technologyNews/~3/PYBO-lTqptg/us-blockchain-crowdfunding-idUSKCN0Y82LI

Original article

Push.js – A minimalist JavaScript library for desktop notifications

README.md

What is Push?

Push is the fastest way to get up and running with Javascript desktop notifications. A fairly new addition to the official specification, the Notification API allows modern browsers such as Chrome, Safari, and IE 9+ to push notifications to a user’s desktop. Push acts as a cross-browser solution to this API, falling back to use older implementations if the user’s browser does not support the new API. You can quickly install Push via npm:

npm install push.js --save

Creating Notifications

So just how easy is it to create a notification using Push? We can do it in just one line, actually:

Push.create('Hello World!')

No constructors, just a universal API you can access from anywhere. Push is even compatible with AMD as well:

define(['pushjs'], function (Push) {
   Push.create('Hello World!');
});

If the browser does not have permission to send push notifications, Push will automatically request permission as soon as create() is called. Simple as that.

Closing Notifications

When it comes to closing notifications, you have a few options. You can either set a timeout (see “Options”), call Push’s close() method, or pass around the notification object and call close() directly. Push’s close() method will only work with newer browsers, taking in a notification’s unique tag name and closing the first notification it finds with that tag:

Push.create('Hello World!', {
    tag: 'foo'
});

// Somewhere later in your code...

Push.close('foo');

Alternatively, you can assign the Notification wrapper returned by Push to a variable and close it directly:

var notification = Push.create('Hello World!');

// Somewhere later in your code...

notification.close();

When it comes to clearing all open notifications, that’s just as easy as well:

Options

The only required argument in a Push call is a title. However, that doesn’t mean you can’t add a little something extra. You can pass in options to Push as well, like so:

Push.create('Hello World!', {
    body: 'This is some body content!',
    icon: {
        x16: 'images/icon-x16.png',
        x32: 'images/icon-x32.png'
    },
    timeout: 5000
});

Available Options

  • body: The body text of the notification.
  • icon: Can be either the URL to an icon image or an array containing 16×16 and 32×32 pixel icon images (see above).
  • onClick: Callback to execute when the notification is clicked.
  • onClose: Callback to execute when the notification is closed (obsolete).
  • onError: Callback to execute when if the notification throws an error.
  • onShow: Callback to execute when the notification is shown (obsolete).
  • tag: Unique tag used to identify the notification. Can be used to later close the notification manually.
  • timeout: Time in milliseconds until notification closes automatically.

Credits

Push is based off work the following work:

  1. HTML5-Desktop-Notifications by Tsvetan Tsvetkov
  2. notify.js by Alex Gibson


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/PEWPyX00TAE/push.js

Original article

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑

%d bloggers like this: