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
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
/* 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
/* 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
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
import urllib2 | |
import json | |
class FBParser(object): | |
"""Receive Facebook Open Graph API calls and return an object containing | |
the results""" | |
def call(self, call, api="https://graph.facebook.com/"): | |
"""Process Facebook API calls.""" | |
# Grab the content. |
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
/* - Battle Ship - */ | |
/* - By Simplicity - */ | |
#include <stdio.h> | |
//#include <conio.h> | |
#include <stdlib.h> | |
void checkShips(); | |
void quitGame(); | |
void targeting(); |
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 | |
/* Let's say we have this function, it just adds one to a | |
* number and returns the resulting value. | |
* | |
* It takes in a paramater, which we call $number. | |
* | |
* $number is a variable which only exists within the function, when we try | |
* to access $number from outside the function, it simply doesn't exist. | |
* $number simply refers to whatever we've passed to addOneToNumber. We use |
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
set = [1, 6, 2, 1, 21, 8, 34, 9, 9.1, 1, 12, 901, 0.31, -3] | |
searchable_set = len(set) - 1; | |
while searchable_set >= 0: | |
count = 0 | |
while count <= searchable_set - 1: | |
if set[count] > set[count + 1]: | |
old = set[count + 1] | |
set[count + 1] = set[count] |
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
# Basics | |
Port 22 | |
Protocol 2 | |
# Keys | |
HostKey /etc/ssh/ssh_host_rsa_key | |
HostKey /etc/ssh/ssh_host_dsa_key | |
HostKey /etc/ssh/ssh_host_ecdsa_key | |
AuthorizedKeysFile %h/.ssh/authorized_keys |