Банька | Стоимость |
---|---|
Окулово | 3,5к / час |
Одинцовские бани на дровах | 1150р/час |
Аминьевские бани | ~3k (27k за дом на 12ч) |
Теплота | 40к на 4 часа до 10 человек |
Дача 1 | хз |
На Баковке | 1800р/час до 6 человек |
Наши бани | ~12к на 12ч |
Умные бани | 4к/ч до 6ч |
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
max_pooling = MaxPooling(kernel_size=2, stride=2) | |
t_in = torch.tensor([[[[6, 2, 1, 3], [4, 8, 5, 7], [3, 1, 9, 2], [6, 5, 4, 0]]]]) | |
t_expected = torch.tensor([[[[8, 7], [6, 9]]]]) | |
assert max_pooling.forward(t_in).equal(t_expected) | |
b_in = torch.tensor([[[[1, 2], [3, 4]]]]) | |
b_expected = torch.tensor([[[[0, 0, 0, 0], [0, 1, 0, 2], [0, 0, 4, 0], [3, 0, 0, 0]]]]) | |
assert max_pooling.backward(b_in).equal(b_expected) |
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
/* Better task list alignment and spacing */ | |
.contains-task-list .task-list-item-checkbox { | |
top: .5em !important; | |
left: 0; | |
position: absolute; | |
} | |
.plugin-tasks-query-result { | |
padding-left: 0 !important; | |
} |
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
const controller = (req, res, next) => { | |
loggerCls.info('Long live rocknroll!') | |
// Logs something like | |
// {"level":30,"time":1551385666046,"msg":"Long live rocknroll!","pid":25,"hostname":"eb6a6c70f5c4","traceID":"9ba393f0-ec8c-4396-8092-b7e4b6f375b5","v":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
const cls = require('cls-hooked') | |
const uuidv4 = require('uuid/v4') | |
const clsMiddleware = (req, res, next) => { | |
// req and res are event emitters. We want to access CLS context inside of their event callbacks | |
clsNamespace.bind(req) | |
clsNamespace.bind(res) | |
const traceID = uuidv4() | |
const loggerWithTraceId = logger.child({ traceID }) |
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
const pino = require('pino') | |
const logger = pino() | |
const loggerCls = new Proxy(logger, { | |
get(target, property, receiver) { | |
// Fallback to our original logger if there is no child logger in CLS | |
target = clsNamespace.get('loggerCls') || target | |
return Reflect.get(target, property, receiver) | |
}, | |
}) |
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
const { createLogger, format, transports } = require('winston') | |
const addTraceId = printf((info) => { | |
let message = info.message | |
const traceID = clsNamespace.get('taceID') | |
if (traceID) { | |
message = `[TraceID: ${traceID}]: ${message}` | |
} | |
return message | |
}) |
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
const controller = (req, res, next) => { | |
const traceID = clsNamespace.get('traceID') | |
} |
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
const cls = require('cls-hooked') | |
const uuidv4 = require('uuid/v4') | |
const clsNamespace = cls.createNamespace('app') | |
const clsMiddleware = (req, res, next) => { | |
// req and res are event emitters. We want to access CLS context inside of their event callbacks | |
clsNamespace.bind(req) | |
clsNamespace.bind(res) |
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
// We move that generic code to a dedicated module | |
import { Action, createClassReducer } from 'utils/reducer-class' | |
const actionTypeJediCreateInit = 'jedi-app/jedi-create-init' | |
const actionTypeJediCreateSuccess = 'jedi-app/jedi-create-success' | |
const actionTypeJediCreateError = 'jedi-app/jedi-create-error' | |
class ReducerJedi { | |
// Take a look at "Class field delcaratrions" proposal, which is now at Stage 3. | |
// https://github.com/tc39/proposal-class-fields |
NewerOlder