Skip to content

Instantly share code, notes, and snippets.

View cwoodall's full-sized avatar
✈️

Christopher Woodall cwoodall

✈️
View GitHub Profile
@cwoodall
cwoodall / give_hugs.rb
Created July 4, 2011 05:24
Give Hugs To People With Ruby
# 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
@cwoodall
cwoodall / blockTest.m
Created June 14, 2011 19:21
Just playing around with Objective-C Blocks... I like them and all things functional...
//
// blockTest.m
// blocksTest
//
// Created by Christopher Woodall on 6/14/11.
// Copyright 2011 Christopher Woodall.
// MIT License
//
#import <Foundation/Foundation.h>
@cwoodall
cwoodall / gist:847651
Created February 28, 2011 17:18
loss_calculations.m
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 )
@cwoodall
cwoodall / block_example.rb
Created January 2, 2011 06:14
Trying to explain blocks
## 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