This file contains 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 | |
# -*- coding:utf-8 -*- | |
def display_towers(towers): | |
for i in range(3): | |
tower_string = ', '.join(['{0:2d}'.format(num) for num in towers[i]]) | |
print 'tower {0} | {1}'.format(i, tower_string) | |
This file contains 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 | |
# -*- coding:utf-8 -*- | |
def display_towers(towers): | |
for i in range(3): | |
tower_string = ', '.join(['{0:2d}'.format(num) for num in towers[i]]) | |
print 'tower {0} | {1}'.format(i, tower_string) | |
This file contains 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 | |
# -*- coding:utf-8 -*- | |
import binascii | |
if __name__ == '__main__' : | |
s = 'e3808ce3828ce3819fe3819de381aee5a0b4e68' + \ | |
'980e381afe38081e381bee3828be381a7e5a4a9' + \ |
This file contains 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 | |
# -*- coding:utf-8 -*- | |
import math | |
from PIL import Image | |
class Point : | |
def __init__ (self, x, y) : |
This file contains 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>webgpu-test</title> | |
</head> | |
<body> | |
<canvas id="canvas"></canvas> | |
<script> |
OlderNewer