Skip to content

Instantly share code, notes, and snippets.

View barryvan's full-sized avatar

Barry van Oudtshoorn barryvan

View GitHub Profile
param (
[Parameter(Mandatory)][string] $GitHubToken,
[Parameter(Mandatory)][string] $GitHubOwner,
[Parameter(Mandatory)][string] $GitHubRepo,
[Parameter(Mandatory)][string] $SourceTrelloJsonFile,
[string[]] $TrelloLists,
[bool] $UpdateExistingIssuesByTitle = $true,
[bool] $AddNonExistingIssues = $true,
[bool] $Logging = $true,
[bool] $DeleteExistingComments = $true
@barryvan
barryvan / Element.getCellCoords.js
Created March 14, 2012 07:06
Determining a table cell's x and y position/index
// See http://www.barryvan.com.au/2012/03/determining-a-table-cells-x-and-y-positionindex
Element.implement({
getCellCoords: function() {
if (this.get('tag') !== 'td' && this.get('tag') !== 'th') return null;
var result = {};
// The y-coord is simply the number of <tr> elements that precede our parent, plus our parent.
result.y = this.getParent('tr').getAllPrevious('tr').length;