Skip to content

Instantly share code, notes, and snippets.

View axemonkey's full-sized avatar

Clive Murray axemonkey

  • UK
View GitHub Profile
@axemonkey
axemonkey / radioButtonNotChecked.js
Last active April 5, 2018 15:26
Test if a radio button is unchecked in Nightwatch
// cribbed from http://www.melkybee.com/blog/2015/07/12/nightwatch-js-check-if-a-checkbox-is-checked/
client.element('id', 'application_partner_over_61_false', function(response) {
client.elementIdSelected(response.value.ELEMENT, function(result) {
client.assert.ok(!result.value, 'Radio button #application_partner_over_61_false is not selected');
});
});
<!-- Challenge: Recreate the image shown in the screenshot. Feel free to add markup below as required. Bonus points for creating re-usable components. Don't worry too much about having the exact fonts. -->
<section>
<section class="intro">
<h1>Main header</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin augue neque, mattis eget lacinia ac, venenatis et lacus.</p>
<a href="#">Yes, Please</a>
</section>
<section class="detail">
<h1>Benefits</h1>

Keybase proof

I hereby claim:

  • I am axemonkey on github.
  • I am axemonkey (https://keybase.io/axemonkey) on keybase.
  • I have a public key whose fingerprint is A587 C5E2 ADE9 00D1 A20D 13F2 116B 0D5A 21D4 48F4

To claim this, I am signing this object:

# colour lookup found at http://www.ibm.com/developerworks/linux/library/l-tip-prompt/
D=$'\e[37m'
PINK=$'\e[35;40m'
GREEN=$'\e[32;40m'
RED=$'\e[31;40m'
ORANGE=$'\e[33;40m'
CYAN=$'\e[36;40m'
GREYBEIGEBOLD=$'\e[1;30;47m'
function in_git_repo {
@axemonkey
axemonkey / fp
Created July 25, 2013 16:31
Everyone should have this in their .bash_profile
alias fp="echo -e ' _______...\n .-‘”..........``~.\n ,.-”..................“-.\n ,/........................”:\n ,?............................\ \n /..............................,}\n /...........................,:\`^\`.}\n /..........................,:”..../\n ?...__......................:\`...../\n /__.(...“~-,_.............,:\`...../\n /(_..”~,_....“~,_..........:\`...._/\n {._$;_...”=,_....“-,_...-~/~},.~”/.}\n ((...*~_....”=-._...“;,./\`./”...../\n \\\`~,...“~.,..........\`...}....../\n (..\`=-,,....\`............(...\_,-”\n /.\`~,...\`-................\\../^\\ \n \\\`~.*-,...................|/...\,__\n,,_ }.>-._\..................|........\`=~-,.. \n...\`=~-,_\\_...\`\\,.................\\.............. \n..........\`=~-,,.\\,................\\............. \n................\`:,,..............\`\\.......__.... \n...................\`=-,..........,%\`>--