Reference:
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 com.uia.example.my; | |
import com.android.uiautomator.core.UiDevice; | |
import com.android.uiautomator.core.UiObject; | |
import com.android.uiautomator.core.UiObjectNotFoundException; | |
import com.android.uiautomator.core.UiScrollable; | |
import com.android.uiautomator.core.UiSelector; | |
import com.android.uiautomator.testrunner.UiAutomatorTestCase; | |
public class AddPage extends UiAutomatorTestCase { |
Reference:
- [nose - is nicer testing for python] (https://nose.readthedocs.org/en/latest/)
- [Selenium Documentation] (http://selenium.googlecode.com/git/docs/api/py/api.html)
- [Selenium with Python] (http://selenium-python.readthedocs.org/en/latest/index.html)
- [Page Objects Pattern] (https://code.google.com/p/selenium/wiki/PageObjects)
How to Run: $ nosetests --with-xunit
$ node index.js // local url
$ NODE_ENV=heroku node index.js // heroku url
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
'use strict'; | |
var EventEmitter = require('events').EventEmitter; | |
var bot = { | |
sayHi: function(name) { | |
console.log('hi ' + name); | |
}, | |
emitter: new EventEmitter() | |
}; |
Sinon sample code from Best Practices for Spies, Stubs and Mocks in Sinon.js
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
### Performance | |
# The values for the following options are dependent on the system's hardware | |
# and Internet connection speed. To find the optimal values read: | |
# Optimize Your BitTorrent Download Speed. | |
min_peers = 40 | |
max_peers = 52 | |
min_peers_seed = 10 | |
max_peers_seed = 52 |
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
# https://trac.ffmpeg.org/wiki/Encode/H.264 | |
# https://trac.ffmpeg.org/wiki/Encode/AAC | |
# -map 0 -c copy: copy all remaining streams | |
# -pix_fmt yuv420p: be compatible with most players | |
# high quality video, high quality audio | |
avconv -i input.mov -map 0 -c copy -c:v libx264 -preset veryslow -pix_fmt yuv420p -crf 17 -c:a libfdk_aac -vbr 4 output.mov | |
# high quality *compatible* full-hd video, high quality audio |
OlderNewer