Skip to content

Instantly share code, notes, and snippets.

View adityapunjani's full-sized avatar

Aditya Punjani adityapunjani

View GitHub Profile
#request
{
"staysSearchRequest": {
"requestedPageType": "HOMEPAGE",
"metadataOnly": false,
"treatmentFlags": ["decompose_stays_search_m2_treatment", "decompose_stays_search_m3_treatment", "decompose_stays_search_m3_5_treatment", "decompose_stays_search_m4_treatment", "flex_destinations_june_2021_launch_web_treatment", "merch_header_breakpoint_expansion_web", "flexible_dates_12_month_lead_time", "storefronts_nov23_2021_homepage_web_treatment", "lazy_load_flex_search_map_compact", "lazy_load_flex_search_map_wide", "im_flexible_may_2022_treatment", "search_add_category_bar_ui_ranking_web", "decompose_experiences_search_m5_treatment", "flexible_dates_options_extend_one_three_seven_days", "super_date_flexibility", "micro_flex_improvements", "micro_flex_show_by_default", "search_input_placeholder_phrases", "pets_fee_treatment"],
"rawParams": [{
"filterName": "categoryTag",
"filterValues": ["Tag:8522"]
{
"searchResults": [
{
"__typename": "StaySearchResult",
"listing": {
"__typename": "StaySearchResultListing",
"avgRatingA11yLabel": null,
"avgRatingLocalized": null,
"city": "Stateline",
"contextualPictures": [
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adityapunjani
adityapunjani / jenkins-theme.css
Last active November 18, 2016 01:27
Jenkins Configure page fix
@charset "utf-8";
* {
-webkit-font-smoothing: auto !important;
}
.CodeMirror.CodeMirror.CodeMirror {
display: table !important;
table-layout: fixed !important;
width: 100% !important;
}
@adityapunjani
adityapunjani / asyncCSS.js
Last active August 29, 2017 12:16
Simpler Async CSS load
function loadCSS( href, before, media){
"use strict";
// Arguments explained:
// `href` is the URL for your CSS file.
// `before` optionally defines the element we'll use as a reference for injecting our <link>
// By default, `before` uses the first <style> element in the page.
// However, since the order in which stylesheets are referenced matters, you might need a more specific location in your document.
// If so, pass a different reference element to the `before` argument and it'll insert before that instead
// note: `insertBefore` is used instead of `appendChild`, for safety re: http://www.paulirish.com/2011/surefire-dom-element-insertion/
var ss = window.document.createElement( "link" );
@adityapunjani
adityapunjani / Helpers.js
Created December 11, 2013 12:32
JS Helpers to use with Handlebars.java client.
Handlebars.registerHelper('if_mod', function(num, val, result, options) {
if ((num % val) === result) {
return options.fn(this);
} else return options.inverse(this);
});
Handlebars.registerHelper('toJSON', function(obj) {
return JSON.stringify(obj);
});
Handlebars.registerHelper('if_notMod', function(num, val, result, options) {