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
| def foo(i): pass | |
| def bar(i): pass | |
| for i in range(10): | |
| foo_result = foo(i) | |
| print('результат фуу', foo_result) |
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 main | |
| import ( | |
| "log" | |
| "os" | |
| "time" | |
| "github.com/gocql/gocql" | |
| "github.com/pkg/errors" | |
| "github.com/rcrowley/go-metrics" |
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
| def supermap(funcs, iterable): | |
| for item in iterable: | |
| for func in funcs: | |
| item = func(item) | |
| yield item | |
| def incr(val): | |
| return val + 1 |
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
| def bad_func(a, b, c, d, e, f, r, t): | |
| pass | |
| def good_dunc( | |
| a, | |
| b, | |
| c, | |
| d, |
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
| type PushNotification struct { | |
| Id bson.ObjectId `json:"id,omitempty" bson:"_id,omitempty"` | |
| Text string `json:"text" bson:"text"` | |
| Subject string `json:"subject" bson:"subject"` | |
| EndDate time.Time `json:"end_date,omitempty" bson:"end_date,omitempty"` | |
| StartDate time.Time `json:"start_date,omitempty" bson:"start_date,omitempty"` | |
| Created time.Time `json:"created" bson:"created"` | |
| Updated time.Time `json:"updated" bson:"updated"` |