Skip to content

Instantly share code, notes, and snippets.

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* ~ sexy_scaffold.css ~ */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* ~~~ Body ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
body
{ color: #222;
background: #fff;
font-size: 75%;
font-family: 'Lucida Grande', Helvetica, Verdana, sans-serif;
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* ~ sexy_scaffold.css ~ */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* ~~~ Body ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
body
{ color: #222;
background: #fff;
font-size: 75%;
font-family: 'Lucida Grande', Helvetica, Verdana, sans-serif;
# = Encapsulating Script.aculo.us methods
# Why? Because an In-Place-Editor with Auto-Completer „widget“ is needed
# Editor Sends updates to standard RESTful +update+ method [=> admin_compositions_path(composition) ]
# Autocompleter expects +autocomplete+ method for your resource collection [=> autocomplete_admin_compositions_path]
module Admin::ScriptaculousHelper
# Puts an "in-place-editor" for specified +attribute+ of +model+ into HTML
# See http://github.com/madrobby/scriptaculous/wikis/ajax-inplaceeditor
From 233020a2d01e9c4f0bfdd54657062312d2039a57 Mon Sep 17 00:00:00 2001
From: Michael Koziarski <michael@koziarski.com>
Date: Thu, 11 Sep 2008 16:03:38 +0200
Subject: [PATCH] Flesh out the parameterize method to support non-ascii text and underscores.
---
activesupport/lib/active_support/inflector.rb | 2 +-
activesupport/test/inflector_test_cases.rb | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
[user]
name = {REPLACE}
email = {REPLACE}
[color]
ui = always
diff = auto
status = auto
branch = auto
interactive = auto
[alias]
@karmi
karmi / looks_like_actionscript.js
Created October 5, 2008 09:24
Somebody said "jQuery"?
// == Program ==
Program : {
initialize : function() {
if (!$('program-tree-container')) return false; // Exit immediately if not on a Program page
this.Tree.initialize()
},
Tree : {
require 'rubygems'
require 'hpricot'
require 'open-uri'
require 'pp'
# doc = Hpricot( open('http://www.unicode.org/cldr/data/charts/summary/cs.html') )
doc = open("cs.html") { |f| Hpricot(f) }
countries = {}
# doc.search("//tr[td='territory']").each do |row|
[user]
name = {REPLACE}
email = {REPLACE}
[color]
ui = always
diff = auto
status = auto
branch = auto
interactive = auto
[alias]
@karmi
karmi / gist:25475
Created November 16, 2008 12:56 — forked from lifo/gist:25300
Rails' `assigns` helper for Sinatra tests by lifo
$: << "/Users/lifo/Rails/sinatra/lib"
require 'rubygems'
require 'sinatra'
require 'sinatra/test/unit'
require 'app'
class Rack::Response
attr_accessor :variables
end
alu:Articles karmi$ git commit -a -m "Fix stupid mistakes in code, thanks leethal from #sinatra"
Created commit a0a8240: Fix stupid mistakes in code, thanks leethal from #sinatra
alu:Articles karmi$ git push karmi
...
Writing objects: 100% (4/4), 390 bytes, done.
...
002-introducing-marley/introducing-marley.txt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
[Articles] Content has been synchronized