Skip to content

Instantly share code, notes, and snippets.

'''
Tutorial2014_003_敲磚塊.py
這支程式實現了我童年時期,最愛在電動玩具店玩的遊戲,
敲磚塊,
音效採用舌頭點出來的聲音(wav),一高一低,
rySound01.wav
rySound02.wav
還有我最喜歡的「卡農」曲之8個音符(midi)。
{
"metadata": {
"name": "ryDSP001-Copy0"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@renyuanL
renyuanL / ry敲磚塊
Last active August 29, 2015 13:56
Tutorial2014_003_敲磚塊.py 這支程式實現了我童年時期,最愛在電動玩具店玩的遊戲, 敲磚塊, 音效採用舌頭點出來的聲音(wav),一高一低, rySound01.wav rySound02.wav 還有我最喜歡的「卡農」曲之8個音符(midi)。 2014/02/08
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@renyuanL
renyuanL / ryDSP003_即時語音頻譜.py
Created February 23, 2014 15:22
a real-time audio spectrogram analyzer with application to sound-control games
#
# ryDSP003_即時語音頻譜.py
#
# 即時 fft 2 維 聲譜,終於完成。
# 2014/02/23
#
#
#
#
@renyuanL
renyuanL / kh_ry_新井字棋2015.py
Last active August 29, 2015 13:56
井字棋, Tic-Tac-Toe
'''
kh_ry_新井字棋2015.py
第1版,亂走棋,電腦定輸贏。
第2版,電腦亂走棋,與人玩。
'''
import random
@renyuanL
renyuanL / turtle_tc.py
Last active August 29, 2015 14:01
用 Python 3,學中文程式設計。
'''
turtle_tc_01.py
開始超朝向自動翻譯方向前進。
先做出中英對照表。
2014/04/19
@renyuanL
renyuanL / ryByteDesign.py
Last active August 29, 2015 14:01
a set of traditional Chinese programs
'''
ryByteDesign.py
呂仁園 中文程式翻譯
2014/05/19
翻譯原則:
python keyword 不翻
單字母變數 不翻

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

#B0129063
#資工二
#陳立崇
# Squirrel Eat Squirrel (a 2D Katamari Damacy clone)
# By Al Sweigart al@inventwithpython.com
# http://inventwithpython.com/pygame
# Released under a "Simplified BSD" license
import random, sys, time, math, pygame