# Version key/value should be on his own line | |
PACKAGE_VERSION=$(cat package.json \ | |
| grep version \ | |
| head -1 \ | |
| awk -F: '{ print $2 }' \ | |
| sed 's/[",]//g') | |
echo $PACKAGE_VERSION |
div { | |
padding: 20px 0; | |
margin: 5px 0; | |
background-color: lightgreen; | |
outline: 1px solid blue; | |
display: inline-block; | |
} | |
a { | |
background-color: yellow; | |
} |
#!/bin/sh | |
BACKUP_DATE=`date +%Y-%m-%d_%H-%M-%S` | |
BACKUP_DIR="~/PEAK/BACKUPS/$BACKUP_DATE" | |
mkdir -p "$BACKUP_DIR" | |
cd "$BACKUP_DIR" | |
sudo adb pull /data/local/storage/persistent/ |
$(document).ready(function() { | |
var embedGist = function () { | |
$('a[href^="https://gist.github.com"]').each(function(i) { | |
if (writeCapture) { | |
var wrapper = $("<div></div>"); | |
wrapper.insertAfter(this); | |
writeCapture.html(wrapper[0], '<script src="'+$(this).attr("href")+'.js"></script>'); | |
$(this).remove(); | |
} else { |
Leaving this for historical reasons, but with the latest iteration I set up proper dotfiles. Check em out
After too many years of tinkering my machine is a bit all over. With Mojave High Sierra Montery I wanted to start fresh
Make sure everything is up to date.
Once this is included in your project you can use
Helper.find_web_element("div#ad_banner")
If if does not work then the element does not exist. I am sure the code can be cleaned up but this is how I managed to solve my issues with hybrid app testing.
Based on D3.JS and Dimple, ChartFactory provide the ability to build quickly D3.JS charts without coding any lines of javascript. Just define your dashboard in a JSON and voila !
charts: [
{id:'chart1',
width:800,height:250,
xAxis:{type:'Category',field: "Month",orderRule:'Date'},
source "http://rubygems.org" | |
gem 'watir-webdriver' | |
gem 'selenium-webdriver' |
A Dashing widget that checks whether a server is responding to either an http or ping request. It displays either a check or alert depending on the response.