This file contains hidden or 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
| (gdb) bt | |
| #0 0x00000000004070e7 in dictObjHash (key=0x68f45648) at redis.c:1038 | |
| #1 0x000000000040627f in dictExpand (ht=0x647ca8, size=<value optimized out>) at dict.c:190 | |
| #2 0x0000000000406461 in dictAdd (ht=0x68f45618, key=0x1e05b6458, val=0x1e05b6478) at dict.c:421 | |
| #3 0x000000000040bdbb in setGenericCommand (c=0x1bc2caac8, nx=0) at redis.c:3835 | |
| #4 0x000000000040e2d3 in call (c=0x68f45618, cmd=0x12) at redis.c:2123 | |
| #5 0x0000000000414e78 in processCommand (c=0x1bc2caac8) at redis.c:2312 | |
| #6 0x0000000000413620 in processInputBuffer (c=0x1bc2caac8) at redis.c:2468 | |
| #7 0x0000000000414f1b in readQueryFromClient (el=<value optimized out>, fd=<value optimized out>, privdata=<value optimized out>, | |
| mask=<value optimized out>) at redis.c:2501 |
This file contains hidden or 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):011:0> Benchmark.measure { 1_000_000.times { c = "0xdeadbeef"[0..0]; (c == 'D' || c == 'T') } }.real | |
| => 1.12148904800415 | |
| irb(main):012:0> Benchmark.measure { 1_000_000.times { "0xdeadbeef" =~ /^(D|T)/ } }.real | |
| => 0.670931100845337 |
This file contains hidden or 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
| [eve ~ 14:50 $] GEM_HOME= /usr/bin/ruby /usr/bin/gem list | |
| *** LOCAL GEMS *** | |
| actionmailer (2.2.2, 1.3.6) | |
| actionpack (2.2.2, 1.13.6) | |
| actionwebservice (1.2.6) | |
| activerecord (2.2.2, 1.15.6) | |
| activeresource (2.2.2) | |
| activesupport (2.2.2, 1.4.4) |
This file contains hidden or 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
| <!-- | |
| Das in den HEAD, nachdem jQuery geladen ist | |
| --> | |
| <% if iphone_user_agent? %> | |
| <script type="text/javascript"> | |
| jQuery(window).load(function() { | |
| $('#hidepage').hide(); | |
| }); | |
| </script> |
This file contains hidden or 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 ContactMail < ActiveRecord::Base | |
| has_no_table | |
| column :name, :string | |
| column :number, :string | |
| column :email_address, :string | |
| column :text, :string | |
| validates_presence_of :name, | |
| :message => 'Bitte geben Sie einen Namen an' |
This file contains hidden or 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
| FacadedImapMethods = [:uid_search, :uid_fetch, :uid_copy, :uid_store, :expunge, :append, :select, :login].deep_freeze | |
| FacadedImapMethods.each do |sig| | |
| class_eval <<-CLASS_METHOD, __FILE__, __LINE__ +1 | |
| def #{ sig }(*args) # def uid_search(*args) | |
| imap_method(:#{ sig }, *args) # imap_method(:uid_search, *args) | |
| end # end | |
| CLASS_METHOD | |
| end |
This file contains hidden or 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 "thread" | |
| class Mailbox | |
| def initialize | |
| @stop = false | |
| end | |
| def stop! | |
| @stop = true | |
| end |
This file contains hidden or 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 Hash | |
| def lookup_path(query) | |
| path = query.split('.') | |
| path.inject(self) do |result, key| | |
| result[key] or return nil # || won't work. | |
| end | |
| end | |
| end |
This file contains hidden or 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
| module Faxonline | |
| class MultiLogger | |
| def initialize(*loggers) | |
| @loggers = loggers.collect do |logger| | |
| if logger.is_a?(Logger) | |
| logger | |
| else | |
| Logger.new(logger) | |
| end | |
| end |
This file contains hidden or 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
| document.observe('dom:loaded', function() { | |
| if(!document.location.href.match(/#podcenter_ch/)) { | |
| return false; | |
| } | |
| var allElementsWithPrices = $$('*').select(function(e) { | |
| return e.innerHTML.match(/^€/); | |
| }); | |
| allElementsWithPrices.each(function(e) { |