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
<html> | |
<head> | |
<style> | |
.setdown-address-block { | |
background-color: #eeeeee; | |
width: 100%; | |
display: table; | |
} | |
.setdown-buttons, .address-input, .validation-icon { |
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
DO WTF YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Alexey Silin <[email protected]> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WTF YOU WANT TO PUBLIC LICENSE |
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
<html> | |
<body> | |
<div> | |
<img style="width:30px;height:60px;vertical-align:middle;border:1px solid blue;"> | |
<span style="">Works.</span> | |
</div> | |
</body> | |
</html> |
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
<html> | |
<head> | |
<title>Slide Example</title> | |
<style> | |
.viewport { | |
position: relative; | |
overflow: hidden; | |
width: 150px; | |
height: 200px; | |
border: 1px solid maroon; |
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 'rubygems' | |
require 'eventmachine' | |
require 'amqp' | |
class QueueDaemon | |
class << self | |
def exchange | |
@exchange |
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 QueueDaemon | |
class << self | |
def start! | |
Thread.new do | |
EventMachine.run do | |
puts "Asimov: Attempting Connection" | |
AMQP.connect( | |
:on_possible_authentication_failure => Proc.new {puts("Asimov: Possible Authentication Failure")}, |
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 QueueDaemon | |
class << self | |
def start! | |
Thread.new do | |
EventMachine.run do | |
puts "Asimov: Attempting Connection" | |
AMQP.connect( | |
:on_possible_authentication_failure => Proc.new {puts("Asimov: Possible Authentication Failure")}, |
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
# activerecord logging methods | |
# very useful for digging into | |
# queries | |
require 'logger' | |
require 'activerecord' if rails?(2) | |
def enable_logger | |
log_to(Logger.new(STDOUT)) | |
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 'rubygems' | |
require 'irb/completion' | |
require 'irb/ext/save-history' | |
# inspired by https://gist.github.com/794915 | |
# I've changed it a bit, it works fine for me now | |
# but i'm still searching for a better solution | |
def require_without_bundler(*gems) | |
unless defined?(::Bundler) | |
gems.each { |g| require g } |
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
- form_for :branch, @branch, :url => {:action => :create, :id => @branch.id} do |f| | |
= render :partial => 'form', :locals => {:f => f, :submit_button_caption => "Create Branch"} |