Public Gists by augustl

Gravatar
Wed Sep 30 02:09:26 -0700 2009
1
2
#!/usr/bin/env ruby
# Just testing. Will create new gist when I worked out the kinks.
Gravatar
Sat Aug 22 00:19:03 -0700 2009
1
2
3
# Include this module into the controllers you want to easy-mode CRUD
module AdminControllerCrudActions
  COLUMN_MAP = {
Gravatar
Wed Jul 08 07:36:02 -0700 2009
1
2
<%= render :partial => "entry_big", :object => @entries.first %>
<%= render :partial => "entry_small", :collection => @entries[1..-1] %>
Gravatar
Wed Jul 08 00:51:40 -0700 2009
1
2
3
require 'rubygems'
require 'active_record'
 
gist: 135486 Work in progress lesscss.or...
Gravatar
Wed Jun 24 13:01:51 -0700 2009
1
2
3
module Less
  class Engine
    attr_reader :css
Gravatar
Wed Apr 29 00:16:00 -0700 2009
1
2
3
//
//
// GMail Item Links
gist: 73364 Test helper for testing eng...
Gravatar
Tue Mar 03 07:18:40 -0800 2009
1
2
3
dir = File.dirname(__FILE__)
rails_root = File.join(dir, '..', '..', '..', '..')
ENV["RAILS_ENV"] = "test"
gist: 61633 Rails 2.3 app template
Gravatar
Tue Feb 10 14:29:06 -0800 2009
1
2
3
# Remove some files we don't need.
%w(public/javascripts/* public/index.html public/images/rails.png).each do |path_spec|
  run "rm #{path_spec}"
gist: 54518 Handling extensions to buil...
Gravatar
Thu Jan 29 04:17:52 -0800 2009
1
2
3
# Include all the files in lib/core_ext
Dir.glob(File.join(Rails.root, 'lib', 'core_ext', '*.rb')).each do |core_ext|
  require core_ext
Gravatar
Thu Jan 22 07:09:36 -0800 2009
1
2
3
// Twitter Hashtag Ignore
// version 0.3
// 2008-01-25
Gravatar
Wed Dec 31 05:07:35 -0800 2008
1
2
3
(function($){
  $.fn.inlineLabels = function(options){
    var self = this; // scope..
Gravatar
Wed Dec 24 02:36:33 -0800 2008
1
2
3
(function($){
function Calendar(dayRenderFunc, options){
this.dayRenderFunc = dayRenderFunc
Gravatar
Wed Dec 03 03:41:39 -0800 2008
1
2
3
// 'mySlideshow' will always have the size of the movie clip. Even if it's being resized in a browser window (thanks to the scaleMode)
stage.align = StageAlign.TOP_LEFT
stage.scaleMode = StageScaleMode.NO_SCALE
Gravatar
Thu Nov 20 00:22:57 -0800 2008
1
2
3
pun = Httpun.get('http://google.com/')
 
case pun.status
gist: 23447 Experimental finder syntax ...
Gravatar
Mon Nov 10 00:15:43 -0800 2008
1
2
3
require 'rubygems'
require 'active_support'
 
gist: 20698 The simplest thing that cou...
Gravatar
Wed Oct 29 07:24:54 -0700 2008
1
2
3
def path_to_attachment_image(attachment)
  image_path("attachments/#{attachment.filename}")
end
Gravatar
Tue Oct 21 00:55:32 -0700 2008
1
2
3
;; UTF-8
(require 'un-define "un-define" t)
(set-buffer-file-coding-system 'utf-8 'utf-8-unix)
Gravatar
Sat Oct 18 17:19:54 -0700 2008
1
2
3
# Requires /usr/sbin/sendmail (e.g. postfix)
module Mailer
  def self.deliver(to, subject, body)
Gravatar
Mon Oct 13 04:09:39 -0700 2008
1
2
3
#!/usr/bin/env ruby
 
# Runs Rails tests via command line.
Gravatar
Mon Sep 22 01:37:20 -0700 2008
1
2
3
<html>
<head>
  <%= javascript_include_tag *javascripts %>