Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
/* Generated by Nim Compiler v0.17.3 */ | |
/* (c) 2017 Andreas Rumpf */ | |
/* The generated code is subject to the original license. */ | |
/* Compiled for: Linux, amd64, gcc */ | |
/* Command for C compiler: | |
g++ -c -w -w -fpermissive -D_GLIBCXX_USE_CXX11_ABI=0 -I/home/pahl/progs/nim/lib -I/home/pahl/dev/github/rdkit/Code/ -o /home/pahl/dev/nim/rdkit/nimcache/test_smiles.o /home/pahl/dev/nim/rdkit/nimcache/test_smiles.cpp */ | |
#define NIM_NEW_MANGLING_RULES | |
#define NIM_INTBITS 64 | |
#include "nimbase.h" |
This file contains 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
""" | |
nim_magic.py | |
Jupyter cell magic for your favorite programming language. | |
This is now also available as a proper repo: | |
https://github.com/apahl/nim_magic | |
All further changes will be tracked there. | |
Requirements: Nim (https://nim-lang.org), nimpy (`nimble install nimpy`, thanks to @yglukhov for this great library!) |
This file contains 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
Module structure: | |
~/dev/go/collect | |
$ tree | |
. | |
├── go.mod | |
├── go.sum | |
├── LICENSE.txt | |
├── maps | |
│ ├── maps_gen.go | |
│ ├── maps.go |
This file contains 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 tables | |
type MyObj = ref object | |
a: int | |
t: Table[int, int] # where would this table be located? | |
when isMainModule: | |
var obj = MyObj(a: 1, t: {1: 1, 2: 2}.toTable) | |
echo obj.t |
This file contains 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 tables | |
type | |
Element* {.pure.} = enum | |
invalid = (-1, "Inv"), | |
unknown = (0, "*"), | |
hydrogen = (1, "H"), | |
boron = (5, "B"), | |
carbon = (6, "C"), | |
nitrogen = (7, "N"), |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer