I hereby claim:
- I am jonathanconway on github.
- I am jonathanconway (https://keybase.io/jonathanconway) on keybase.
- I have a public key ASA7Vervmw8Z4dy8JI_5Z8sxZKGUfLNvdtjatCLQ6NdtZgo
To claim this, I am signing this object:
/** | |
* @ngdoc directive | |
* @name radioTabbable | |
* @requires none | |
* @description | |
* Makes individual radio buttons focuseable using the TAB key. | |
* (By default, pressing TAB while on a radio button would have shifted focus to the next control outside of the radio group.) | |
* @usage | |
* <input type="radio" name="radioGroup" value="0" radio-tabbable="" /> | |
* <input type="radio" name="radioGroup" value="1" radio-tabbable="" /> |
(function ($) { | |
$.showError = function(element, errorMessage, showInSummary, summaryLinkTargetElement) { | |
var $element = $(element); | |
var $form = $element.parents('form').first(); | |
var elementName = $element.attr('name'); | |
var elementLabel = $('label[for={0}]>span:first'.format(elementName)).text(); | |
var $validationSummary; | |
var $validationLink; | |
var $target = !summaryLinkTargetElement ? $element : $(summaryLinkTargetElement); | |
################################################################################ | |
# | |
# 1. Save this file to /usr/local/bin | |
# | |
# 2. To make it executable: chmod u+x /usr/local/bin/create-react-app-minimal.sh | |
# | |
# 3. To create your app: create-react-app-minimal {app-name} | |
# | |
# 4. In your package.json, change this line: | |
# "test": ... |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
echo #!/bin/bash > $0 | |
chmod u+x $0 # set permissions so that it's to be executable |
import React, { PureComponent, PropTypes } from 'react'; | |
export default class Timer extends PureComponent { | |
static propTypes = { | |
interval: PropTypes.number, | |
onExpiry: PropTypes.func | |
}; | |
constructor(props) { | |
super(props); |
#!/bin/bash | |
find ./ -type f -name $1 -delete |
// Credit: http://joquery.com/2012/string-format-for-javascript | |
String.prototype.format = function() { | |
var s = this; | |
for (var i = 0; i < arguments.length; i++) { | |
var reg = new RegExp("\\{" + i + "\\}", "gm"); | |
s = s.replace(reg, arguments[i]); | |
} | |
return s; | |
} |
\version "2.18.2" | |
\header { | |
title = "16-10-16" | |
composer = "Jonathan A. Conway" | |
} | |
\score { | |
\new PianoStaff << | |
\new Staff { |
$.fn.radioTabbable = function () { | |
var groups = []; | |
// group the inputs by name | |
$(this).each(function () { | |
var el = this; | |
var thisGroup = groups[el.name] = (groups[el.name] || []); | |
thisGroup.push(el); | |
}); |