This was a test with Poltergeist I did the other day
#!ruby
def polter
noop
end
def do_something | |
yield 'something' | |
end | |
do_something do |thing| | |
puts thing | |
end | |
def do_complex(first, second) | |
thing = 'nothing' |
server { | |
listen 80; | |
server_name nagios.example.tld; | |
access_log /var/log/nginx/nagios.access.log; | |
error_log /var/log/nginx/nagios.error.log info; | |
expires 31d; | |
root /usr/share/nagios3/htdocs; |
worker_processes 1; | |
error_log /usr/local/var/log/nginx.error.log; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; |
#!/bin/bash | |
# Install rbenv | |
# https://github.com/sstephenson/rbenv | |
cd ~ | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile | |
echo 'eval "$(rbenv init -)"' >> .bash_profile |
# -*- encoding : utf-8 -*- | |
set :assets_dependencies, %w(app/assets lib/assets vendor/assets Gemfile.lock config/routes.rb) | |
namespace :deploy do | |
namespace :assets do | |
desc <<-DESC | |
Run the asset precompilation rake task. You can specify the full path \ | |
to the rake executable by setting the rake variable. You can also \ |
module Plugin | |
def some_method | |
puts "Plugin" | |
super | |
end | |
end | |
class A | |
def some_method | |
puts "A" |
$VERBOSE = nil | |
require File.expand_path('../rooby', __FILE__) | |
Person = Rooby::Class.new 'Person' do | |
define :initialize do |name| | |
@name = name | |
end | |
define :name do |
This was a test with Poltergeist I did the other day
#!ruby
def polter
noop
end
import jenkins | |
j = jenkins.Jenkins('http://qa-mb:8080') | |
branch = 'mozilla-central' | |
testrun = 'endurance' | |
builds = ['20120719030543', | |
'20120720030549', | |
'20120721030555', |
Browsers could do so much more to optimize delegated handlers at a lower level. Most of the CSS selector parsing and grouping optimizations could be applied here. No javascript code ever has to be invoked if the selector doesn't match.
document.addDelegatedEventListener("mouseover", ".tooltip", listener)
Possibly coming with Web Components.