Skip to content

Instantly share code, notes, and snippets.

View jonathan's full-sized avatar

Jonathan Hicks jonathan

View GitHub Profile
#! /usr/bin/env ruby
x = "hello world"
i, j, k = x.split()
k.float
$(".connectedSortable").sortable({
connectWith: ".connectedSortable",
opacity: 0.7
});
$("ul.receiver").live("sortreceive sortremove", function(event, ui) {
var id = $(this).attr("id") + "-empty";
var listData = $(this).sortable("serialize");
if ( listData === "" ) {
source 'http://rubygems.org'
# gem 'rails', '3.0.0.beta3'
# Bundle edge Rails instead:
# Until rails beta 4 is out, edge rails is needed for the gems below
gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'pg'
total 64
drwxr-xr-x 13 root wheel 442 Dec 14 17:54 .
drwxr-xr-x 12 root wheel 408 Dec 14 17:54 ..
lrwxr-xr-x 1 root wheel 5 Dec 14 17:54 1.3 -> 1.3.1
drwxr-xr-x 3 root wheel 102 Jul 20 2009 1.3.1
lrwxr-xr-x 1 root wheel 10 Dec 14 17:54 1.4 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Dec 14 17:54 1.4.2 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Dec 14 17:54 1.5 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Dec 14 17:54 1.5.0 -> CurrentJDK
lrwxr-xr-x 1 root wheel 5 Dec 14 17:54 1.6 -> 1.6.0
source :gemcutter
gem 'rails', '~> 2.3.5', :require => nil
gem 'pg'
group :plugins do
gem 'devise', '1.0.5'
gem 'inherited_resources', :git => 'git://github.com/josevalim/inherited_resources.git', :branch => 'v1.0'
end
sea_data=# select * from wave_coverages where pixel = 1000 and scan = 'avg1';
id | circuit | x_intercept | strike_point | energy | pixel | scan
----+---------+-------------------+--------------+--------+-------+------
1 | t9t10 | 0.571738110113841 | 209.12 | high | 1000 | avg1
(1 row)
sea_data=# select * from wave_coverages where pixel = 1490 and scan = 'avg1';
id | circuit | x_intercept | strike_point | energy | pixel | scan
------+---------+-------------------+--------------+--------+-------+------
4729 | t9t10 | 0.832171126032023 | 209.12 | high | 1490 | avg1
Using the default profile...
undefined local variable or method `establish_connection' for ActiveRecord::Base:Class (NameError)
/bundler/gems/rails-master/activerecord/lib/active_record/base.rb:1145:in `method_missing'
/bundler/gems/rails-master/activerecord/lib/active_record/railtie.rb:50
/bundler/gems/rails-master/activesupport/lib/active_support/lazy_load_hooks.rb:21:in `instance_eval'
/bundler/gems/rails-master/activesupport/lib/active_support/lazy_load_hooks.rb:21:in `run_base_hooks'
/bundler/gems/rails-master/activesupport/lib/active_support/lazy_load_hooks.rb:21:in `each'
/bundler/gems/rails-master/activesupport/lib/active_support/lazy_load_hooks.rb:21:in `run_base_hooks'
/bundler/gems/rails-master/activerecord/lib/active_record/base.rb:2260
/bundler/gems/rails-master/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:2
superclass mismatch for class PostgreSQLAdapter (TypeError)
.bundle/ruby/1.8/bundler/gems/rails-master/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:189
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/dependencies.rb:209:in `require'
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/dependencies.rb:209:in `require'
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/dependencies.rb:197:in `load_dependency'
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/dependencies.rb:209:in `require'
.bundle/ruby/1.8/bundler/gems/rails-master/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:74:in `establish_connection'
.bundle/ruby/1.8/bundler/gems/rails-master/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:60:in `establish_connection'
.bundle/ruby/1.8/bundler/gems/rails-master/activerecord/lib/acti
source :gemcutter
gem 'rails', :git => 'git://github.com/rails/rails.git'
git 'git://github.com/rails/arel.git'
git 'git://github.com/rails/rack.git'
gem 'inherited_resources'
group :db do
gem 'pg'
end
#/usr/bin/env ruby
# encoding: utf-8
module Foo
def hello
puts 'hi'
end
end