Note: Office only
mso-ansi-font-size: large | larger | <length> | medium | <percentage> | small | smaller | x-large | x-small | xx-large | xx-small
function uuid() { | |
var uuid = "", i, random; | |
for (i = 0; i < 32; i++) { | |
random = Math.random() * 16 | 0; | |
if (i == 8 || i == 12 || i == 16 || i == 20) { | |
uuid += "-" | |
} | |
uuid += (i == 12 ? 4 : (i == 16 ? (random & 3 | 8) : random)).toString(16); | |
} |
package ru.mystamps.web.validation.jsr303; | |
import java.lang.annotation.Documented; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.Target; | |
import javax.validation.Constraint; | |
import javax.validation.Payload; | |
import javax.validation.ReportAsSingleViolation; | |
import javax.validation.constraints.Pattern; |
<?php | |
// REQUIRED PARAMETERS | |
$status = 'http://www.mylink.com'; | |
$email = '[email protected]'; | |
$pass = 'yourpassw0rd'; |
OpenHAB Heating Example | |
======================== | |
This heating example shows three rooms in my house with 1 radiator valve, 1 temperature sensor per room and a single boiler. It could be adapted for different situations. | |
The rules allow for simple addition of items in rooms as long as they follow the naming convention and have at least a valve, a thermometer, setpoint and a demand switch. | |
The demand switch is purely internal and is used to indicate if the room requires heat or not. All rooms are OR'd together to define the boiler status and each room demand (On/Off) is applied to the radiator valves. | |
It could be more generic for multiple thermometers/valves per room - but it suits my needs for now. If I make it more generic I will update it accordingly. |
<?php | |
/** | |
* On-the-fly CSS Compression | |
* Copyright (c) 2009 and onwards, Manas Tungare. | |
* Creative Commons Attribution, Share-Alike. | |
* | |
* In order to minimize the number and size of HTTP requests for CSS content, | |
* this script combines multiple CSS files into a single file and compresses | |
* it on-the-fly. | |
* |
postgres: | |
image: postgres:9.4 | |
volumes: | |
- ./init.sql:/docker-entrypoint-initdb.d/init.sql |
#!/bin/bash | |
# | |
# Remove Homie Device from MQTT | |
# | |
# Simple Script to remove all reatined messages for a homie device, effectively removing the device from MQTT. | |
# The script get all topics "below" a device e.g homie/a020a615f72c/$mac and | |
# send a NULL message with mosquitto_pub to the topic. This removes the retained | |
# message and the topic will not show up anymore. | |
# | |
# How? |
/* Replace "standalone" with "fullscreen" depending on your manifest.json display mode */ | |
@media (display-mode: standalone) { | |
/* All installed PWAs */ | |
} | |
@media (max-width: 576px) and (display-mode: standalone) { | |
/* Installed PWAs on mobile devices */ | |
@supports (-webkit-overflow-scrolling: touch) { |
Proxy requests using Webpack dev server to avoid cors in development mode.
In your webpack.config file add:
"devServer":{
"proxy": {
"/api": {
"target": 'https://my-target.com',
"pathRewrite": { '^/api': '' },