Skip to content

Instantly share code, notes, and snippets.

View timthelion's full-sized avatar

Timothy Hobbs timthelion

View GitHub Profile
{
"count": 25,
"next": null,
"previous": null,
"results": [
{
"id": 26,
"trip_date": "2020-11-17",
"direction": "trip_to",
"commuteMode": "bicycle",
{
"id": 12,
"name": "Ústí nad Labem",
"location": {
"type": "Point",
"coordinates": [
14.034090040159416,
50.66687231660888
]
},
[tool.poetry]
name = "fšf"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
[tool.poetry.dependencies]
python = "^3.7"
[tool.poetry.dev-dependencies]
>>> class MyBase:
... def __init_subclass__(cls, **kwargs):
... print("Subclass {0!s} created".format(cls))
...
>>> class MyChildA(MyBase):
... pass
...
Subclass <class '__main__.MyChildA'> created
In [11]: class Abc:
...: def __init_subclass__(cls):
...: print(cls)
...:
In [12]: class C(Abc):
...: pass
...:
In [13]: C()
@timthelion
timthelion / gist:d0eda3af47c174fba186
Created May 30, 2014 19:54
docker run debian ls /dev
ataraid
atibm
audio
audio1
audio2
audio3
audioctl
aztcd0
bpcd
cciss
@timthelion
timthelion / gist:28d0a4d320910965422f
Created May 28, 2014 16:21
Device JSON Marshalers
package jsonDevices
import (
"encoding/json"
"fmt"
"os"
)
type JSONDevice struct {
Type string `json:"type"`
2014/05/17 17:51:08 docker daemon: 0.11.1 fb99f99; execdriver: native; graphdriver:
[91f09100] +job serveapi(unix:///var/run/docker.sock)
[91f09100] +job initserver()
[91f09100.initserver()] Creating server
2014/05/17 17:51:08 Listening for HTTP on unix (/var/run/docker.sock)
[91f09100] +job init_networkdriver()
[91f09100.init_networkdriver()] creating new bridge for docker0
[91f09100.init_networkdriver()] getting iface addr
[91f09100] -job init_networkdriver() = OK (0)
2014/05/17 17:51:14 WARNING: mountpoint not found