This file contains 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
angular.module('ui.bootstrap.editable', []) | |
.constant('editableConfig', { | |
validators: { | |
required: 'This field is required.', | |
min: 'A minimum value of {{ value }} is required.', | |
max: 'A maximum value of {{ value }} is allowed.', | |
ngMinlength: 'A minimum length of {{ value }} is required.', | |
ngMaxlength: 'A maximum length of {{ value }} is allowed.', | |
email: 'A valid email address is required.', | |
url: 'A valid URL is required.', |
This file contains 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
import React from 'react'; | |
export class RenderTest extends React.Component { | |
static propTypes = {}; | |
static defaultProps = { | |
component: 'div' | |
}; | |
render() { |
This file contains 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
{ | |
"Component Will Mount": { | |
"prefix": "willmount", | |
"body": [ | |
"componentWillMount() {", | |
"\t$0", | |
"}" | |
], | |
"description": "React componentWillMount" | |
}, |
This file contains 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
version: '2.1' | |
services: | |
homeassistant: | |
container_name: homeassistant | |
image: homeassistant/home-assistant:0.99.1 | |
network_mode: "host" | |
volumes: | |
- /opt/homeassistant:/config | |
- /etc/localtime:/etc/localtime:ro | |
- /etc/letsencrypt:/etc/letsencrypt:ro |
This file contains 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
# Redirect all http traffic to https | |
server { | |
listen 80; | |
return 301 https://$host$request_uri; | |
} | |
# Portainer Upstream | |
upstream portainer { | |
server YOUR.PI.IP.ADDRESS:9000; | |
keepalive 32; |