Skip to content

Instantly share code, notes, and snippets.

View andeplane's full-sized avatar

Anders Hafreager andeplane

View GitHub Profile
"""
This is not the real requests Python module
but a partial API implementation for Basthon.
"""
import js
__author__ = "Romain Casati"
__license__ = "GNU GPL v3"
__email__ = "romain.casati@basthon.fr"
"""
This is not the real requests Python module
but a partial API implementation for Basthon.
"""
import js
__author__ = "Romain Casati"
__license__ = "GNU GPL v3"
__email__ = "romain.casati@basthon.fr"
const createCode = (particles: Particles) {
// code that takes particles and creates bonds
}
return (
<Visualizer>
<Particles src="https://online.no/simulation.xyz">
<Bonds createCode={createCode} />
</Particles>
</Visualizer>
)
bash-3.2$ make
[ 1%] Built target mpi_stubs
[ 99%] Built target lammps
[100%] Linking CXX executable lammps-os
lammps/cmake/liblammps.a(library.cpp.obj): In function `concatenate_lines(char*)':
/repos/lammps-os/lammps/src/library.cpp:(.text+0x74): undefined reference to `strtok'
lammps/cmake/liblammps.a(library.cpp.obj): In function `lammps_version':
/repos/lammps-os/lammps/src/library.cpp:(.text+0x22c): undefined reference to `atoi'
lammps/cmake/liblammps.a(modify.cpp.obj): In function `LAMMPS_NS::Modify::read_restart(_IO_FILE*)':
/repos/lammps-os/lammps/src/modify.cpp:(.text+0xc4a1): undefined reference to `fread'
bash-3.2$ cmake ..
-- Building for arch x86_64, platform x86_pc
-- The C compiler identification is Clang 5.0.1
-- The CXX compiler identification is Clang 5.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - failed
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
bash-3.2$ cd examples/demo_service
bash-3.2$ ls
CMakeLists.txt README.md build config.json service.cpp
bash-3.2$ boot --create-bridge .
* <boot>: Creating bridge
Creating network bridge for IncludeOS
Using default settings
Creating bridge bridge43, netmask 255.255.255.0, gateway 10.0.0.1
Creating network bridge (requires sudo):
Password:
import test from './test.txt'
class A {
constructor() { }
async loadFile(filename) {
let data = await (await fetch(filename))
return data
}
}
import test from './test.txt'
class A {
constructor() { }
async loadFile(filename) {
let data = await (await fetch(filename))
return data
}
}

Keybase proof

I hereby claim:

  • I am andeplane on github.
  • I am andershaf (https://keybase.io/andershaf) on keybase.
  • I have a public key ASAAVWJnIPslihXFeiDZ9E3vm16Id4IiQdsEoV9-qUQBIAo

To claim this, I am signing this object:

#!/bin/bash
cd ../../../src
make no-all
make -j4 mpi mode=lib
cd ../examples/COUPLE/simple
mpic++ -I../../../src -c simple.cpp
mpic++ -L../../../src simple.o -llammps -lmpi -o simpleCC