This file contains hidden or 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
| var img = jQuery('iframe[id="google_ads_iframe_1111/circle.example_1"]').contents().find('img') | |
| img.attr('width', 280) | |
| img.attr('height', 230) |
This file contains hidden or 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
| In Drupal 7, the conf variable you should add the following line in your settings.php | |
| $conf['user_mail_register_no_approval_required_notify'] = FALSE; | |
| The bold could take this value: | |
| register_admin_created: Welcome message for user created by the admin. | |
| register_no_approval_required: Welcome message when user self-registers. | |
| register_pending_approval: Welcome message, user pending admin approval. | |
| password_reset: Password recovery request. | |
| status_activated: Account activated. |
This file contains hidden or 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
| import urllib2 | |
| import feedparser | |
| import time | |
| import sys | |
| url = 'http://www.zurnal24.si/index.php?ctl=show_rss' | |
| opener = urllib2.build_opener() | |
| opener.addheaders = [('User-Agent', 'Mozilla/5.0')] | |
| # Try to connect a few times, waiting longer after each consecutive failure |
This file contains hidden or 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
| $('#user-register input, #user-register select').each(function(){ | |
| console.log("text_field :" + $(this).attr('name') + ", :id => '" + $(this).attr('id') + "'"); | |
| }); |
This file contains hidden or 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
| YOUR_THEME.info: | |
| ... | |
| regions[BLOCK_REGION_NAME] = Block region name | |
| ... | |
| template.php: | |
| <?php | |
| /** |
This file contains hidden or 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
| <?php | |
| $msg = t('Your message here.'); | |
| form_set_error('field_shopdata_paypal][0][value', $msg); | |
| form_set_error('field_shopdata_paypal_fname][0][value', $msg); | |
| array_pop($_SESSION['messages']['error']); // Remove doubled mesage. | |
| form_set_error('field_shopdata_paypal_lname][0][value', $msg); | |
| array_pop($_SESSION['messages']['error']); // Remove doubled mesage. |
This file contains hidden or 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
| `svn diff -r #{ARGV[0]}:HEAD --summarize`.lines().each { |file| | |
| p file.chomp.gsub(/[AM ]/, "") | |
| } |
This file contains hidden or 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
| $('#user-register :input').each(function(){ | |
| console.log($(this).attr('name')) | |
| }); |
This file contains hidden or 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
| <?php | |
| /** | |
| * Implementation of hook_form_alter() | |
| */ | |
| function hook_form_alter(&$form, $form_state, $form_id) { | |
| if (drupal_match_path($form_id, 'uc_product_add_to_cart_form_*')) { | |
| array_unshift($form['#submit'], 'uc_product_before_add_to_cart_submit'); | |
| } | |
| } |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
| <head profile="http://selenium-ide.openqa.org/profiles/test-case"> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <link rel="selenium.base" href="http://example.com/" /> | |
| <title>checkout</title> | |
| </head> | |
| <body> | |
| <table cellpadding="1" cellspacing="1" border="1"> |