I have a problem that pretty much boils down to this:
a = [1, 2, 3]
b = [1.1, 2.2, 3.3]
# BEGIN GROSS SOLUTION: avert your eyes!
results = [ ]
a.each do |i|
b.each do |j|
I have a problem that pretty much boils down to this:
a = [1, 2, 3]
b = [1.1, 2.2, 3.3]
# BEGIN GROSS SOLUTION: avert your eyes!
results = [ ]
a.each do |i|
b.each do |j|
require 'uri' | |
require 'digest/md5' | |
caOrderValue = '0.00'; # orem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sollicitudin, mi ac lobortis feugiat, ligula augue eleifend libero, vitae suscipit sem nisi ac augue | |
caOrderReference = URI::escape('blafoo'); | |
caEventID = 'somenumber'; # orem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sollicitudin, mi ac lobortis feugiat, ligula augue eleifend libero, vitae suscipit sem nisi ac augue | |
caComment = ''; # lorem ipsum | |
caMultiple = '1'; | |
caItems = ''; # (Optional) orem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sollicitudin, mi ac lobortis feugiat, ligula augue eleifend libero, vitae suscipit sem nisi ac augue. | |
# Aenean hendrerit, neque at imperdiet auctor, diam eros interdum lorem, eu suscipit augue risus id neque. |
require 'digest/md5' | |
class Hash | |
def to_query | |
require 'uri' | |
self.collect{ |k,v| k.to_s.downcase + '=' + URI::escape(v)}.join('&') | |
end | |
end | |
caPin = "1234" | |
caSubDomain = "track" | |
query = { |
import XMonad | |
import Data.Monoid | |
import System.Exit | |
import XMonad.Hooks.SetWMName | |
import qualified XMonad.StackSet as W | |
import qualified Data.Map as M | |
myTerminal = "terminator" | |
myFocusFollowsMouse :: Bool |
%fieldset.account_info | |
- ["First Name","Last Name","Email","Choose Password"].each do |n| | |
%dl.half | |
%dt | |
%label{:class => cycle("required", "", "required", "required")}=n | |
%dd | |
%input(type="text") |
# Ruby 1.8 | |
m { } | |
arity: -1 | |
proc call arg check: no | |
wraps values: n/a | |
m { || } | |
arity: 0 | |
proc call arg check: yes, 0 |
# rackup app.ru | |
require "./invisible" | |
app = Invisible.new do | |
get "/" do | |
render do | |
h1 "Why?" | |
p "Because." | |
end |
require 'thread' | |
require 'json' | |
require 'net/http' | |
require 'uri' | |
require 'betabrite' | |
require 'psych' | |
require 'usb' | |
class StreamClient | |
def initialize user, pass |
def maybe_a_sandwich | |
nil | |
end | |
# Methods that might return nil are annoying. We want to write a nice | |
# confident chain: | |
result = nil | |
result = maybe_a_sandwich.add_horseradish.get_into_my_belly! rescue $! | |
result # => #<NoMethodError: undefined method `add_horseradish' for nil:NilClass> |
From: Matthew Greenburg <mgreenburg@astreya.com> | |
CC: Carl Narcisse <cnarcisse@astreya.com> | |
Blake, | |
My name is Matt Greenburg with Astreya Partners, an IT staffing company in Santa Clara. We bring on full time employees of Astreya to work on-site at our clients' locations. I came across your resume and was wondering if you were entertaining new career opportunities at this time. I think you would be a great fit for a position we have open as a Web Application Developer, Ruby on Rails.This position is located in Cupertino, CA at a large very well known company. Think big! | |
Web Application Developer, Ruby on Rails | |
Successful team members must be able to document, design, develop, validate and maintain complete solutions to specific business needs with minimal supervisory input in a dynamic, result driven environment. These contributors need a wide variety and depth of web-related (including associated back end) technical skills and are well organized, self-motivated people with excellent communication skills |