Main presentation file:
In general, the short Weierstrass form is given as the formula and that's just great.
This is the long form:
While this is the short one for comparison:
if foo == "bar":
print("foo was 'bar'")
return getattr(self, "bar")
else:
print("foo was not 'bar'")
return lambda x: tuple(x, "foo", 123)
if foo == "bar":
print("foo was 'bar' 1")
print("foo was 'bar' 2")
print("foo was 'bar' 3")
print("foo was 'bar' 4")
print("foo was 'bar' 5")
return getattr(self, "bar")
else:
print("foo was not 'bar' 1")
print("foo was not 'bar' 2")
print("foo was not 'bar' 3")
print("foo was not 'bar' 4")
print("foo was not 'bar' 5")
return lambda x: tuple(x, "foo", 123)
int main(int argc, char **argv) {
printf("Foo: %d -> %p\n", argc, argv);
return 0;
}
# This class is in its own file.
class Foo():
def __init__(self, moo):
self._moo = moo
@property
def moo(self):
return self._moo
$ ls / bin sbin $ cat /var/log/auth.log \ | sed -rn 's/.*Failed password for invalid user (\w*?) from.*/\1/p' \ | sort \ | uniq \ | wc -l 3332 $ echo $UID 1000 # echo $UID 0
$ cat foo This is terminal output. It comes from a file!