Skip to content

Instantly share code, notes, and snippets.

/************************************************************************************
This is your Page Code. The appAPI.ready() code block will be executed on every page load.
For more information please visit our wiki site: http://docs.crossrider.com
*************************************************************************************/
/*
* Description:
* This extension asynchronous requests to get data from and post data to any domain
* (bypassing cross-domain browser restrictions), and handles the success/failure
* of the request.
@agustinhaller
agustinhaller / extension.js
Created November 22, 2012 19:40
booking [hotels]
var retailers_urlGet = "http://booking.com";
// Lets get retailers from backend API
appAPI.request.get(retailers_urlGet,
function(response, responseHeaders)
{
// Need to get these params from the response
var src = $(response).find("input[name=src]").val(),
error_url = $(response).find("input[name=error_url]").val(),
dcid = $(response).find("input[name=dcid]").val(),
@agustinhaller
agustinhaller / json response
Created November 22, 2012 20:42
json response
"({"q":"Miami Beach","rid":"279319ea-58ef-45fa-a77e-45f236d58a6e","rc":"OK","r":[{"i":"0","f":"Miami Beach, Florida, United States of America","d":"<B>Miami</B> <B>Beach</B>, FL","id":"800071","t":"CITY","rt":"NEIGHBORHOOD","s":"Miami Beach","l":"Miami Beach, Florida, United States of America","ll":{"lat":"25.821671","lng":"-80.138091"},"a":"MIA","amc":"178286","c":"United States of America","cc":"US","ccc":"USA","pb":"false"},{"i":"1","f":"South Beach, Florida, United States of America","d":"South <B>Beach</B>, FL","id":"6138745","t":"CITY","rt":"NEIGHBORHOOD","s":"South Beach","l":"South Beach, Florida, United States of America","ll":{"lat":"25.784277","lng":"-80.133742"},"a":"MIA","amc":"178286","c":"United States of America","cc":"US","ccc":"USA","pb":"false"},{"i":"2","f":"North Miami Beach, Florida, United States of America","d":"North <B>Miami</B> <B>Beach</B>, FL","id":"55169","t":"CITY","rt":"CITY","s":"North Miami Beach","l":"North Miami Beach, Florida, United States of America","ll":{"lat":"25.9376
@agustinhaller
agustinhaller / custom routes
Created January 26, 2013 13:58
custom routes
routes.MapRoute(
name: "ArticleRoute",
url: "n/{article_name}",
defaults: new
{
controller = "Article",
action = "Index",
article_name = UrlParameter.Optional
}
);
<li class="news-item">
<div class="news-item-wrapper">
<img src="http://placehold.it/280x160/eee/000" alt="">
<div class="news-resume">
<h4 class="news-title">Título de la noticia</h4>
</div>
<h4 class="news-source">Fuente de la noticia</h4>
<div class="news-over-resume">
<h4 class="news-source">The Economist / C. Megan</h4>
<i class="icon-caret-right"></i>
@agustinhaller
agustinhaller / index.html
Created January 26, 2013 17:53
main page
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="es" xmlns:fb="http://ogp.me/ns/fb#" xmlns:og="http://opengraphprotocol.org/schema/"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="es" xmlns:fb="http://ogp.me/ns/fb#" xmlns:og="http://opengraphprotocol.org/schema/"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="es" xmlns:fb="http://ogp.me/ns/fb#" xmlns:og="http://opengraphprotocol.org/schema/"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="es" xmlns:fb="http://ogp.me/ns/fb#" xmlns:og="http://opengraphprotocol.org/schema/"> <!--<![endif]-->
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# website: http://ogp.me/ns/website#">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Hub Internacional</title>
@agustinhaller
agustinhaller / index.html
Created January 26, 2013 18:25
main scripts
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="http://dev.hubinternacional.org/static/js/vendor/jquery-1.8.2.min.js"><\/script>')</script>
<script src="http://dev.hubinternacional.org/static/js/vendor/bootstrap.min.js"></script>
<script src="http://dev.hubinternacional.org/static/js/vendor/jquery-ui-1.10.0.custom.min.js"></script>
<script src="http://dev.hubinternacional.org/static/js/main.js"></script>
<script src="http://dev.hubinternacional.org/static/js/vendor/jquery.carouFredSel.min.js"></script>
<script src="http://dev.hubinternacional.org/static/js/vendor/jquery.mousewheel.min.js"></script>
<script src="http://dev.hubinternacional.org/static/js/vendor/jquery.ba-throttle-debounce.min.js"></script>
@agustinhaller
agustinhaller / main.css
Created January 26, 2013 20:21
new main css
/* ==========================================================================
Agustin Haller's custom styles
========================================================================== */
/*******************************************************************/
/************************ MAIN PAGE STYLES *************************/
/*******************************************************************/
/*@import url(http://fonts.googleapis.com/css?family=Ropa+Sans:400,400italic&subset=latin,latin-ext);*/
@font-face {
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Bumbea.com</title>
<meta name="description" content="">
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Bumbea.com</title>
<meta name="description" content="">