Skip to content

Instantly share code, notes, and snippets.

var shape = r.rect(x, y, 100, 40, 2);
var label = r.text(x+50, y+20, devices[i]);
label.box = shape;
shape.label = label;
<?php
if (!is_user_logged_in() && $_GET["page_id"]!=7)
{header('Location: '.wp_login_url());}
?>
return empty($theme_my_login->options['email']['new_user']['message']) ? $message : jkf_tml_custom_email_replace_vars($theme_my_login->options['email']['new_user']['message'], $user_id, $replacements);
if ((strpos($_SERVER['PHP_SELF'], 'wp-login.php') === false) && (strpos($_SERVER['PHP_SELF'], 'wp-register.php') === false)) {
auth_redirect();
}
<?php
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$reqURI = explode("?",$_SERVER["REQUEST_URI"]);
$pageURL .= $_SERVER["SERVER_NAME"].$reqURI[0];
}
<?php
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
if (!is_user_logged_in() && $pageURL!=wp_login_url())
if ( $this->load_includes ) {
require_once( BACKPRESS_PATH . 'functions.core.php' );
require_once( BACKPRESS_PATH . 'functions.compat.php' );
require_once( BACKPRESS_PATH . 'functions.formatting.php' );
require_once( BACKPRESS_PATH . 'functions.plugin-api.php' );
require_once( BACKPRESS_PATH . 'class.wp-error.php' );
require_once( BB_PATH . BB_INC . 'functions.bb-core.php' );
require_once( BB_PATH . BB_INC . 'functions.bb-meta.php' );
require_once( BB_PATH . BB_INC . 'class.bp-options.php' );
require_once( BACKPRESS_PATH . 'functions.bp-options.php' );
==============================================================================
World of WarCraft (build 11159)
Exe: F:\Users\Public\Games\World of Warcraft\WoW.exe
Time: Jan 31, 2010 2:36:18.884 PM
User: Tom
Computer: TOM-PC
------------------------------------------------------------------------------
This application has encountered a critical error:
class myclass(object):
def __init__(self):
self._x = 5
@property
def x(self):
return self._x
@x.setter
def x(self, value):
self._x = value
@x.deleter
# Method 0
attribs = {}
for elem in config_etree:
try:
attribs[elem.tag] = elem.text
except:
ET.dump(elem) #prints the xml to stdout so I can see why it failed
curr_tileset.__dict__.update(attribs)
# Method 1