Skip to content

Instantly share code, notes, and snippets.

{
"title": "Loft in Mission Bay",
"listingId": "112358",
"sections": [
{
"sectionId": "<some guid>",
"__typename": "SubnavTabs",
"items": [
{ "title": "Listing details", "url": "/manage_your_space/112358/details", "active": true},
{ "title": "Booking settings", "url": "/manage_your_space/112358/booking_settings", "active": false},
import { alpsPool, alpsChopper, alpsDessert, alpsCloser } from './data/sections/SingleMediaMock';
const mocks: { [key: string]: (o: any) => any } = {
Journey: (journey: any) => ({
...journey,
editorialContent: [
...journey.editorialContent.slice(0, 3),
alpsPool,
...journey.editorialContent.slice(3, 9),
alpsChopper,
const COMPONENT_TEMPLATE = 'component.tsx.template';
const STORY_TEMPLATE = 'story.jsx.template';
const TEST_TEMPLATE = 'test.jsx.template';
const SECTION_TYPES = 'frontend/luxury-guest/src/apps/PdpFramework/constants/SectionTypes.js';
const SECTION_MAPPING = 'frontend/luxury-guest/src/components/PdpFramework/Sections.tsx';
const COMPONENT_DIR = 'frontend/luxury-guest/src/components/PdpFramework/sections';
const STORY_DIR = 'frontend/luxury-guest/stories/PdpFramework/sections';
const TEST_DIR = 'frontend/luxury-guest/tests/components/PdpFramework/sections';
import { TripDesignerBioFields } from './__generated__/TripDesignerBioFields';
const AVATAR_SIZE_PX = 107;
const fragments = {
fields: gql`
fragment TripDesignerBioFields on TripDesignerBio {
avatar
name
bio
@adamrneary
adamrneary / chili.md
Created February 24, 2018 16:52
Chili from the Airbnb Chili Cook-off (second place!)
  • Slab bacon (~1 lb)
  • Bone-in beef short ribs (~4lb)
  • Ground beef (~1 lb, but could have been more
  • 1 tube of tomato paste
  • ~12 giant dried chilis, the nicest you can find (we used Pasilla de Oaxaca, Guajillo, and Ancho)
  • Whole coriander and cumin seeds
  • Ground cinnamon
  • 1 can of chipotle chilis in adobo
  • 1 large bottle chocolate or oatmeal stout
  • 32oz beef broth
import Tracking from 'airbnb-tracking';
import { PerformanceAirbnbWebInteractiveEvent } from 'airbnb-jitney-schemas/logging_performance_airbnb_web_interactive_v1';
import { UniversalPageImpressionEvent } from 'airbnb-jitney-schemas/logging_universal_page_impression_v1';
import { PageRequestMethodType } from 'airbnb-jitney-schemas/logging_type_page_request_method_type_v1';
import windowPerformance, { performanceNowFromEpoch } from '../../utils/windowPerformance';
export const VALIDATED_AIRBNB_INTERACTIVE = 'validated-airbnb-interactive';
export const NEVER_INTERACTIVE = 'never-interactive';
/* eslint react/forbid-foreign-prop-types: 1 */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { PageName } from 'airbnb-jitney-schemas/logging_type_page_name_v1';
import AirbnbInteractiveLogger, {
NEVER_INTERACTIVE,
VALIDATED_AIRBNB_INTERACTIVE,
} from '../utils/AirbnbInteractiveLogger';
export default compose(
connect(mapStateToProps),
withBreakpoint,
withAirbnbInteractive({
universalPageName: PageName.HomesPdp,
confirmIsInteractive: ({ listing ) => !!listing,
}),
withStyles(({ color }) => ({
loading: {
background: color.rowUnderlay,
# Formerly known as "P1," home is reserved for airbnb.com
# Note: Counting every possible content-specific landing page would make this list sprawl.
# Please capture your content-specific identifiers (e.g. Business Travel Campaign ABC) in the
# data payload.
# Other 1000-series pages are our landing pages. These are generally "Growth team" pages
- Home: 1000
description: Reserved exclusively for airbnb.com
design: airbnb.com
team: <redacted>
@adamrneary
adamrneary / streamalert.py
Last active January 30, 2017 17:56
StreamAlert Python Example
@rule('production_sudo',
logs=['osquery'],
matchers=['pci'],
outputs=['s3', 'pagerduty', 'slack'])
def production_sudo(record):
table_name = record['name']
tag = record['columns']['tag']
return (
table_name == 'linux_syslog_auth' and
fnmatch(tag, 'sudo*')