Skip to content

Instantly share code, notes, and snippets.

View jim's full-sized avatar

Jim Benton jim

  • Discord
  • Chicago, IL
  • 13:22 (UTC -05:00)
View GitHub Profile
define('TWITTER_USERNAME', 'testfacer'); // your twitter username
define('TWITTER_PASSWORD', 'testfacer'); // your twitter password
// post to twitter for these sections
// separate more than one with just a comma: 'articles,about,etc'
define('TWITTER_SECTIONS', 'articles');
// setup a callback so we're notified when an article is edited
if (@txpinterface == 'admin') {
global $txpcfg;
# includes some technically sovereign countries that are on the official USPS list
# as well as territories
ABBREVIATIONS = {
"Alabama" => "AL",
"Alaska" => "AK",
"American Samoa" => "AS",
"Arizona" => "AZ",
"Arkansas" => "AR",
"California" => "CA",
$("div#featured_navigation a").click(function () {
$(this).effect("highlight", { color: "#a7d6ee" }, 500);
var id = '#' + $(this).attr('id').replace('_nav', '');
if (!$(id).is(':visible')) {
$(".boxclass:visible").fadeOut(1000, function(){$(id).fadeIn(1000)})
}
});
it "should wrap with a div" do
input = <<-HTML
<p>
In order to attain the greatest possible clearness,
let us return to our example of the railway carriage supposed
to be travelling uniformly.
</p>
HTML
output = <<-HTML
module Spec
module Matchers
module Markup
class MatchMarkup
def initialize(expected)
@expected = expected
end
def matches?(target)
@target = target