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
function getViewportOffset(element) { | |
var node = element | |
, left = node.offsetLeft | |
, top = node.offsetTop | |
; | |
node = node.parentNode; | |
do { | |
var styles = getComputedStyle(node); |
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
# ~/Backup/models/production.rb | |
Backup::Model.new(:production, 'Descritpion') do | |
require 'json' | |
notify_by HttpPost do |post| | |
post.on_success = true | |
post.on_warning = true | |
post.on_failure = true |