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
#!/usr/bin/env python | |
#Author: Pruthvi Raj ( [email protected] ) | |
#Date: 10-March-2016 | |
import re, copy, random | |
class TicTacToe: | |
def __init__(self): | |
self.magic_square = [8, 1, 6, 3, 5, 7, 4, 9, 2] |
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
#!/usr/bin/env python | |
#Author: Pruthvi Raj ( [email protected] ) | |
#Date: 10-March-2016 | |
import re, copy, random | |
class TicTacToe: | |
def __init__(self): | |
self.magic_square = [8, 1, 6, 3, 5, 7, 4, 9, 2] |
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 re,copy,random | |
class TicTacToe: | |
def __init__(self): | |
self.magic_square = [8,1,6,3,5,7,4,9,2] | |
self.player_marker = 'X' | |
self.computer_marker = 'O' | |
self.board = [' ']* 9 | |
self.board_design = "| %s | | %s | | %s |\n| %s | | %s | | %s |\n| %s | | %s | | %s |" | |
self.player_playing = "n" |
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 numbers | |
def getNumber(s): | |
try: | |
return int(s) | |
except ValueError: | |
return float(s) | |
flag = True | |
while flag: | |
try: | |
score = raw_input('Enter score: ') |
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 numbers | |
def getNumber(s): | |
try: | |
return int(s) | |
except ValueError: | |
return float(s) | |
flag = True | |
nums = [] | |
while flag: | |
try: |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Sample Breakout Game</title> | |
<style type="text/css" media="screen"> | |
* | |
{ | |
padding: 0; | |
margin: 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
from mutagen.mp3 import MP3 | |
import subprocess,math | |
filepath = 'H:/Music/temp/' | |
filename = 'notafraid.mp3' | |
a = MP3(filepath + filename) | |
parts = int(math.ceil(a.info.length / 60)) | |
for each in range(0,parts): | |
command = 'ffmpeg -ss {} -i {} -c copy -t {} {}{}'.format(each*60,filepath+filename,60,each,filename) | |
subprocess.call(command,shell=True) |
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
#include "stdafx.h" | |
#include<stdio.h> | |
#include<conio.h> | |
#define true 1 | |
#define false 0 | |
int available[10], allocation[10][10], max[10][10], need[10][10], work[10], finish[10], maxres[10], safe[10], req[10], m, n; | |
int find() | |
{ | |
int i, j; |
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
#include<stdio.h> | |
int mm, frs, p[15], fre1, fre2, fr, i = -1, fre; | |
int main() | |
{ | |
char ch; | |
void insert(); | |
void del(); | |
void display(); |