yum install -y etcd
# vim /etc/yum.repos.d/virt7-docker-common-release.repo
[virt7-docker-common-release]
| import Component from './component'; | |
| class Widget extends Component { | |
| init(ctrl) { | |
| var props = this.props; | |
| ctrl.counter = props.initialValue; | |
| ctrl.increment = function() { | |
| ctrl.counter++; |
| <?php | |
| namespace Helpers; // Optional | |
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ |
| $( function() { | |
| $('form').find('input:text').val( function(i, val) { | |
| return randomText(); | |
| }); | |
| $('form').find('input[type="number"]').val( function(i, val) { | |
| return randomInt(); | |
| }); |
How to import and indicate empty request or reply messages:
import "google/protobuf/empty.proto";
service SomeService {
rpc SomeOperation (google.protobuf.Empty) returns (google.protobuf.Empty) {}
}
| import m from 'mithril'; | |
| import stream from 'mithril/stream'; | |
| import {Button} from '../../ui'; | |
| import {Account} from '../../models'; | |
| export const FormAccountPublicPage = { | |
| oninit(vnode) { | |
| this.loading = true; | |
| this.saving = false; | |
| this.errors = false; |
| describe('Handle changes on input text', () => { | |
| it('should have...', async () => { | |
| const itemAdder = await element(by.id('inputAdder')); | |
| const touchableAdder = await element(by.id('touchableAdder')); | |
| // Focus the input field | |
| await itemAdder.tap(); | |
| await itemAdder.typeText('Item'); | |
| // expectations | |
| }); |