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
SELECT product.*, CONCAT('["', (GROUP_CONCAT(variant.picture SEPARATOR '", "')),'"]') AS pictures, CONCAT('[', GROUP_CONCAT('{"',variant.identifierType, '":"', variant.identifier, '"}'),']') AS identifiers FROM product INNER JOIN variant ON product.uuid = variant.productUUID WHERE product.uuid = :id; |
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
%dw 2.0 // The version | |
output application/json // The mime-type of the output | |
var product = payload[0] // Setting a variable called product with a value of the first item of query's payload | |
--- | |
{ | |
identifier: product.uuid, | |
identifiers: read(product.identifiers default "[]","application/json"), // Parsing this string to a JSON object. If null, defaults to empty array to avoid a null exception. | |
price: { | |
amount: { | |
currencyValue: product.currencyValue, |
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
#%RAML 1.0 | |
title: DevRel-Quick Start Products API | |
version: v1.0 | |
##securitySchemes: | |
## basic: | |
## description: | | |
## This API supports Basic Authentication. | |
## type: Basic Authentication |
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
<link rel="import" href="../google-map/google-map.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../speech-mic/speech-mic.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
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
<link rel="import" href="../speech-mic/speech-mic.html"> | |
<link rel="import" href="../google-map/google-map-search.html"> | |
<link rel="import" href="../google-map/google-map.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
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
<link rel="import" href="../yt-video/yt-search-video.html"> | |
<link rel="import" href="../speech-mic/speech-mic.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
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
<apex:page showHeader="false" standardController="Account" standardStylesheets="false" docType="html-5.0" applyHtmlTag="false" applyBodyTag="false"> | |
<html> | |
<head> | |
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?key=AIzaSyCDnW4hjusPT-WyjMluh1FxUJfN2QefNp8&sensor=false"></script> | |
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.0.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
var myOptions = { | |
zoom: 15, | |
mapTypeId: google.maps.MapTypeId.ROADMAP, |
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
<apex:page standardController="Case" recordSetvar="cases"> | |
<apex:pageBlock > | |
<apex:form id="theForm"> | |
<apex:panelGrid columns="2"> | |
<apex:outputLabel value="View:"/> | |
<apex:selectList value="{!filterId}" size="1"> | |
<apex:actionSupport event="onchange" rerender="list"/> | |
<apex:selectOptions value="{!listviewoptions}"/> | |
</apex:selectList> | |
</apex:panelGrid> |
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
<apex:page standardController="Opportunity" recordSetVar="opportunities" tabStyle="Opportunity" sidebar="false"> | |
<apex:form > | |
<apex:pageBlock > | |
<apex:pageMessages /> | |
<apex:pageBlockButtons > | |
<apex:commandButton value="保存" action="{!save}"/> | |
</apex:pageBlockButtons> | |
<apex:pageBlockTable value="{!selected}" var="opp"> | |
<apex:column value="{!opp.name}"/> | |
<apex:column headerValue="フェーズ"> |
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
public class Governor1{ | |
private static final integer ONE = 1; | |
private static final String ONE_MESSAGE = 'ええぃ!セールスフォースのガバナは化け物か!'; | |
private Governor1(){} | |
public static void check(){ | |
Governor1.check(false); | |
} |
NewerOlder