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
Herbert has joined this session! | |
Connected with Herbert. Your reference number for this chat session is 2110638. | |
Herbert: Welcome to Microsoft Customer Service Chat, Tom. Please give me a moment while I review your question. | |
Herbert: Please be informed that this chat service is available to guide you to the appropriate resources for your questions. Often this can include technical support options or a phone number to the appropriate Microsoft team. |
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
if __name__ == '__main__': | |
#fibonnacci sequence in a lazy list. | |
@lazylist | |
def fibgen(lst): | |
yield 0 | |
yield 1 | |
for a, b in itertools.izip(lst, lst[1:]): | |
yield a + b | |
fibs = fibgen() #now fibs can be indexed or iterated over as if it were |
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
# 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 |
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
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 |
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
============================================================================== | |
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: |
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
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' ); |
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 | |
$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()) |
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 | |
$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]; | |
} |
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
if ((strpos($_SERVER['PHP_SELF'], 'wp-login.php') === false) && (strpos($_SERVER['PHP_SELF'], 'wp-register.php') === false)) { | |
auth_redirect(); | |
} |
OlderNewer