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
# frozen_string_literal: true | |
module Tesseract | |
module Transaction | |
module Steps | |
# Executes the step in a background job. Argument is either an ActiveJob | |
# or another Transaction (or anything that implements `#perform_later`. | |
# | |
# If the provided transaction implements a `validate` step, then that | |
# validator will be called on the input before the job is enqueued. This |
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
var views = { | |
foo: function($el, el, props) { | |
console.log(props); | |
}, | |
bar: function($el, el, props) { | |
console.log(props); | |
}, | |
fooBar: function($el, el, props) { | |
console.log(props); | |
} |
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
$(document).ready(function() { | |
google.load("books", "0"); | |
var viewerHeight; | |
var headerHeight; | |
var btn = $('#viewerButton'); // Single ref. | |
var viewer = $('#viewerContainer'); | |
function viewerInit() { |
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
$.ajax({ | |
url: 'http://api.twitter.com/1/statuses/user_timeline.json?screen_name=someonesplendid', | |
dataType: 'jsonp', | |
success: function(data) { | |
var tweet = data[0].text; | |
tweet = tweet.replace(/(http\:\/\/[A-Za-z0-9\.\/_]+)/g, '<a href="$1">$1</a>'); | |
tweet = tweet.replace(/@([a-zA-Z0-9_]+)/g, '<a href="http://twitter.com/$1">@$1</a>'); | |
$('#tweet').html(tweet); | |
} | |
}); |