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
print("Hello, World!") |
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
/* ex1.cpp | |
* Author: Kye Russell | |
* Date: 15/08/2011 | |
* | |
* - Read in temperatures for every day in Jan (31). Provide a prompt with a runnin | |
* day total. | |
* - Print the averge of all temperatures: | |
* - >30 degrees. | |
* - 20-30 degrees. | |
* - <20 degrees. |
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
/* max.cpp | |
* Author: Kye Russell | |
* Date: 25/07/2011 | |
* | |
* Take two numbers and return the maximum of the two. | |
*/ | |
#include <iostream> | |
using namespace std; |
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
derp = raw_input() | |
if derp == 'a': | |
pass | |
elif derp == 'b': | |
pass | |
elif derp == 'c': | |
pass | |
else: | |
print "Invalid Choice" |
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 audio | |
fh = read('wub.wav') | |
ao = audio.AudioPlayer() | |
while True: | |
ao.play_stream(read(fh), audio.format.waveform) |
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
from twitter import user | |
UncleMark = twitter.user('Markedw', 'Mark Edwards') # instnatise new Twitter.User object. | |
tweet_list = UncleMark.stream() # Write tweet list to variable | |
for tweet in tweet_list: # cycle through tweet list | |
if tweet.location == 'Bunbury': # if tweet is in bunbury | |
if 'football' not in tweet.text: # if tweet doesn't contain 'football' str. | |
tweet.subject = "Bogans" # tweet subject is 'bogans'. | |
else: # tweet contains 'football'. |
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
from twitter import user, tweet | |
Kye = twitter.userbase.new("KyeRussell", "Kye Russell") | |
while True: | |
if Kye.is_tweeting = True: | |
Kye.tweeting_about = 'Apple' |
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
def prompt(message, password=False): | |
""" | |
Prompt the user for information. | |
message - what you're prompting the user for. | |
password - whether you want a password (invokes getpass instead of vanilla raw_input()). | |
returns the text returned by the user. | |
""" | |
# We don't want a password. |
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
def help(): | |
print("HELP!!!") | |
def account_info(): | |
print("account infoz:!!!") |
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
<title>Laugh</title><?php | |
$file = "output.txt"; | |
$number = "a"; | |
$number2 = "z"; | |
$yes = array('file', 'number', 'number2'); | |
$file = fopen('/output.txt', 'w', 'a'); | |
fwrite($file, $yes); |