Skip to content

Instantly share code, notes, and snippets.

View kfitzpatrick's full-sized avatar

Kevin Fitzpatrick kfitzpatrick

  • Forj
  • Berkeley, CA, USA
  • 01:41 (UTC -07:00)
View GitHub Profile
Example 1:
function add(oneNumber, anotherNumber){
return (oneNumber + anotherNumber);
}
add(3,4);
-----------
[Software Craftsmanship]
http://manifesto.softwarecraftsmanship.org/
"Manifesto for Software Craftsmanship"
Then /^I should see a table where a row contains the cells? "([^\"]*)"$/ do |cells|
response.should have_tag('table') do |table|
table.should have_tag('tr') do |tr|
cells.split(/\s*,\s*/).each do |cell|
tr.should have_tag('td', :text => /#{cell}/)
end
end
end
Name MYPORTAL
Value em=nonbetauser&gt=NonBetaUser&zip=&ipr=1&guid=190619322027092200comcast.usr0jr&auto=0&cdvs=0
Host .comcast.net
Path /
Secure No
Expires At End Of Session
Name session@comcast.net
Value TFNUAQECAIBCSRLrXT-TYQ204bsPGhF6ubyxKwFhC6NoMDwygQx_6vQtieTG43iMnim6XHzRGLC1f-N6QCw3vmMBxxT61rhtql4ufKoFxtaIB-7x-v_jBTYwA2vV1pvE_Dam8Xk4Rt9BdGDNN7dUAfDxiR40cLP3UmZo95bQRAVKduUrzRvJBBAI_n7bJAoUCYrkS8zky4PbAAAAEA5rG78l-5gU5sUs9hcwTrE*
Host .comcast.net
We couldn’t find that file to show.
DIVWLM-52FSYJZ:hallpass comcast$ jruby -S rake db:migrate
(in /Users/comcast/Documents/workspace/hallpass)
no such file to load -- activerecord-jdbcsqlite3-adapter
/Users/comcast/dev/jruby-1.3.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/Users/comcast/dev/jruby-1.3.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/Users/comcast/dev/jruby-1.3.1/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/Users/comcast/dev/jruby-1.3.1/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/comcast/dev/jruby-1.3.1/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
/Users/comcast/dev/jruby-1.3.1/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/gem_dependency.rb:179:in `load'
/Users/comcast/dev/jruby-1.3.1/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:305:in `load_gems'
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<repositories>
<repository>
<id>flex-mojos-repository</id>
<url>http://svn.sonatype.org/flexmojos/repository</url>
<releases>
<enabled>true</enabled>
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
creationComplete="onCreationComplete()">
<!--can't use velocity, got:
java.io.InvalidClassException: org.apache.velocity.runtime.parser.node.ASTprocess; class invalid for deserialization-->
<mx:Script>
<![CDATA[
import flexunit.junit.JUnitTestRunner;
import flexunit.framework.TestSuite;
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<repositories>
<repository>
<id>flex-mojos-repository</id>
<url>http://svn.sonatype.org/flexmojos/repository/</url>
<releases>
<enabled>true</enabled>
// Fancast search ubiquity verb
if(typeof(KFDotNet) == 'undefined') {
KFDotNet = {};
}
jQuery.extend(KFDotNet, {
fancast_util: {
generate_query: function(searchText){
var location = "http://cimjoyent.ath.cx/~kfitzpat/fancastSearchProxy/searchProxy.php?q="+escape(searchText);
return location;