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
| # Let it Go - Pi Version | |
| use_bpm 34 | |
| use_synth :pretty_bell | |
| quaver = 0.125 #Eight note | |
| crotchet = 0.25 #Quarter note | |
| minim = 0.5 #Half note | |
| semibreve = 1 #Whole note | |
| in_thread(name: :rh) {rightHand} |
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
| # | |
| # Verify captcha | |
| $post_data = http_build_query( | |
| array( | |
| 'secret' => CAPTCHA_SECRET, | |
| 'response' => $_POST['g-recaptcha-response'], | |
| 'remoteip' => $_SERVER['REMOTE_ADDR'] | |
| ) | |
| ); | |
| $opts = array('http' => |
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/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32 | |
| global start | |
| section .text | |
| start: | |
| push dword msg.len | |
| push dword msg | |
| push dword 1 | |
| mov eax, 4 |
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
| # Mini-project #8 - "RiceRocks" (Asteroids) | |
| # | |
| # 'Introduction to Interactive Programming in Python' Course | |
| # RICE University - coursera.org | |
| # by Joe Warren, John Greiner, Stephen Wong, Scott Rixner | |
| import simplegui | |
| import math | |
| import random |
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
| # Mini-project # 7 - Spaceship | |
| # | |
| # 'Introduction to Interactive Programming in Python' Course | |
| # RICE University - coursera.org | |
| # by Joe Warren, John Greiner, Stephen Wong, Scott Rixner | |
| import simplegui | |
| import math | |
| import random |
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
| # Mini-project #6 - Blackjack | |
| # | |
| # 'Introduction to Interactive Programming in Python' Course | |
| # RICE University - coursera.org | |
| # by Joe Warren, John Greiner, Stephen Wong, Scott Rixner | |
| import simplegui | |
| import random | |
| # load background sprite |
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
| # Mini-project #5 - implementation of card game - "Memory" | |
| # | |
| # 'Introduction to Interactive Programming in Python' Course | |
| # RICE University - coursera.org | |
| # by Joe Warren, John Greiner, Stephen Wong, Scott Rixner | |
| import simplegui | |
| import random |
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
| # Mini-project #4 - "Pong" | |
| # | |
| # 'Introduction to Interactive Programming in Python' Course | |
| # RICE University - coursera.org | |
| # by Joe Warren, John Greiner, Stephen Wong, Scott Rixner | |
| import simplegui | |
| import random | |
| import math |
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
| # Mini-project #3 - "Stopwatch: The Game" | |
| # | |
| # 'Introduction to Interactive Programming in Python' Course | |
| # RICE University - coursera.org | |
| # by Joe Warren, John Greiner, Stephen Wong, Scott Rixner | |
| import simplegui | |
| # define global variables |
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
| # Mini-project #2 - "Guess the number" | |
| # | |
| # 'Introduction to Interactive Programming in Python' Course | |
| # RICE University - coursera.org | |
| # by Joe Warren, John Greiner, Stephen Wong, Scott Rixner | |
| import simplegui | |
| import random | |
| # initialize global variables used in your code |