My Recent Pastes (26 and counting)
Pastes by Dave Grijalva (26 and counting)
Pages: 1 2
Below are the 15 most recent pasties by Dave Grijalva.
May 07, 2008
5:24AM EDT
by Dave Grijalva
View more (21 lines)
def sifr options parameters = { 'sSelector' => options[:selector], 'sFlashSrc' => "/flash/#{options[:font]}.swf", 'sColor' => '#' + (options[:color] || '000'),
October 26, 2007
4:07PM EDT
by Dave Grijalva
View more (36 lines)
#!/usr/bin/env ruby # # Yaml to Rspec # Created by Gregg Pollack (RailsEnvy.com) #
October 24, 2007
7:22PM EDT
by Dave Grijalva
View more (25 lines)
require 'erb'
template = %q{
BEGIN:VCALENDAR
VERSION:2.0
October 24, 2007
3:14PM EDT
by Dave Grijalva
View more (32 lines)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
September 14, 2007
6:48PM EDT
by Dave Grijalva
View more (14 lines)
if(_verticalPatternImage==nil){
UInt8 bytes[]={
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x02, 0x08, 0x02, 0x00, 0x00, 0x00, 0xee, 0x03, 0xda,
0x87, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00, 0x00, 0x0b,
August 16, 2007
7:16PM EDT
by Dave Grijalva
View more (7 lines)
<div style="width: 200px; height: 200px; position: absolute; top: 30px; left: 30px;">
<div style="overflow: auto; height: 100%; width: 100%;">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
July 30, 2007
4:37PM EDT
by Dave Grijalva
View more (33 lines)
namespace :flex do APPS_DIR = '.' COMPONENTS_DIR = 'components' PUB_DIR = '../pub/flash'
July 30, 2007
4:36PM EDT
by Dave Grijalva
View more (6 lines)
myproject/
- Rakefile
- components/
- build/
- myapp
June 22, 2007
3:44PM EDT
by Dave Grijalva
View more (9 lines)
function handle_pipe_response(json){
//Do stuff
}
function getAnyRSS(url){
June 20, 2007
3:26PM EDT
by Dave Grijalva
View more (31 lines)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title>
June 18, 2007
7:32PM EDT
by Dave Grijalva
View more (17 lines)
class Logging attr_accessor :disable_time def initialize(d_time=false)
June 07, 2007
7:53PM EDT
by Dave Grijalva
/Users/dgrijalva/Library/Application Support/TextMate/Bundles/TextMate.tmbundle/Support/lib/doctohtml.rb:47:in `require': no such file to load -- /Users/dgrijalva/Library/Application Support/TextMate/Support/lib/plist (LoadError)
from /Users/dgrijalva/Library/Application Support/TextMate/Bundles/TextMate.tmbundle/Support/lib/doctohtml.rb:47:in `generate_stylesheet_from_theme'
from /tmp/temp_textmate.uh1zFn:3
June 07, 2007
7:04PM EDT
by Dave Grijalva
View more (10 lines)
{ name = 'comment.block.c';
begin = '/\*';
end = '\*/';
captures = { 0 = { name = 'punctuation.definition.comment.c'; }; };
patterns = (
May 18, 2007
10:43PM EDT
by Dave Grijalva
task :rails_aware do
ENV['RAILS_ENV'] = ARGV.first || ENV['RAILS_ENV'] || 'development'
require 'config/environment'
end
May 08, 2007
3:28PM EDT
by Dave Grijalva
View more (9 lines)
Object.extend(Array.prototype, {
elements: function() {
return this.inject([], function(elementNodes, element) {
if(element.nodeType == Node.ELEMENT_NODE)
elementNodes.push(element);
