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
| blueprint: | |
| name: Duty-Cycle Thermostat (Max-Off Protection) | |
| description: > | |
| Thermostat logic with duty cycling when temperature is above threshold: | |
| - If temp >= threshold → switch OFF (start duty cycle) | |
| - If temp < threshold → switch ON immediately | |
| - When above threshold, heating is OFF for X hours, then ON for Y hours, | |
| repeating until temperature drops. | |
| domain: automation |
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
| var restify = require('restify'); | |
| var server = restify.createServer(); | |
| var tasks = []; | |
| server.pre(function(req, res, next) { | |
| tasks.push(function() { | |
| return req.headers; | |
| }); |
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 org.example.security; | |
| import java.lang.reflect.Array; | |
| import java.util.*; | |
| import org.springframework.expression.EvaluationContext; | |
| import org.springframework.expression.Expression; | |
| import org.springframework.security.access.PermissionCacheOptimizer; | |
| import org.springframework.security.access.expression.ExpressionUtils; | |
| import org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler; |