My Recent Pastes (40 and counting)

Pastes by Mislav (40 and counting)

Pages: 1 3

Below are the 10 most recent pasties by Mislav.

September 27, 2007
11:05AM EDT
by Mislav

(function() {
  var element, nameTest;
  try {
    nameTest = document.createElement('<div name="Prototype_test">');
    nameTest = nameTest.tagName.toLowerCase() == 'div' && nameTest.name == 'Prototype_test';

September 26, 2007
10:20AM EDT
by Mislav

#!/usr/bin/ruby
# my ~/.irbrc
require 'irb/completion'
require 'rubygems'
require 'map_by_method'

September 26, 2007
10:08AM EDT
by Mislav

module Enumerable
  def injecting(s)
    inject(s) do |k, i|
      yield k, i
      k

September 17, 2007
1:06PM EDT
by Mislav

/*
 Sprinkle Javascript Library
 http://www.sprinklejs.com/
 Copyright 2007 by Jon Davis <jon@jondavis.net>
 version 1.2, last updated 9/13/2007

September 16, 2007
8:56AM EDT
by Mislav

class Topic < ActiveRecord::Base
  def self.find_new
    find :all, :conditions => ['created_at > ?', 1.week.ago]
  end
end

September 15, 2007
6:38AM EDT
by Mislav

/**
 * Behaviour v1.1 by Ben Nolan, June 2005
 * rewritten for Prototype framework 1.6.0
 * 
 */   

September 09, 2007
5:42AM EDT
by Mislav

Rails::Initializer.run do |config|
  # other stuff ...
  
  config.after_initialize do
    if config.frameworks.include?(:action_mailer) and RAILS_ENV != 'test'

September 08, 2007
7:48PM EDT
by Mislav

## The rewrite of TableKit.Editable module for Prototype 1.6.0
// based on version 1.2.1 (2007-03-11)
// http://www.millstream.com.au/view/code/tablekit/
// (original code below)

September 03, 2007
5:34PM EDT
by Mislav

## Based on map_by_method 0.7.0
module MapByMethod
  MAP_BY_METHOD_FORMAT = /^(map|collect|select|each|reject)(?:_by)?_(\w+[?!]?)$/
  
  module InstanceMethods

August 27, 2007
11:09AM EDT
by Mislav

class TestController < ApplicationController
  def index
    @methods = %w{GET POST HEAD PUT DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK VERSION-CONTROL REPORT CHECKOUT CHECKIN UNCHECKOUT MKWORKSPACE UPDATE LABEL MERGE BASELINE-CONTROL MKACTIVITY ORDERPATCH ACL}
  end

Previous page