Skip to content

Instantly share code, notes, and snippets.

View jdlich's full-sized avatar

Jacob Lichner jdlich

View GitHub Profile
mvn clean install -Dmaven.test.skip=true sakai:deploy -Dmaven.tomcat.home=/Users/Jacob/Sites/sakai.wfu.edu/apache-tomcat-5.5.20
function m2 {
export M2_HOME="/usr/local/bin/apache-maven-2.2.1"
export PATH=$M2_HOME/bin:$PATH
}
ArgumentError: comparison of Fixnum with nil failed
=== COMPILATION STACK:
(empty)
=== BACKTRACE:
0. lib/helpers/resources.rb:45:in `sort_by'
1. lib/helpers/resources.rb:45:in `listings'
@jdlich
jdlich / gist:1114947
Created July 29, 2011 23:15
Recursive globbing with Bash 4
# Install Bash 4 using homebrew
brew install bash
# Or build it from source...
curl -O http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz
tar xzf bash-4.2.tar.gz
cd bash-4.2
./configure --prefix=/usr/local/bin && make && sudo make install
# Add the new shell to the list of legit shells
TypeError: can't convert Hash into String
from /Users/Jacob/.rvm/gems/ruby-1.9.2-p290/gems/ruby-mp3info-0.6.15/lib/mp3info.rb:471:in `+'
from /Users/Jacob/.rvm/gems/ruby-1.9.2-p290/gems/ruby-mp3info-0.6.15/lib/mp3info.rb:471:in `to_s'
from (irb):2:in `puts'
from (irb):2:in `puts'
from (irb):2:in `block in irb_binding'
from /Users/Jacob/.rvm/gems/ruby-1.9.2-p290/gems/ruby-mp3info-0.6.15/lib/mp3info.rb:305:in `open'
from (irb):2
from /Users/Jacob/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `<main>'
if ((poweredByUrl != null) && (poweredByImage != null)
&& (poweredByAltText != null)
&& (poweredByUrl.length == poweredByImage.length)
&& (poweredByUrl.length == poweredByAltText.length))
{
for (int i = 0; i < poweredByUrl.length; i++)
{
out.println(" <span class=\"skip\">"
+ Web.escapeHtml(rb.getString("site_newwindow"))
+ "</span> <a href=\"" + poweredByUrl[i]
Number.prototype.times = function(value) {
for (var i = 0; i < this; i++) {
value();
}
}
Array.prototype.sum = function() {
var sum = 0;
for ( var i = 0; i < this.length; i++ ) {
sum += this[i];
}
return sum;
}
function buildNotifications(data) {
var html = ' \
{% _.each(categories, function(category) { %} \
<div class="notification-trigger"> \
<h3>{{ category.name }}</h3> \
</div> \
\
<div class="notification-content"> \
{% _.each(category.notifications, function(notification) { %} \
<ul class="notifications"> \
{
"categories": [
{
"name": "Today",
"notifications": [
{"title": "Take Fluffy for a walk.", "detail": "Walking Fluffy..."},
{"title": "Mow the lawn.", "detail": "Mowing the lawn..."},
{"title": "Get a haircut.", "detail": "Getting a haircut..."},
{"title": "Do your homework.", "detail": "Doing homework..."},
{"title": "Mow the lawn.", "detail": "Mowing the lawn..."},