This file contains hidden or 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
// Package provides basic http server capable of creating, viewing and | |
// savind text files as txt. | |
// To make it run you need to have two files: edit.html and view.html | |
// where must be {{.Title}} and {{printf "%s" .Body}} directives, for | |
// title text and body text. Form action="/save/{{.Title}}", method="POST" | |
package main | |
import ( | |
"errors" | |
"fmt" |
This file contains hidden or 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
from functools import reduce | |
class A: | |
def __init__(self, obj_list): | |
self.obj_list = obj_list | |
class B: | |
def __init__(self, number): |
NewerOlder