This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am nigelkibodeaux on github. | |
* I am nigelk (https://keybase.io/nigelk) on keybase. | |
* I have a public key whose fingerprint is EEA4 B41C BCDA 13FB 9AFC ADF4 6268 8253 5157 2390 | |
To claim this, I am signing this object: |
This file contains 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
<script> | |
console = {}; | |
console.log = function(stuff) { | |
if (typeof stuff == 'object') | |
stuff = JSON.stringify(stuff); | |
document.write(stuff + '<br>'); | |
}; | |
This file contains 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
$('.ajax__tab_panel tr a').click(function(e){e.preventDefault();sorter(e)}); | |
function sorter(e){ | |
collection = $('#ctl00_ctl00_BodyContentPlaceHolder_ProjectTrackPlaceHolder1_TabContainer1_tpMyItems_ilcMyItems_gvIssues').find('.RDISelectableGridItem'); | |
var $tbody = $(e.srcElement).closest('tbody'); | |
index = $tbody.find('a').index(e.srcElement); console.log(index); | |
collection = collection.sort(function(a,b){return $(a).find('td:eq('+index+')').text() > $(b).find('td:eq('+index+')').text();}); | |
$tbody.find('.RDISelectableGridItem').remove(); | |
collection.each(function(){$tbody.append(this.outerHTML)}); | |
} |
This file contains 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
{ | |
"IPA": [ | |
"India Pale Ale", | |
"Black India Pale Ale", | |
"Belgian White IPA", | |
"Imperial India Pale Ale", | |
"Belgian Specialty - India Pale Ale", | |
"Belgian-style Tripel", | |
"Belgian-style Double India Pale Ale", | |
"Winter Seasonal—India Pale Ale", |
This file contains 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
jsonStuff = { version: 4, breweries: [ | |
{ | |
"name": "21st Amendment", | |
"info": "San Francisco, CA", | |
"beers": [ | |
{ | |
"name": "Brew Free or Die IPA", | |
"style": "India Pale Ale", | |
"category": [ | |
"IPA" |