Skip to content

Instantly share code, notes, and snippets.

View jpemberthy's full-sized avatar

Juan Pemberthy jpemberthy

View GitHub Profile
<r:mailer:form name="contact" id="contact_form">
<ul>
<li id="name_item">
<label>Name</label><r:text name="name" size="30"/>
</li>
<li id="phone_item">
<label>Phone</label><r:text name="phone" size="30"/>
</li>
<li id="email_item">
<label>Email</label><r:text name="email" size="30"/>
StandardTags::TagError (undefined tag `archive'):
radiant (0.8.0) app/models/page_context.rb:28:in `tag_missing'
radiant (0.8.0) vendor/radius/lib/radius.rb:278:in `render_tag'
radiant (0.8.0) app/models/page_context.rb:18:in `render_tag'
radiant (0.8.0) vendor/radius/lib/radius.rb:270:in `render_tag'
radiant (0.8.0) app/models/page_context.rb:18:in `render_tag'
radiant (0.8.0) vendor/radius/lib/radius.rb:437:in `parse_end_tag'
radiant (0.8.0) vendor/radius/lib/radius.rb:363:in `call'
radiant (0.8.0) vendor/radius/lib/radius.rb:363:in `to_s'
radiant (0.8.0) vendor/radius/lib/radius.rb:402:in `parse'
jpemberthy@Balian-2 ~/Desktop/Ruby121 $time ruby-1.9 embalse_parser.rb 121-alfas.out
--> Building all matrices.
|--> Building X coords matrix.
|--> Building Y coords matrix.
|--> Building Batimetry Matrix.
|--> Builging water level matrix.
|--> Building Velocity Matrix U.
|--> Building Velocity Matrix V.
|--> Building ALFAS Matrix.
jpemberthy@Balian-2 ~/Desktop/Ruby121 $time ruby embalse_parser.rb 121-alfas.out
--> Building all matrices.
|--> Building X coords matrix.
|--> Building Y coords matrix.
|--> Building Batimetry Matrix.
|--> Builging water level matrix.
|--> Building Velocity Matrix U.
|--> Building Velocity Matrix V.
|--> Building ALFAS Matrix.
/*
* call-seq:
* str.split(pattern=$;, [limit]) => anArray
*
* Divides <i>str</i> into substrings based on a delimiter, returning an array
* of these substrings.
*
* If <i>pattern</i> is a <code>String</code>, then its contents are used as
* the delimiter when splitting <i>str</i>. If <i>pattern</i> is a single
* space, <i>str</i> is split on whitespace, with leading whitespace and runs
** VARIABLE c1 from map-const(1) ELEMENT XCOR(268,545) REAL *4
** NROW NCOL NPLANE
XXXX
268 545 1
0.000000e+000 3.460767e+006 3.460867e+006 3.460962e+006 3.461052e+006 3.461137e+006 3.461217e+006 3.461294e+006 3.461366e+006 3.461434e+006 3.461498e+006 3.461560e+006 3.461618e+006 3.461672e+006 3.461724e+006 3.461773e+006 3.461819e+006 3.461862e+006 3.461903e+006 3.461941e+006 3.461978e+006 3.462013e+006 3.462047e+006 3.462078e+006 3.462108e+006 3.462138e+006 3.462166e+006 3.462193e+006 3.462219e+006 3.462244e+006 3.462269e+006 3.462293e+006 3.462317e+006 3.462340e+006 3.462363e+006 3.462386e+006 3.462409e+006 3.462432e+006 3.462456e+006 3.462479e+006 3.462503e+006 3.462527e+006 3.462552e+006 3.462578e+006 3.462604e+006 3.462631e+006 3.462660e+006 3.462689e+006 3.462720e+006 3.462752e+006 3.462785e+006 3.462818e+006 3.462853e+006 3.462887e+006 3.462922e+006 3.462957e+006 3.462992e+006 3.463027e+006 3.463062e+006
require File.dirname(__FILE__) + '/../test_helper'
class EmployersControllerTest < ActionController::TestCase
fixtures :employers, :people
def setup
login_as(:quentin)
end
def test_get_edit
def test_existing_valid_add_company
assert_no_difference "Employer.count" do
post :add_company, :id => people(:denise_dad).id, :contact => { :company_name => companies(:wild_mountains).name }, :title => "Doctor"
end
assert @response.body.include?("Doctor at")
assert_response :success
end
def test_new_valid_add_employee
assert_difference "Employer.count", 1 do
desc "Load production data into development database"
task :fetch_remote_db, :roles => :db, :only => { :primary => true } do
require 'yaml'
pdb_file = capture "cat #{deploy_to}/current/config/database.yml"
pdb = YAML::load(pdb_file)
ddb = YAML::load_file('config/database.yml')
filename = "dump.#{Time.now.strftime '%Y-%m-%d_%H:%M:%S'}.sql"
php
<link href="<?php echo TEMPLATE_DIR; ?>/application.css" rel="stylesheet" type="text/css" media="screen" />
this part: <link href="<?php echo TEMPLATE_DIR; ?> just looks horrible!
rails
<%= stylesheet_link_tag 'application' %>