Examples:
Ruby:
variable = 5
if variable > 4 then
puts variable.to_s + " is over 4"
puts "It's exactly five" if variable == 5
elsif variable == 4 then| gets.to_i # I don't care about the number :D | |
| gets # Friendships: | |
| direct_friends = {} | |
| indirect_friends = {} | |
| until /Queries/ =~ (data = gets) do # Until it reads the line Queries: | |
| names = data.split # Split on space | |
| # Create entries in the friend dictionaries if they don't exist |
Examples:
Ruby:
variable = 5
if variable > 4 then
puts variable.to_s + " is over 4"
puts "It's exactly five" if variable == 5
elsif variable == 4 then| Current Server: | |
| IP: 88.206.179.92 | |
| Port: 4567 | |
| Message: | |
| Header - 5 bytes, network order: | |
| Flags - 1 byte: | |
| SYN - 1 | |
| ACK - 2 |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import re | |
| import sys | |
| import urllib2 | |
| from subprocess import call | |
| from platform import machine |
| # - Find MyGUI includes and library | |
| # | |
| # This module defines | |
| # MYGUI_INCLUDE_DIRS | |
| # MYGUI_LIBRARIES, the libraries to link against to use MYGUI. | |
| # MYGUI_LIB_DIR, the location of the libraries | |
| # MYGUI_FOUND, If false, do not try to use MYGUI | |
| # | |
| # Copyright © 2007, Matt Williams | |
| # |