| Battery | Capacity |
|---|---|
| CR1632 | 140 mAh |
| CR2032 | 225 mAh |
| CR2450 | 620 mAh |
| CR2477 | 1000 mAh |
| AAA | 1200 mAh |
| AA | 2500 mAh |
Updated January, 2015
Below is a layer-by-layer breakdown of how I test my Python projects, starting with my Github repository and ending with the test files themselves.
Testing begins with Travis-CI, which hooks into your Github repository to automatically run tests on pull requests and current production branches. It provides a nice visual representation of when tests are failing and a decent overview of all the tests scheduled to run. Travis integration is run through a .travis.yml file in the main project repository. Although Travis is itself a capable test runner, it is important to maintain the ability to run tests locally without having to submit a pull request to test. That's why we'll be using test runners such as tox as described below.
| <?xml version="1.0"?> | |
| <root> | |
| <!-- Shell Commands --> | |
| <vkopenurldef> | |
| <name>KeyCode::VK_OPEN_URL_unlock_android_screen</name> | |
| <url type="shell"> | |
| <![CDATA[ | |
| ~/Library/Android/sdk/platform-tools/adb shell input keyevent 82 | |
| ]]> | |
| </url> |
| # This is written for PYTHON 3 | |
| # Don't forget to install requests package | |
| import requests | |
| import json | |
| spaceId = 'your space ID here' | |
| apiToken = 'your api token here' | |
| url = 'https://api.robinpowered.com/v1.0/spaces/{}/presence'.format(spaceId) |
| // List the full gradle dependencies for an Android app | |
| ./gradlew app:dependencies -q |
| 'use strict'; | |
| function getDependencies(funcs) { | |
| const dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs | |
| if (!dependencies.every(dep => typeof dep === 'function')) { | |
| const dependencyTypes = dependencies.map( | |
| dep => typeof dep | |
| ).join(', ') | |
| throw new Error( |
| adb logcat '*:W' > logcatWarningsAndErrors.txt |
| componentDidUpdate(prevProps) { | |
| console.log("Render update diff:"); | |
| const now = Object.entries(this.props); | |
| const added = now.filter(([key, val]) => { | |
| if (prevProps[key] === undefined && val !== undefined) return true; | |
| if (prevProps[key] !== val) { | |
| console.log(`${key} | |
| + ${JSON.stringify(val)} | |
| - ${JSON.stringify(prevProps[key])}`); |
| git status | egrep -v '.js|.png' |