Permalink
Browse files

New Lorem Ipsum generator and FlatXMLDataSet bundles.

New Lorem Ipsum generator and FlatXMLDataSet bundles bundles by
borisguery and chandraonline - thanks guys!
  • Loading branch information...
1 parent 179ce3e commit 32f01ca04ddb8044410634a052f8311d6939a160 Matt Langtree committed Sep 5, 2012
View
@@ -17,8 +17,7 @@ We will update the list of contributed bundles on our website as we get time. If
### September 2012
* We have broken the bundles up into Core and Contributed bundles.
- * Integrated bundles from [voxpelli][6] and [liviutudor][7]. Thanks guys!
- * Bundle from [markcarver][10] added.
+ * Integrated bundles from [voxpelli][6], [liviutudor][7], [markcarver][10], [borisguery][11] and [chandraonline][12]. Thanks guys!
### October 2011
* Integrated bundle from [andrewfulton][5], thanks!
@@ -37,4 +36,6 @@ Contact [Sequel Pro][3] on Twitter with any questions.
[7]: https://github.com/liviutudor "Liviu Tudor"
[8]: http://sequelpro.com/bundles/share "Share your Bundle"
[9]: https://github.com/sequelpro/Bundles "Sequel Pro Bundles on github"
-[10]: https://github.com/markcarver "Mark Carver"
+[10]: https://github.com/markcarver "Mark Carver"
+[11]: https://github.com/borisguery "borisguery"
+[12]: https://github.com/chandraonline "chandraonline"
@@ -0,0 +1,136 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>author</key>
+ <string>Chandra Siva</string>
+ <key>category</key>
+ <string>Copy</string>
+ <key>command</key>
+ <string>cat | perl -e '
+use MIME::Base64;
+
+# read first line to get the column names (header)
+$firstLine = &lt;&gt;;
+
+# bail if nothing could read
+if(!defined($firstLine)) {
+ exit 0;
+}
+
+# store the column names
+chomp($firstLine);
+$firstLine =~ s/\"/\\\"/g; # escape "
+@header = split(/\t/, $firstLine);
+
+$h_cnt = $#header; # number of columns
+
+# get the column definitions
+open(META, $ENV{"SP_BUNDLE_INPUT_TABLE_METADATA"}) or die $!;
+@meta = ();
+while(&lt;META&gt;) {
+ chomp();
+ my @arr = split(/\t/);
+ push @meta, \@arr;
+}
+close(META);
+
+# read row data of each selected row
+$rowData=&lt;&gt;;
+while($rowData) {
+
+ #print "&lt;" . $ENV{"SP_SELECTED_TABLE"} . " ";
+
+ # remove line ending
+ chomp($rowData);
+
+ # escape "
+ $rowData=~s/\"/\\\"/g;
+
+ # split column data which are tab-delimited
+ @data = split(/\t/, $rowData);
+ $rowOut="";
+ $rowOut .= "&lt;" . $ENV{"SP_SELECTED_TABLE"} . " ";
+ for($i=0; $i&lt;=$h_cnt; $i++) {
+
+ # re-escape \t and \n
+ $cellData = $data[$i];
+ $cellData =~ s/&amp;/&amp;amp;/g;
+ $cellData =~ s/↵/\n/g;
+ $cellData =~ s/⇥/\t/g;
+
+ # check for data types
+ next if($meta[$i]-&gt;[1] eq "textdata") ;
+ next if($cellData eq "NULL") ;
+
+ #print "$header[$i]=";
+ $rowOut .= "$header[$i]=";
+
+ if($meta[$i]-&gt;[1] eq "integer" || $meta[$i]-&gt;[1] eq "float") {
+ chomp($cellData);
+ $d = $cellData+0;
+ #print "\"$d\"";
+ $rowOut .= "\"$d\"";
+ } else {
+ chomp($cellData);
+ #print "\"$cellData\"";
+ $rowOut .= "\"$cellData\"";
+ }
+
+ # suppress last ,
+ if($i&lt;$h_cnt) {
+ #print " ";
+ $rowOut .= " ";
+ }
+ }
+
+ # get next row
+ $rowData=&lt;&gt;;
+
+ #print " /&gt;";
+ $rowOut .= " /&gt;";
+ print $rowOut;
+
+ if($rowData) {
+ print "\n";
+ }
+}
+
+print "";
+
+' | __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 pbcopy</string>
+ <key>contact</key>
+ <string>rznvy@punaqenbayvar.arg</string>
+ <key>defaultBundleWasModified</key>
+ <true/>
+ <key>description</key>
+ <string>Copies the selected rows excluding any BLOB data in a data table FlatXMLDataSet formatted into the pasteboard.
+
+Version 1.0</string>
+ <key>input</key>
+ <string>selectedtablerowsastab</string>
+ <key>internalKeyEquivalent</key>
+ <dict>
+ <key>characters</key>
+ <string>C</string>
+ <key>keyCode</key>
+ <integer>8</integer>
+ <key>modifierFlags</key>
+ <integer>262144</integer>
+ </dict>
+ <key>isDefaultBundle</key>
+ <true/>
+ <key>keyEquivalent</key>
+ <string>^c</string>
+ <key>name</key>
+ <string>Copy as FlatXMLDataSet</string>
+ <key>output</key>
+ <string>none</string>
+ <key>scope</key>
+ <string>datatable</string>
+ <key>tooltip</key>
+ <string>Copies the selected rows excluding any BLOB data FlatXMLDataSet formatted into the pasteboard</string>
+ <key>uuid</key>
+ <string>4CC7DB8E-6110-11E1-B696-080027372F5E</string>
+</dict>
+</plist>
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>author</key>
+ <string>Boris Guéry</string>
+ <key>category</key>
+ <string>Lorem Ipsum</string>
+ <key>command</key>
+ <string>#!/usr/bin/ruby
+
+print "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vel mi lacus. Sed vitae lacus et mauris vulputate auctor. Nulla facilisi. Phasellus ac lacus mi, cursus dapibus odio. Suspendisse sem justo, elementum ut interdum ut, auctor in velit. Donec id purus id urna vestibulum mollis. Nunc pellentesque sapien et lorem fermentum lacinia. Vivamus erat nisl, auctor mollis pretium id, dapibus et ipsum. Nunc convallis sodales massa, vitae tincidunt elit accumsan in. Duis sit amet lorem nunc, vel viverra eros. Integer scelerisque gravida quam ut venenatis. Etiam sit amet purus metus, quis rhoncus libero."</string>
+ <key>contact</key>
+ <string>threl.o@tznvy.pbz</string>
+ <key>description</key>
+ <string>Generate a Lorem Ipsum paragraph of 92 words and 611 characters, best suited for TEXT type.</string>
+ <key>internalKeyEquivalent</key>
+ <dict>
+ <key>characters</key>
+ <string>P</string>
+ <key>keyCode</key>
+ <integer>35</integer>
+ <key>modifierFlags</key>
+ <integer>393216</integer>
+ </dict>
+ <key>keyEquivalent</key>
+ <string>^$P</string>
+ <key>name</key>
+ <string>Paragraph</string>
+ <key>output</key>
+ <string>insertastext</string>
+ <key>scope</key>
+ <string>inputfield</string>
+ <key>uuid</key>
+ <string>C73F7EA3-4CDC-4F3F-B9EE-FEED7E3F0B71</string>
+</dict>
+</plist>
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>author</key>
+ <string>Boris Guéry</string>
+ <key>category</key>
+ <string>Lorem Ipsum</string>
+ <key>command</key>
+ <string>#!/usr/bin/ruby
+
+print "Lorem Ipsum"</string>
+ <key>contact</key>
+ <string>threl.o@tznvy.pbz</string>
+ <key>description</key>
+ <string>Insert Lorem Ipsum. Best suited for VARCHAR type.</string>
+ <key>input</key>
+ <string>none</string>
+ <key>internalKeyEquivalent</key>
+ <dict>
+ <key>characters</key>
+ <string>T</string>
+ <key>keyCode</key>
+ <integer>17</integer>
+ <key>modifierFlags</key>
+ <integer>393216</integer>
+ </dict>
+ <key>keyEquivalent</key>
+ <string>^$T</string>
+ <key>name</key>
+ <string>Two Words</string>
+ <key>output</key>
+ <string>insertastext</string>
+ <key>scope</key>
+ <string>inputfield</string>
+ <key>uuid</key>
+ <string>8F858F4D-9DCC-488A-B01C-D9F7FA32FE32</string>
+</dict>
+</plist>

0 comments on commit 32f01ca

Please sign in to comment.