Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
[Appium] Welcome to Appium v1.7.2 (REV 0e9005b71127dc088d693513da4b638e052c77e1) | |
[Appium] Non-default server args: | |
[Appium] address: 192.168.1.8 | |
[Appium] port: 4724 | |
[Appium] nodeconfig: ./ios-config.json | |
[debug] [Appium] Starting auto register thread for grid. Will try to register every 5000 ms. | |
[Appium] Appium REST http interface listener started on 192.168.1.8:4724 | |
[debug] [Appium] Appium successfully registered with the grid on 192.168.1.3:4444 | |
[HTTP] --> GET /wd/hub/status {} | |
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: [] |
$ composer selenium-server-hub | |
> ./vendor/bin/selenium-server-standalone -role hub | |
08:21:30.005 INFO - Selenium build info: version: '3.7.1', revision: '8a0099a' | |
08:21:30.007 INFO - Launching Selenium Grid hub | |
2018-02-07 08:21:30.639:INFO::main: Logging initialized @1075ms to org.seleniumhq.jetty9.util.log.StdErrLog | |
08:21:30.664 INFO - Will listen on 4444 | |
2018-02-07 08:21:30.736:INFO:osjs.Server:main: jetty-9.4.5.v20170502 | |
2018-02-07 08:21:30.783:INFO:osjs.session:main: DefaultSessionIdManager workerName=node0 | |
2018-02-07 08:21:30.784:INFO:osjs.session:main: No SessionScavenger set, using defaults | |
2018-02-07 08:21:30.788:INFO:osjs.session:main: Scavenging every 660000ms |
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: [] | |
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.7.2","revision":"0e9005b71127dc088d693513da4b638e052c77e1"}} | |
[HTTP] <-- GET /wd/hub/status 200 14 ms - 110 | |
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"browserName":"Safari","deviceName":"iPad","platformName":"ios","platformVersion":"11.2.5"},"capabilities":{"desiredCapabilities":{"browserName":"Safari","deviceName":"iPad","platformName":"ios","platformVersion":"11.2.5"},"firstMatch":[{"browserName":"Safari","platformName":"ios"}]}} | |
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"browserName":"Safari","deviceName":"iPad","platformName":"ios","platformVersion":"11.2.5"},null,{"desiredCapabilities":{"browserName":"Safari","deviceName":"iPad","platformName":"ios","platformVersion":"11.2.5"},"firstMatch":[{"browserName":"Safari","platformName":"ios"}]}] | |
[debug] [BaseDriver] Event 'newSessionRequested' logged at 151801349476 |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
<!-- format for datatable id, title and url | |
--> | |
<template name="postItem"> | |
<li data-id="{{_id}}" | |
data-title="{{title}}" | |
data-url='<a href="{{url}}" target="_blank">{{url}}</a>' | |
> | |
</li> | |
</template> |
'use strict'; | |
(function(globals){ | |
"use strict"; | |
globals.Helpers = {}; | |
}(this)); | |
Helpers['onClickDiscuss'] = function(ev, id) { | |
console.log('onClickDiscuss', ev); | |
console.log('onClickDiscuss', id); | |
var path= Router.routes['postPage'].path({_id: id}); |
<template name="postslist"> | |
<div data-id="postslist" | |
data-view="datatable" | |
data-type="line" | |
data-autoheight=1> | |
<config name="onClick" fa-comment-o="{{onClick}}"></config> | |
<div data-view="column" | |
data-fillspace=1 | |
data-id="title"> |
<template name="postItem"> | |
<li data-title="{{title}}" | |
data-url='<a href="{{url}}" target="_blank">{{url}}</a>' | |
> | |
</li> | |
</template> |