This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "yo!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% fields_for @public_key do |f| -%> | |
<p> | |
<%= f.label :title %><br /> | |
<%= f.text_field :title %><br /><br /> | |
</p> | |
<p> | |
<%= f.label :key %><br /> | |
<%= f.text_area :key %> | |
</p> | |
<% end -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'eventmachine' | |
require 'open-uri' | |
require 'libxml' | |
class XmlHandler | |
include LibXML::XML::SaxParser::Callbacks | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):001:0> class Cool; def moo; 5; end; def do; moo; end end | |
=> nil | |
irb(main):002:0> module Zoop; def moo; 4; end end | |
=> nil | |
irb(main):003:0> class Za < Cool; alias_method :rawr, :moo; include Zoop; end | |
=> Za | |
irb(main):004:0> Za.new.moo | |
=> 4 # Ok | |
irb(main):005:0> Za.new.rawr | |
=> 5 # Ok |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "nokogiri" | |
require "eventmachine" | |
## | |
# This is the XML SAX Parser that accepts "pushed" content used by Babylon Gem. | |
class XmppParser < Nokogiri::XML::SAX::Document | |
## | |
# Initialize the parser and adds the callback that will be called upen stanza completion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "nokogiri" | |
require 'dike' | |
Dike.logfactory '/tmp/dikelogfactory/' | |
class ZipZap | |
attr_reader :zip, :zap | |
def initialize | |
@zip = "zip" | |
@zap = "zap" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- class: Nokogiri::XML::Builder | |
count: 9 | |
trace: | |
- builder.rb:40:in `evaluate' | |
- builder.rb:73 | |
- builder.rb:50:in `times' | |
- builder.rb:50 | |
- class: View | |
count: 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iq type='set' from='[email protected]/home' to='firehoser.superfeedr.com' id='sub1'> | |
<pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
<subscribe node='http://domain.tld/path/to/feed1.xml' jid='[email protected]'/> | |
<subscribe node='http://domain.tld/path/to/feed2.xml' jid='[email protected]'/> | |
<subscribe node='http://domain.tld/path/to/feed3.xml' jid='[email protected]'/> | |
</pubsub> | |
</iq> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iq type='error' | |
from='[email protected]' | |
to='[email protected]' | |
id='sub1'> | |
<pubsub xmlns='http://jabber.org/protocol/pubsub'> | |
<subscribe | |
node='http://domain.tld/path/to/feed.xml' | |
jid='[email protected]'/> | |
</pubsub> | |
<error type='modify'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iq type="result" to="[email protected]/home" from="firehoser.superfeedr.com" id="sub1"> | |
<pubsub xmlns="http://jabber.org/protocol/pubsub"> | |
<subscription jid="[email protected]" subscription="subscribed" node="http://domain.tld/path/to/feed1.xml"/> | |
<subscription jid="[email protected]" subscription="subscribed" node="http://domain.tld/path/to/feed2.xml"/> | |
<subscription jid="[email protected]" subscription="subscribed" node="http://domain.tld/path/to/feed3.xml"/> | |
</pubsub> | |
</iq> |
OlderNewer