Skip to content

Instantly share code, notes, and snippets.

Alexander Brett alexander-brett

Block or report user

Report or block alexander-brett

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View lifts.js
var floors = {};
var floorsVisited = {};
var elevators = [];
var idles = [];
var up = "up";
var down = "down";
function distinct (a){
return a.filter((value, index, self) => self.indexOf(value) === index);
@alexander-brett
alexander-brett / bundle.bat
Created Aug 12, 2015
Create a redistributable .exe file for App-SFDC
View bundle.bat
perl -x %0 > static_SFDC.pl
perlapp ^
--add MooX::Options::Role^
--add App::SFDC::Role::^
--add Log::Log4perl::Appender::Screen^
--add WWW::SFDC::^
--bind manifests/base.xml[file=C:\perl64\site\lib\auto\Share\dist\App-SFDC-Metadata\manifests\base.xml,text,mode=666]^
--bind manifests/all.xml[file=C:\perl64\site\lib\auto\Share\dist\App-SFDC-Metadata\manifests\all.xml,text,mode=666]^
--bind plugins/retrieve.plugins.pm[file=C:\perl64\site\lib\auto\Share\dist\App-SFDC-Metadata\plugins\retrieve.plugins.pm,text,mode=777]^
@alexander-brett
alexander-brett / runUnitTests.pl
Created Feb 2, 2015
Run unit tests with WWW::SFDC
View runUnitTests.pl
#!/usr/bin/env perl
use Modern::Perl '2013';
use Getopt::Long;
use WWW::SFDC::Tooling;
use Data::Dumper;
=head1 NAME
runUnitTests.pl - run SFDC unit tests and output jUnit formatted results
View xmlDiff.pm
package xmlDiff;
use Data::Dumper;
use strict;
use warnings;
use v5.10;
$\ = "\n";
$/ = "\0";
sub parseXML {
You can’t perform that action at this time.