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
UPDATE "grp" | |
SET "active" = 'FALSE' | |
WHERE "name" ~ '2nd test site' |
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
// ==UserScript== | |
// @name Bricolage category search | |
// @namespace http://wiki.bricolage.cc/greasemonkey | |
// @description Search-as-you-type interface for Bricolage categories. Works for "New Story", "New Media", and "New Category" pages. | |
// @include */workflow/profile/*/new/* | |
// @include */admin/profile/category | |
// ==/UserScript== | |
// Create an object, used below | |
var CatSearch = { |
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
// ==UserScript== | |
// @name Bricolage Delete All | |
// @namespace http://wiki.bricolage.cc/greasemonkey | |
// @description Allows you to check all of the delete checkboxes in the Story Profile | |
// @include * | |
// ==/UserScript== | |
(function () { | |
var spans = document.getElementsByTagName("span"); |
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
<html> | |
<body> | |
% $burner->chain_next; | |
</body> | |
</html> |
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
<%perl>; | |
foreach my $e ( $element->get_elements(qw(paragraph))) { | |
$m->print('<p>', $e->get_data, "</p>\n"); | |
} | |
</%perl> |
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
<% $paragraph %> | |
<%INIT> | |
my %embeds = (); | |
# Get paragraph with markup language | |
my $markup = $element->get_data('paragraph'); | |
# Store embedded elements in a hash | |
foreach my $e ($element->get_elements) { | |
if ($e->has_name('embed_related_image')) { |
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
<% $paragraph %> | |
<%INIT> | |
my %embeds = (); | |
# Get paragraph with markup language | |
my $markup = $element->get_data('paragraph'); | |
# Store embedded elements in a hash | |
foreach my $e ($element->get_elements) { | |
if ($e->has_name('embed_related_image')) { |
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
print "hello, world"; |
NewerOlder