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
#!/usr/bin/env python | |
import curses | |
import curses.textpad | |
def main_exec(stdscr): | |
begin_x = 20 | |
begin_y = 7 | |
height = 5 |
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
#!/usr/bin/python | |
import numpy as np | |
from scipy.linalg import norm | |
def read_vector(nome): | |
p = np.zeros(3) | |
for i in range(3): | |
p[i] = float(raw_input("%s_%d = " % (nome, i))) |
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
#!/usr/bin/env python | |
import sys | |
from pybel import readfile | |
import numpy as np | |
if __name__ == "__main__": | |
if len(sys.argv) < 2: | |
sys.exit("Expecting one argument. Abort.") |
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
#!/usr/bin/env python | |
import numpy as np | |
from matplotlib import pyplot as plt | |
def dihedral_pot(phi, v_barrier=1., n=3., phase=0., divider=1.): | |
return v_barrier * (1. + np.cos(n * phi - phase)) / divider | |
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
running nosetests | |
running egg_info | |
writing requirements to pnictogen.egg-info/requires.txt | |
writing pnictogen.egg-info/PKG-INFO | |
writing top-level names to pnictogen.egg-info/top_level.txt | |
writing dependency_links to pnictogen.egg-info/dependency_links.txt | |
writing entry points to pnictogen.egg-info/entry_points.txt | |
reading manifest file 'pnictogen.egg-info/SOURCES.txt' | |
reading manifest template 'MANIFEST.in' | |
writing manifest file 'pnictogen.egg-info/SOURCES.txt' |
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
#!/usr/bin/python3 | |
import pandas as pd | |
import pyrrole as pyr | |
from matplotlib import pyplot as plt | |
# if you want a single molecule | |
# pyr.Atoms(series) | |
# pyr.Atoms(dataframe["A"]) |
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
class pyrrole.ChemicalEquation: | |
""" | |
Examples | |
-------- | |
pyrrole.atoms.create_data is useful for producing data objects (receives iterables or mappings of pyrrole.atoms.Atoms): | |
>>> r = pyr.ChemicalEquation("A <=> B + C", pyr.atoms.create_data([pyr.atoms.read_cclib("path/to/A.out", "A"), | |
... pyr.atoms.read_cclib("path/to/B.out", "B"), | |
... pyr.atoms.read_cclib("path/to/C.out", "C")])) |
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
class Note: | |
""" | |
Abstract representation of a musical note. | |
Parameters | |
---------- | |
note : `str`, `int`, `Note` | |
String representing note (e.g. 'C3', 'Ab', 'F#', etc.) or another `Note` object. | |
Notes |
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
""" | |
$ issue create # checks TODO.txt in current or ancestor directory | |
(B) My issue #1 +Project | |
1 | |
$ # Syntax from https://github.com/todotxt/todo.txt | |
$ issue create | |
(A) Done after:#1 | |
2 | |
$ issue work 1 | |
$ issue close 1 |
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 the Nim Compiler v1.4.8 */ | |
var framePtr = null; | |
var excHandler = 0; | |
var lastJSError = null; | |
function toJSStr(s_1455096) { | |
var Tmp5; | |
var Tmp7; | |
var result_1455097 = null; |
OlderNewer