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
# This program makes people happy | |
# | |
# Author:: Christopher Woodall <chris.j.woodall at gmail.com> | |
# Copyright:: Copyright (c) July 2011 Christopher Woodall | |
# License:: MIT License | |
# A human being | |
class Person | |
attr_reader :name, :status, :description |
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
// | |
// blockTest.m | |
// blocksTest | |
// | |
// Created by Christopher Woodall on 6/14/11. | |
// Copyright 2011 Christopher Woodall. | |
// MIT License | |
// | |
#import <Foundation/Foundation.h> |
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
function watts = dBm2watts( dBm ) | |
watts = 10^-3*10.^(dBm/10); | |
endfunction | |
function [loss_min loss_max] = loss_per_meter( meters ) | |
loss_min = meters*.19; | |
loss_max = meters*.43; | |
endfunction | |
function [loss_min loss_max] = loss_per_bulkhead( bulkheads ) |
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
## This file is not meant to run, just portray what Blocks do | |
## RUBY Example | |
names = ['Chris', 'Joe', 'Jeff', 'Tom'] | |
names.each do |name| | |
puts name | |
end | |
# OUTPUT: | |
# Chris | |
# Joe |
NewerOlder