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
| <!-- dashboard.html --> | |
| {% block dojango_content %} | |
| <div id="root"></div> | |
| <script type="text/babel"> | |
| const App = () => ( | |
| <div> | |
| <h1>Hello World</h1> | |
| <p>This is React! Woo-hoo!</p> | |
| <p>Name -> {% firstof user.first_name user.username %}</p> |
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 * as React from 'react'; | |
| import { | |
| DropDownList, | |
| ComboBox, | |
| ComboBoxProps, | |
| DropDownListProps, | |
| DropDownListBlurEvent, | |
| ComboBoxBlurEvent, | |
| DropDownListFocusEvent, | |
| ComboBoxFocusEvent, |
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 numpy | |
| from mpi4py import MPI | |
| comm = MPI.COMM_WORLD | |
| rank = comm.Get_rank() | |
| size = comm.Get_size() | |
| # Non Blocking Send & Recv | |
| request = None | |
| status = None |
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
| FULL_PATH_CURR_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) | |
| start: | |
| # start up docker container and name it mpidev | |
| docker run --name mpidev -it --rm -v $(FULL_PATH_CURR_DIR):/project nlknguyen/alpine-mpich | |
| build: | |
| # compile code | |
| mpicc ./$(src).c -o $(src) |
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 DeepstreamServer = require('deepstream.io'); | |
| const MongoDBStorageConnector = require('deepstream.io-storage-mongodb'); | |
| const C = DeepstreamServer.constants; | |
| /* | |
| The server can take | |
| 1) a configuration file path | |
| 2) null to explicitly use defaults to be overriden by server.set() | |
| 3) left empty to load the base configuration from the config file located within the conf directory. | |
| 4) pass some options, missing options will be merged with the base configuration | |
| */ |