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 cvfy | |
| app = cvfy.register("nongh:0.0.0.0:5237349:5001:8003:localhost") | |
| @cvfy.crossdomain | |
| @app.listen() | |
| def getsizes(): | |
| cvfy.sendGraphArray([ | |
| [ |
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 cvfy | |
| app = cvfy.register("nongh:0.0.0.0:5237349:5001:8003:localhost") | |
| @cvfy.crossdomain | |
| @app.listen() | |
| def getsizes(): | |
| cvfy.sendGraphArray([ | |
| [ | |
| { 'x': 'cat', 'y': 2 }, |
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
| --- | |
| job: JobName | |
| nodes: | |
| - local | |
| - 188.166.246.108 | |
| service1: | |
| payload: | |
| - payload/file1.json | |
| - payload/file2.txt | |
| exec: |
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
| { | |
| "message": "This file is meant to be read by nodejs" | |
| } |
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
| Here is some data to be read by python |
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
| with open('./file2.txt', 'r') as file: | |
| f = file.read() | |
| print f |
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
| const fs = require('fs'); | |
| fs.readFile('./file1.json', (err, data) => { | |
| if (err) { | |
| console.log('cannot read file1.json'); | |
| } else { | |
| console.log(JSON.parse(data).message); | |
| console.log(process.env.MY_MESSAGE); | |
| } | |
| }); |
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 cvfy | |
| import cv2 | |
| app = cvfy.register("nongh:0.0.0.0:6162884:5001:8001:localhost:5001") | |
| @cvfy.crossdomain | |
| @app.listen() | |
| def cache_demo(): | |
| if cvfy.checkIfCachedResultsExist(): |
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
| server { | |
| listen 0.0.0.0:3001; | |
| location / { | |
| rewrite_by_lua_block { | |
| local cookie_value = ngx.req.get_headers()["Cookie"] | |
| if cookie_value ~= nil then | |
| local jwt = cookie_value:match("access_token=([^ ]+)") | |
| ngx.req.set_header("Authorization", "Bearer " .. jwt) | |
| end |
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, { Component, PropTypes } from "react"; | |
| import io from "socket.io-client"; | |
| class App extends Component { | |
| constructor(props, context) { | |
| super(props, context); | |
| this.state = { | |
| message: null | |
| }; | |
| this.socket = io("https://localhost:3001"); |