Skip to content

Instantly share code, notes, and snippets.

View perlDreamer's full-sized avatar

Colin Kuskie perlDreamer

View GitHub Profile
@perlDreamer
perlDreamer / gist:16088a3d76d7839e80cc68c00e3bde07
Last active July 26, 2017 00:07
SVG animations for determining path order
<script xlink:href="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<link xmlns="http://www.w3.org/1999/xhtml" type="text/css" rel="stylesheet" href="http://unlimitedmediaworks.com/demo/svg-simulator/simulator.css"></link>
<script xlink:href="http://unlimitedmediaworks.com/demo/svg-simulator/simulator.js"></script>
#CLI's
## Change control-group class to form-group
find . -name '*.tt' | xargs perl -pi -e 's/control-group/form-group/g;'
## Change span\d to col-sm-\d
find . -name '*.tt' | xargs perl -pi -e 's/class="span(\d+)/class="col-sm-$1/g;'
## Give submit buttons a default class of btn-primary
find . -name '*.tt' | xargs perl -pi -e 's/class="btn"/class="btn btn-primary"/g;'
## hidden input types need a class
find . -name '*.tt' | xargs perl -pi -e 's/type="hidden"/class="form-control" type="hidden"/g unless /class=/;'
use Data::UUID;
my $ug=Data::UUID->new();
while ($a++ < 16) {
print $ug->create_b64(). "\n";
}
<form action="/use/bugs/tracker/11955" enctype="multipart/form-data" method="post" id="fileUploadForm"><div class="formContents"><input type="hidden" name="webguiCsrfToken" value="ekIQW4dgwuGRXpRkyJWwSg" />
<input type="hidden" name="func" value="uploadFile" />
<input type="file" id="attachment_id" name="attachment">
<div style="visibility:hidden; margin-bottom:1.5em;" id="indicator">Uploading... <img src="/extras/wobject/HelpDesk/indicator.gif"/></div>
</div></form>
Test Summary Report
-------------------
t/Asset/EMSSubmissionForm.t (Wstat: 65280 Tests: 30 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 49 tests but ran 30.
t/AssetHelper/CopyBranch.t (Wstat: 512 Tests: 5 Failed: 2)
Failed tests: 3, 5
Non-zero exit status: 2
t/AssetHelper/ExportHtml.t (Wstat: 768 Tests: 6 Failed: 3)
Failed tests: 4-6
Couldn't load class (CHI::Driver::FastMmap) because: Couldn't load class (CHI::Driver::Base::CacheContainer) because: Couldn't load class (CHI::Driver) because: Undefined subroutine &main::^O called at /usr/share/perl/5.10/Module/Load/Conditional.pm line 14.
BEGIN failed--compilation aborted at /usr/share/perl/5.10/Module/Load/Conditional.pm line 14.
Compilation failed in require at /usr/local/share/perl/5.10.1/CHI/Types.pm line 4.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/CHI/Types.pm line 4.
Compilation failed in require at /usr/local/share/perl/5.10.1/CHI/Driver.pm line 12.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/CHI/Driver.pm line 12.
Compilation failed in require at /usr/local/lib/perl/5.10.1/Class/MOP.pm line 114.
at /usr/local/lib/perl/5.10.1/Class/MOP.pm line 120
Class::MOP::__ANON__('Undefined subroutine &main::\x{f} called at /usr/share/perl/5.10/...') called at /usr/local/share/perl/5.10.1/Try/Tiny.pm line 100
<tr>
<td class="firstcol" style="height: 10px;">Photo of dog:</td>
<td class="secondcol" style="height: 10px;"><script type="text/javascript">var uploader = new FileUploadControl("photo_file", fileIcons, "remove","1", "40"); uploader.addRow();</script><input type="hidden" name="__photo_action" value="upload" id="photo_formId" />
<br /></td>
</tr>
cannot test anonymous subs - you probably loaded a Test::Class too late (after the CHECK block was run). See 'A NOTE ON LOADING TEST CLASSES' in perldoc Test::Class for more details
cannot test anonymous subs - you probably loaded a Test::Class too late (after the CHECK block was run). See 'A NOTE ON LOADING TEST CLASSES' in perldoc Test::Class for more details
cannot test anonymous subs - you probably loaded a Test::Class too late (after the CHECK block was run). See 'A NOTE ON LOADING TEST CLASSES' in perldoc Test::Class for more details
cannot test anonymous subs - you probably loaded a Test::Class too late (after the CHECK block was run). See 'A NOTE ON LOADING TEST CLASSES' in perldoc Test::Class for more details
cannot test anonymous subs - you probably loaded a Test::Class too late (after the CHECK block was run). See 'A NOTE ON LOADING TEST CLASSES' in perldoc Test::Class for more details
Called UNIVERSAL::isa() as a function, not a method at /usr/share/perl5/Test/Class.pm line 306
Called UNIVERSAL::i
GITGUI_VERSION = 0.13.0
* new locations or Tcl/Tk interpreter
GEN git-gui
INDEX lib/
* tclsh failed; using unoptimized loading
MSGFMT po/de.msg make[1]: *** [po/de.msg] Error 127
diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt
index 3a23b57..c25f9a7 100644
--- a/docs/changelog/7.x.x.txt
+++ b/docs/changelog/7.x.x.txt
@@ -4,6 +4,7 @@
- fixed #11922: Help tempalte is squatting on a good URL
- fixed #11923: Collaboration System Mail Cron Errors
- fixed #11925: Some problems in Thingy export (metaData values in CSV export)
+ - fixed #11925: Some problems in Thingy export (export times out on Things with many rows)