- Create
setup.py
- Contains information about your project i.e. version numbers, licences, Python version
- Create
MANIFEST.in
- Defines files to be included/excluded from the package
- See example below.
- Run create the distribution
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
my_numbers = [0, 1, 2, 3, 4, 5] | |
odd_number_count = 0 | |
for number in my_numbers: | |
if number % 2: | |
odd_number_count += 1 | |
print(odd_number_count) |
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
> "This is a string" | |
"This is a string" : String | |
> 2.71828 | |
2.71828 : Float | |
> 123 | |
123 : number | |
> [1, 2, 3, 4, 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
doubleIt : number -> number | |
doubleIt n = n * 2 | |
import String | |
stringify : number -> String | |
stringify n = toString n | |
addX : String -> String | |
addX s = s ++ "X" |
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 String | |
import Html | |
import List | |
type alias Person = { name : String | |
, access : List String } | |
type alias Location = String | |
ee1 = { name = "Ian Beal" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
def fit_heptad_register(crangles): | |
"""Attempts to fit a heptad repeat to a set of Crick angles. | |
Parameters | |
---------- | |
crangles: [float] | |
A list of average Crick angles for the coiled coil. | |
Returns | |
------- | |
fit_data: [(float, float, float)] | |
Sorted list of fits for each heptad position. |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<script type="text/javascript" src="elm.js"></script> | |
</head> | |
<body></body> | |
<div id="main"></div> | |
<script type="text/javascript"> | |
var node = document.getElementById('main'); |
OlderNewer