Comments (1)
PWD has a handler to get a file from the container. We don't need to implement a new function.
https://github.com/freeCompilerCamp/play-with-compiler/blob/a8e345233629088d3a618c531a5436a2dabfb3b3/handlers/bootstrap.go#L82
The definition is located in: https://github.com/freeCompilerCamp/play-with-compiler/blob/master/handlers/file_instance.go
To use this function, assume we open a tutorial and create test.txt
in the home folder /home/freecc
. For any sandbox, a session id and a instance id will be generated automatically. The following GET
request will get /home/freecc/test.txt
curl --request GET lab.freecompilercamp.org:5010/sessions/bsk4ctgq4uig0s44264g/instances/bsk4ctgq_bsk4ctoq4uig0s442650/file?path=%2Fhome%2Ffreecc%2Ftest.txt
The URL pattern is <pwc_url>/sessions/<session_id>/instances/<instance_id>/file?path=<encoded file path>
.
The parameter at the end is to indicate the demanding file. The file path after url encoding is the value of the key path
.
The returned file content is encoded to Base64 format.
from llnl-work-notes.
Related Issues (20)
- Test Stencil on Pascal HOT 3
- Create a model for the computing that has multiple independent stages or portions HOT 3
- Create a metadirective guiding model named constant performance modeling HOT 1
- Test 2D stencil on Surface HOT 1
- Compare the performance of CPM HOT 1
- Compare FPM performance HOT 2
- Add CPM, FPM and ODDC related works to Overleaf
- Regenerate CPM and FPM testing results on Surface, Pascal and Lassen HOT 1
- Add the improvements to FreeCC since last publication to Overleaf HOT 1
- Provide a new metric to compare the models being evaluated HOT 9
- Find in ROSE where exactly Clang is called to create its own AST
- Revise ODDC description HOT 1
- Add Clang/LLVM background to FreeCC paper on Overleaf HOT 1
- Add ROSE background to FreeCC paper on Overleaf HOT 1
- Complete the TODO items in the FreeCC paper HOT 1
- Review the pull requests to FreeCC HOT 1
- Read the modeling papers from Dr. Liao and maybe use some of them
- Regenerate the table of detailed results HOT 1
- Rearrange the diagrams of testing results HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llnl-work-notes.