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/python3.2 | |
| def computepay(hours, rate): | |
| if hours < 1: raise ValueError("No hours") | |
| if rate < 1.0: raise ValueError("No rate") | |
| if hours > 40: | |
| return (40 * rate) + ((hours - 40) * rate * 1.5) | |
| else: | |
| return hours * rate |
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/python3.2 | |
| #Exercise 2.2 | |
| name = input("Write your name: ") | |
| print("Hello", name, "!") |
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
| /* | |
| ** showip.c -- show IP addresses for a host given on the command line | |
| */ | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <netdb.h> | |
| #include <arpa/inet.h> |
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
| #ifdef GL_ES | |
| precision highp float; | |
| #endif | |
| uniform float time; | |
| uniform vec2 resolution; | |
| uniform vec4 mouse; | |
| uniform sampler2D tex0; | |
| uniform sampler2D tex1; |
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
| <?xml version="1.0" encoding="utf-8" ?> | |
| <XnaContent> | |
| <Asset Type="Breakout.Level"> | |
| <LevelIndex>1</LevelIndex> | |
| <Rows>13</Rows> | |
| <Columns>13</Columns> | |
| <NextLevelAsset>Content/Levels/Level02</NextLevelAsset> | |
| <StartLevel>true</StartLevel> | |
| <MaxHits>9</MaxHits> | |
| <Blocks> |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading; | |
| namespace WhyFight | |
| { | |
| class Program | |
| { |
NewerOlder