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
[tool.poetry] | |
name = "Whatever" | |
version = "1.7.0" | |
description = "Whatever" | |
authors = ["Mad Wombat <noneed@nowhere.com"] | |
[tool.poetry.dependencies] | |
python = "^3.6" | |
Django = "=1.11.24" | |
djangorestframework = "=3.6.4" |
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 Tree: | |
def __init__(self, data=None, left=None, right=None): | |
self.data = data | |
self.left = left | |
self.right = right | |
def size(self): | |
size = 1 | |
size = size + self.left.size() if self.left is not None else size | |
size = size + self.right.size() if self.right is not None else size |
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
[tool.poetry] | |
name = "whatever" | |
version = "0.1.1" | |
description = "" | |
authors = ["Mad Wombat"] | |
[tool.poetry.dependencies] | |
python = "^3.6" | |
[tool.poetry.dev-dependencies] |
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
pub mod bonacci { | |
pub struct Bonacci { | |
base: usize, | |
window: Vec<u32>, | |
} | |
pub fn new(base: usize) -> Bonacci { | |
Bonacci { base: base, window: vec![] } | |
} |
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 nope(self): | |
print(self) | |
class Test: | |
nope = nope | |
def yup(self): | |
print(self) |
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.