Skip to content

Instantly share code, notes, and snippets.

@smoofles
smoofles / gist:22154
Created November 4, 2008 15:36
learning to work with jQuery
/* • lpl modal */
/* lepilo modal dialog */
lpl.modal = function() {
// Holds a reference to the Instance of lpl.modal
var self = this;
this.init = function() {
/* • lpl modal */
/* lepilo modal dialog */
lpl.modal = function() {
// Holds a reference to the Instance of lpl.modal
var self = this;
this.init = function() {
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
# I fail at deployment
failed: "sh -c \"cd ~/someapp.lepilo.at/releases/20081218130824;bin/thor merb:gems:redeploy\"" on slice_tasa
= js_include_tag 'jquery-1.2.6', 'jquery-ui-1.6b', 'jquery.cookie', 'jquery.dimensions', 'jquery.livequery', :bundle => 'jquery'
= js_include_tag 'lowpro.jquery', 'jquery.autogrow-textarea', 'swfupload'
= js_include_tag 'lpl.app', 'lpl.layout', 'lpl.uploadrz', :bundle => 'lepilo'
= css_include_tag 'reset.css', 'lpl_base.css', 'lpl_ui.css', 'lpl_buttons.css', 'lpl_forms.css', 'lpl_content.css', 'lpl_header.css', 'lpl_footer.css', 'lpl_modal', :media => :screen, :bundle => 'lepilo'
<div id='lpl_app_shelf'>
<div class='border'>
<div class='handle hor'></div>
</div>
<div class="content">
<div class="icon-container">
<div class="image">
<img src="/images/thumbnail-01.png" alt="icon" />
##################### lpl_content
<div id='lpl_content'>
<!-- this is where the main views go to, like index/list, edit, view actions -->
</div>
##################### lpl_app_header
<div id='lpl_app_header'>
def table_form
builder.div(:class => "lpl_container_rounded") do |container|
container.form(:action => "/lepilo", :method => "post") do |form|
form.input(:name => "_method", :type => "hidden", :value => "put")
form.table(:class => "lpl_form") do |table|
/* for using a nested <img> for the icon */
.lpl_list li > a > img {
display:inline;
position:relative;
left:-26px;
margin:0 -28px -8px 0;
clear:none;
}
if defined?(Merb::Plugins)
$:.unshift(dirname = File.dirname(__FILE__))
dependency 'merb-slices', :immediate => true
dependency 'lpl-core', :immediate => true
Merb::Plugins.add_rakefiles "lpl-articles/merbtasks", "lpl-articles/extensiontasks", "lpl-articles/spectasks"
# Register a namespace for the views.