My Recent Pastes (14 and counting)
All Pasties (over 14 and counting)
Below are summaries of the 14 most recent pasties by Justin Perkins.
May 05, 2008
6:55PM EDT
by Justin Perkins
View more (23 lines)
1 2 3 4 5 |
var SomeClass = Class.create({ initialize: function( index ){ this.index = index; }, someCondition: function(){ return this.index % 2; } }); |
January 27, 2008
9:57PM EDT
by Justin Perkins
View more (14 lines)
1 2 3 4 5 |
var ExternalScript = { include: function( src ){ this._remove(src); var s = document.createNode('script'); s.setAttribute('type', 'text/javascript'); |
January 21, 2008
6:19PM EDT
by Justin Perkins
View more (12 lines)
1 2 3 4 5 |
Ajax.PeriodicalUpdater.prototype.start = Ajax.PeriodicalUpdater.prototype.start.wrap( function(){ var args = $A(arguments), proceed = args.shift(); if (this.options.delayedStart) proceed.bind(this).delay(this.frequency); else proceed.apply(this, args); }); |
January 14, 2008
6:53PM EDT
by Justin Perkins
View more (22 lines)
1 2 3 4 5 |
Ajax.InPlaceEditor.Listeners = { click: 'enterEditMode', mouseover: 'enterHover', mouseout: 'leaveHover' }; |
January 14, 2008
6:17PM EDT
by Justin Perkins
View more (23 lines)
1 2 3 4 5 |
Ajax.InPlaceEditor.Listeners = { click: 'enterEditMode', mouseover: 'enterHover', mouseout: 'leaveHover' }; |
January 07, 2008
12:24PM EDT
by Justin Perkins
View more (10 lines)
1 2 3 4 5 |
Ajax.InPlaceEditor.addMethods({ createForm: function($super){ console.log($super); // $super is not defined $super(); // exception, $super is not defined }, |
January 07, 2008
12:22PM EDT
by Justin Perkins
View more (32 lines)
1 2 3 4 5 |
var Foo = Class.create({ initialize: function(){ console.log('initializing new Foo'); }, someMethod: function(){ |
July 10, 2007
1:31PM EDT
by Justin Perkins
View more (25 lines)
1 2 3 4 5 |
def show
@page_title = "#{@company.name} - IT Reports"
@report = Report.find_by_id_and_public(params[:id], true)
return redirect_to(:action => "index") if @report.nil?
|
June 12, 2007
5:29PM EDT
by Justin Perkins
View more (29 lines)
1 2 3 4 5 |
require 'test/unit' require 'rubygems' require 'mocha' class TestFoo < Test::Unit::TestCase |
April 13, 2007
1:30PM EDT
by Justin Perkins
View more (37 lines)
1 2 3 4 5 |
var MrJustin = Class.create();
MrJustin.prototype = {
initialize: function(options){
this.options = Object.extend({
}, options || {});
|
October 28, 2006
5:40PM EDT
by Justin Perkins
View more (45 lines)
1 2 3 4 5 |
NameError (undefined local variable or method `fetch_scan_users' for #<#<Class:0x3302010>:0x3301fe8>):
/app/controllers/settings_controller.rb:54:in `__bind_1162071021_360174'
/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/object/extending.rb:44:in `instance_exec'
/vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb:378:in `initialize'
/vendor/rails/actionpack/lib/action_controller/base.rb:687:in `render_with_no_layout'
|
October 26, 2006
2:28PM EDT
by Justin Perkins
View more (9 lines)
1 2 3 4 5 |
def get_stuff
a = [['justin', 'wmi'], ['perkins', 'ssh'], ['apple', 'wmi'], ['garage', 'ssh']]
a.select({ |u| u[1] == 'wmi'}), a.select({ |u| u[1] == 'ssh'})
end
|
September 28, 2006
11:46AM EDT
by Justin Perkins
View more (7 lines)
1 2 3 4 5 |
<p class="tags no_label"><strong>Tags:</strong>
<span id="tag_text"><%= h(@tags.sub(",",", ")) %></span></p>
<% end -%>
<p class="btn"><%= image_submit_tag 'forms/buttons/submit.gif', :class => 'image_button' %>
<%= image_submit_tag 'forms/buttons/cancel.gif', :class => 'image_button', :onclick => "#{fade_and_remove('q_and_a_form', 'q_and_a_form_button')}; return false" %>
|
September 28, 2006
11:40AM EDT
by Justin Perkins
View more (13 lines)
1 2 3 4 5 |
end -%>
</ol>
<h3>Submit a New Question:</h3>
</div>
<% end -%>
|
Pastie