Skip to content

Instantly share code, notes, and snippets.

View hqhs's full-sized avatar

Dima hqhs

View GitHub Profile
// 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"
from functools import reduce
class A:
def __init__(self, obj_list):
self.obj_list = obj_list
class B:
def __init__(self, number):