- Optimize for maintainability
- Build for reusability
- Make the web client awesome again
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var elems = $('#post p'); | |
$.each(elems, function(i,elem){ | |
var $elem = $(elem); | |
// bail if there's no match | |
if (remoticon.hasMatch($elem.text())) { | |
$elem.html(remoticon.render($elem.html())); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CommandUtils.makeBookmarkletCommand({ | |
name: "Ruler", | |
url: "javascript:void('http://centricle.com/tools/favelets/','v1.2','with%20code%20from%20fry@fcc');drg=false;d=document;db=d.body;d.ondblclick=kR;d.onkeypress=kR;rk=false;mC=prompt('Color:','red');mq=db.appendChild(d.createElement('div'));mqs=mq.style;mqs.position='absolute';mqs.border='dashed%201px%20red';mqs.fontSize='0px';ctr=db.appendChild(d.createElement('div'));ctrs=ctr.style;ctrs.position='absolute';ctrs.top='-300px';ctrs.left='-300px';ctrs.width='85px';ctrs.background='%23eee';ctrs.padding='5px';ctrs.border='solid%201px%20%23ccc';ctrs.font='10px%20verdana,sans-serif';ctrs.width='85px';ctrs.zIndex='99';ctr.innerHTML='%3Cb%3ECurrent:%3C/b%3E%3Cbr%3E%20x:%3Cspan%20id=%22cX%22%3E0%3C/span%3E%20y:%3Cspan%20id=%22cY%22%3E0%3C/span%3E%3Cbr%3E%3Cb%3EBegin:%3C/b%3E%3Cbr%3E%20x:%3Cspan%20id=%22bX%22%3E0%3C/span%3E%20y:%3Cspan%20id=%22bY%22%3E0%3C/span%3E%3Cbr%3E%3Cb%3EEnd:%3C/b%3E%3Cbr%3E%20x:%3Cspan%20id=%22eX%22%3E0%3C/span%3E%20y:%3Cspan%20id%20=%22eY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user_api = { | |
:id => @user_profile.id, | |
:name => { | |
:first => @user_profile.given_name, | |
:last => @user_profile.surname | |
}, | |
:email => @user_profile.email, | |
:userid => @user_profile.userid, | |
:title => @user_profile.title, | |
:organization => @user_profile.organization, |
- Forward from Rails to Servlet/JSP. See
demo_controller.rb
#index
andattributes.jsp
. - Include Rails response in JSP output. See
demo.jsp
. - Arbitrary rendering with servlet response from Rails. See
demo_controller
#not_found
. - Forwarding from servlets to Rails should work fine, but I haven't tried it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Extracted from http://github.com/madrobby/prototype_helpers/tree/master/defaultValueActsAsHint | |
// Accepts JQuery elem as input for hiding/unhiding related elements. | |
$.fn.defaultValueActsAsHint = function(elems){ | |
this.get(0)._default = this.attr('title'); | |
return $(this).focus(function(){ | |
if(this._default != this.value) return; | |
this.value = ''; | |
$(this).removeClass('quiet'); | |
elems.each(function(){$(this).show()}); | |
}).blur(function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM (SELECT raw_sql_.*, | |
ROWNUM raw_rnum_ | |
FROM (SELECT activities.* | |
FROM activities | |
JOIN groups_user_profiles other_groups_user_profiles | |
ON activities.user_profile_id = other_groups_user_profiles.user_profile_id | |
JOIN groups_user_profiles my_groups_user_profiles | |
ON other_groups_user_profiles.group_id = my_groups_user_profiles.group_id | |
AND my_groups_user_profiles.user_profile_id = 78197 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plist version="1.0"> | |
<dict> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>PATH</key> | |
<string>/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin</string> | |
</dict> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] file:/Users/richmanalang/.m2/repository/org/jruby/jruby-complete/1.1.6/jruby-complete-1.1.6.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/example_methods.rb:81:in `instance_eval' | |
[INFO] file:/Users/richmanalang/.m2/repository/org/jruby/jruby-complete/1.1.6/jruby-complete-1.1.6.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/example_methods.rb:81:in `eval_block' | |
[INFO] file:/Users/richmanalang/.m2/repository/org/jruby/jruby-complete/1.1.6/jruby-complete-1.1.6.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/example_methods.rb:15:in `execute' | |
[INFO] file:/Users/richmanalang/.m2/repository/org/jruby/jruby-complete/1.1.6/jruby-complete-1.1.6.jar!/timeout.rb:48:in `timeout' | |
[INFO] file:/Users/richmanalang/.m2/repository/org/jruby/jruby-complete/1.1.6/jruby-complete-1.1.6.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/example_methods.rb:12:in `execute' | |
[INFO] file:/Users/richmanalang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/dev/jruby-rack(master)] jruby -S rake | |
(in /Users/richmanalang/dev/jruby-rack) | |
src/main/java/org/jruby/rack/DefaultRackApplication.java:10: cannot find symbol | |
symbol : class Ruby | |
location: package org.jruby | |
import org.jruby.Ruby; | |
^ | |
src/main/java/org/jruby/rack/DefaultRackApplication.java:11: cannot find symbol | |
symbol : class RubyIO | |
location: package org.jruby |
OlderNewer