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 | |
// init mailer | |
require('/usr/share/php/Mail.php'); | |
$factory =& Mail::factory('smtp', | |
array( | |
// SMTP auth info removed | |
) | |
); | |
$headers['From'] = 'Mark Ormesher <[email protected]>'; |
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
done = False | |
while (done != True): | |
their_move = raw_input("What is your move? [r|p|s|q] ") | |
if (their_move == "r"): | |
print "You choose rock, I choose paper" | |
elif (their_move == "p"): | |
print "You choose paper, I choose scissors" | |
elif (their_move == "s"): | |
print "You choose scissors, I choose rock" | |
elif (their_move == "q"): |
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
/** | |
* Produce a formatted SpannableString object from a given String | |
* input, with all lowercase characters converted to smallcap | |
* characters. Uses only standard A-Z characters, so works with | |
* any font. | |
* | |
* @param input The input string, e.g. "Small Caps" | |
* @return A formatted SpannableString, e.g. "Sᴍᴀʟʟ Cᴀᴘs" | |
*/ | |
public static SpannableString getSmallCapsString(String input) { |
NewerOlder