Skip to content

Instantly share code, notes, and snippets.

View AndyMoreland's full-sized avatar

Andrew Moreland AndyMoreland

View GitHub Profile
asdads
*.jpg
log/*.log
public/images/tiny_mce/*
public/tiny_mce/*
### In main model
# for each Beer object, there are some number 0-50 individual review objects, listed
# in the Tastes model
# For my "beer list" in my view, i need to search the child reviews, looking for particular
# phrases and return the results
#
# Any suggestions?
###
class Beer < ActiveRecord::Base
genyes andrew$ /usr/local/git/libexec/git-core/git-svn fetch
Index mismatch: f46a829192b1c86de34454d56ab6a716d792f4a8 != 4e4143f8b9d975c574e0cfb387284422eb643a94
rereading e2e71bd248a159ec92d7ad9dcf42152c1abcd488
M trunk/app/helpers/report_helper.rb
D trunk/app/controllers/application.rb
A trunk/app/controllers/application_controller.rb
M trunk/config/boot.rb
M trunk/config/environment.rb
D trunk/vendor/plugins/hoptoad_notifier/.gitignore
D trunk/vendor/plugins/hoptoad_notifier/INSTALL
/usr/local/git/libexec/git-core/git-svn clone file:///Users/andrewmoreland3/test/test/trunk test_git_checkout
Initialized empty Git repository in /Users/andrewmoreland3/git_test/test_git_checkout/.git/
Couldn't open a repository: Unable to open an ra_local session to URL: Unable to open repository 'file:///Users/andrewmoreland3/test/test/trunk': Expected FS format '2'; found format '4' at /usr/local/git/libexec/git-core/git-svn line 1400
quicksort :: (Ord a) => [a] -> [a]
quicksort [] = []
quicksort (x:xs) =
let smallerSorted = quicksort [a | a <- xs, a <= x]
biggerSorted = quicksort [a | a <- xs, a > x]
in smallerSorted ++ [x] ++ biggerSorted
squareCheck :: (RealFloat a) => [[a]] -> Bool
squareCheck matrix
| height == num_with_right_width = True
| otherwise = False
where height = length matrix
num_with_right_width = length [ row | row <- matrix, length row == height ]
NoMethodError in Blog postsController#index
undefined method `devise' for User:Class
(defun run-buffer-with-ruby ()
(interactive)
(mark-whole-buffer)
(run-region-with-ruby)
(pop-mark)
)
(defun run-region-with-ruby (&optional b e)
(interactive "r")
;;; find-file-in-project.el --- Find files in a project quickly.
;; Copyright (C) 2006, 2007, 2008, 2009 Phil Hagelberg, Doug Alcorn, and Will Farrington
;; Author: Phil Hagelberg, Doug Alcorn, and Will Farrington
;; URL: http://www.emacswiki.org/cgi-bin/wiki/FindFileInProject
;; Git: git://github.com/wfarr/find-file-in-project.git
;; Version: 2.1
;; Created: 2008-03-18
;; Keywords: project, convenience