- yes
- no
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
Oki, I'll call it the InsaneHypermediaApiProfileTester. | |
dn: Stay for me for a second :-) | |
Jared Ning: :) | |
dn: let's say we already got the HC client | |
dn: we now build the IHAPT Gem | |
dn: hc = HC.connect('localhost:9393') | |
dn: IHAPT.build_profile hc | |
dn: def build_profile | |
# visit '/' | |
# visit all forms & record inputs/required etc |
- given customer is on carpoolin.com/someurl/results/123
- press a button, their Frontend sends it to their Backend, their frontend sends fare_id to SS and polls for the url
- in the meanwhile the user will see 'their' waiting page
- we return a url
- their frontend redirects/blanks new page whatever our url (our waiting page)
- as soon as we can we redirect/submit form with js to send the user to the agency
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
<ns6:Schedule pr="RE, STR" nt="1" dur="00d01:24:00" dt="20130504" sid="0" dir="H"> | |
<ns6:TrainList> | |
<ns6:Train lt="Transport" tn="RE 10149" arr="00d01:51:00" dep="00d00:51:00" d="8003368" dn="Köln Messe/Deutz" s="8000001" sn="Aachen Hbf" tid="0.0"/> | |
<ns6:Train lt="Walk" arr="00d01:58:00" dep="00d01:51:00" d="444510" dn="" s="8003368" sn="Köln Messe/Deutz"/> | |
<ns6:Train lt="Transport" tn="STR 1" arr="00d02:05:00" dep="00d02:02:00" d="444507" dn="" s="444510" sn="" tid="0.1"/> | |
</ns6:TrainList> | |
</ns6:Schedule> |
development:
- install resque
- replace AJAX downloading with new background job
- create worker that executes query, emails when done
deployment:
- install redis
- install resque gem via
rake gems:install
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() { | |
// Username from pinnerLink | |
$.fn.username = function() { | |
href = $(this).attr('href') | |
return href.substr(1,href.length - 2) | |
} | |
$.fn.pinnerLink = function() { | |
return $(this).find('.pinUserAttribution a.firstAttribution') | |
} |
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
%form(action="https://www.berlinlinienbus.de/affiliate/affiliate_booking.php" method="post" id="form" accept-charset="utf-8") | |
= hidden_field_tag :departure, trip.dep.remote_handle[0,5] | |
= hidden_field_tag :destination, trip.arr.remote_handle[0,5] | |
= hidden_field_tag :ticket_art, 'TNT' | |
= hidden_field_tag :date, time.strftime( "%Y-%m-%d" ) | |
= hidden_field_tag :time, time.strftime( "%H:%M" ) | |
= hidden_field_tag :curr_lang, 'de' | |
= hidden_field_tag 'partner_ID', 'mVya2VocnNtaXR0ZWx2ZXJnbGVpY2g2NDgw' | |
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
{ | |
"agency_node_details": [ | |
{ | |
"details": { | |
}, | |
"meta_details": { | |
} | |
}, | |
{ | |
"details": { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>AtoB</title> | |
<link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/jquery.ui.core.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/jquery.ui.theme.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/jquery.ui.autocomplete.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/jquery.ui.datepicker.css?body=1" media="all" rel="stylesheet" type="text/css" /> |
I used to host my dev blog on Posterous. Twitter bought them out, and they were shutting down shop. I had to move my blog, but I didn't know where. I knew I didn't want much hassle which made me lean towards finding a hosted solution like wordpress. But I also knew I wanted something that would be good for sharing code snippets. At one time, Posterous had support for code snippets and markdown, which was great. Their support of it...not so much. I got so tired of their lack of support that I started just writing markdown in Github gists and pointed people to it. And then I started wondering if I could somehow strike a balance between a no-hassle solution and using gists.