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
| 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 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
| #!/usr/bin/env python | |
| #Author: Pruthvi Raj ( pruthvi.n.v@gmail.com ) | |
| #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 ( pruthvi.n.v@gmail.com ) | |
| #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 ( pruthvi.n.v@gmail.com ) | |
| #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
| //ATOM CONFIG |
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
| fd |
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/python | |
| #Depends on: https://github.com/defunkt/gist and git | |
| #install them first | |
| #then run python clone-all-gists.py | |
| import subprocess,re | |
| gists = subprocess.check_output(['gist','-l']) | |
| gists = re.findall('^.*com\/(.*?)(?:\s|$)',gists,re.M) | |
| for gist in gists: | |
| url = 'https://gist.github.com/%s.git' % gist |
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 java.io.*; | |
| import java.util.*; | |
| import java.text.*; | |
| import java.math.*; | |
| import java.util.regex.*; | |
| public class temp | |
| { | |
| public static void main(String[] args) | |
| { |