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
| from selenium import webdriver | |
| from selenium.webdriver.chrome import service | |
| import time | |
| import unittest | |
| myService = service.Service('/path/to/chromedriver') | |
| capabilities = {'chrome.binary': '/path/to/custom/chrome'} | |
| class test_ChromeDriverService(unittest.TestCase): |
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
| from PyQt4 import QtCore, QtGui | |
| class Dialog(QtGui.QDialog): | |
| def __init__(self, parent=None): | |
| super(Dialog, self).__init__(parent) | |
| self.resize(300,200) | |
| def showEvent(self, event): |
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
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # vim:fenc=utf-8 | |
| # | |
| # Copyleft (ↄ) 2016 jkirchartz <jkirchartz@Joels-iMac.local> | |
| # Modified 2017 ChrisNguyen | |
| # Distributed under terms of the NPL (Necessary Public License) license. | |
| # Tested in python 3.6 | |
| """ |
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
| #!/bin/sh | |
| # installation script for Android SDK and JDK 8 on Ubuntu | |
| # for Android development with gradlew-based projects | |
| # tested on Cloud9 | |
| ANDROID_HOME=$HOME/lib/android-sdk-linux | |
| ANDROID_SDK_VERSION=24.4.1 | |
| ANDROID_BUILD_TOOLS_VERSION=23.0.2 | |
| ANDROID_API_LEVEL=22 |
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
| public class BatteryActivity extends Activity { | |
| //UI Elements | |
| private TextView mTextViewLevel; | |
| private TextView mTextViewTemperature; | |
| private TextView mTextViewVoltage; | |
| private TextView mTextViewHealth; | |
| //Battery details | |
| private int level; |