My Recent Pastes (21 and counting)
Pastes by Moofius (21 and counting)
Below are the 15 most recent pasties by Moofius.
October 19, 2007
9:39AM EDT
by Moofius
View all 65 lines
[X] BCMATH bc style precision math functions [X] BZ2 bzip2 library support [X] CALENDAR calendar conversion support [X] CTYPE ctype functions [X] CURL CURL support
October 05, 2007
2:53PM EDT
by Moofius
View all 10 lines
if ARGV.length==1
require 'fileutils'
folder = ARGV[0]
Dir.glob("#{folder}/*") do |file|
if file =~ /[EXex]([0-9]{1,2})((\+|-)([0-9]{1,2})|)/
August 09, 2007
11:14AM EDT
by Moofius
View all 13 lines
class MainController < ApplicationController
def dispatcher
send_file("/Users/moofius/Rails/Maker/#{session[:site]}/#{params[:url]}", :disposition => 'inline') rescue send_file("/Users/moofius/Rails/Maker/#{session[:site]}/#{params[:url]}/index.html", :disposition => 'inline')
end
July 28, 2007
11:48AM EDT
by Moofius
View all 14 lines
<?php $to = 'information@creadoe.se'; $subject = 'Formulärkontakt från '+@_POST['name']; $message = 'Företag/Namn: '+$_POST['name']+'\r\n'+$_POST['message']; $headers = 'From: ' . $_POST['email'] . "\r\n" .
July 09, 2007
12:03PM EDT
by Moofius
View all 7 lines
Minipopup = Class.create();
Object.extend(Minipopup, {
initialize: function() {
alert("hej");
}
July 05, 2007
7:03AM EDT
by Moofius
url = "/datepick/"
if ($('yearpicker')) {
url += $('yearpicker').options[$('yearpicker').selectedIndex].value+'/';
}
url += $('monthpicker').options[$('monthpicker').selectedIndex].value+'/';
July 03, 2007
12:26PM EDT
by Moofius
View all 28 lines
def signup @user = User.new(params[:user]) return unless request.post? @user.active = true
June 18, 2007
6:31AM EDT
by Moofius
View all 11 lines
results = Magick::ImageList.new
reflection = magick.wet_floor
ilist = Magick::ImageList.new
ilist << magick << reflection
June 06, 2007
1:27PM EDT
by Moofius
View all 48 lines
[:form_for, :remote_form_for].each do |method|
module_eval <<-end_src, __FILE__, __LINE__
def cute_#{method}(object_name, *args, &proc)
options = args.last.is_a?(Hash) ? args.pop : {}
options.update(:builder => CuteFormBuilder)
June 03, 2007
6:46AM EDT
by Moofius
@thread = @forum.threads.new(a)
@post = @thread.forum_posts.build(b)
@post_saved = @post.valid? and @thread.valid? and @thread.save
May 25, 2007
3:21PM EDT
by Moofius
View all 15 lines
new Bla(Site.datepicker_y) new Bla(Site.datepicker_x) Bla: argument1.call(3)
May 25, 2007
3:21PM EDT
by Moofius
View all 15 lines
new Bla(Site.datepicker_y) new Bla(Site.datepicker_y) Bla: argument1.call(3)
May 25, 2007
3:18PM EDT
by Moofius
View all 8 lines
datepicker_y: function(is) {
Site.datepicker_ym(is, "y");
},
datepicker_m: function(is) {
Site.datepicker_ym(is, "m");
May 25, 2007
2:34PM EDT
by Moofius
#month_table .d1{background-position:0 -0px;} #month_table .d1.pin{background-position:-45px -0px;} #month_table .d1:hover{background-position:-90px -0px;} #month_table .d2{background-position:0 -50px;} #month_table .d2.pin{background-position:-45px -50px;} #month_table .d2:hover{background-position:-90px -50px;} #month_table .d3{background-position:0 -100px;} #month_table .d3.pin{background-position:-45px -100px;} #month_table .d3:hover{background-position:-90px -100px;} #month_table .d4{background-position:0 -150px;} #month_table .d4.pin{background-position:-45px -150px;} #month_table .d4:hover{background-position:-90px -150px;}
