This file contains hidden or 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="../core-animated-pages/core-animated-pages.html"> | |
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html"> | |
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-down.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-up.html"> | |
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html"> | |
<polymer-element name="my-element"> | |
<template> |
This file contains hidden or 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
<html> | |
<head> | |
<title>API Example</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
var accessToken = "<your agent's client access token>"; | |
var baseUrl = "https://api.api.ai/v1/"; |
This file contains hidden or 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
/* ' ### You'll need something like this in your visual force page, main focus being action="{!markActiveDetails}" ### | |
' <apex:page docType="html-5.0" action="{!markActiveDetails}" standardController="Service_Inquiry_SP__c" recordSetVar="sit" extensions="ServiceInquiryOSPExt" standardStylesheets="false" sidebar="false"> | |
' </apex:page> | |
*/ | |
public PageReference markActiveDetails(){ | |
System.debug('#$#$# markActiveDetails running with siId ' + siId); | |
List<Service_Inquiry_Details__c> deetsToUpdate = new List<Service_Inquiry_Details__c>(); |
This file contains hidden or 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
//##### BEFORE ##### | |
({ | |
openAttach : function(component, event, helper) { | |
var getUrlParameter = window.location.href; | |
var urlParts = getUrlParameter.split("/s/"); | |
console.log('aaa')+urlParts[0]; | |
var x =component.get("v.Atts"); | |
console.log(x[0][0]); | |
//alert(urlParts[0]); | |
//var tempId = urlParts[1]; |
This file contains hidden or 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
// LIVE @ https://jsfiddle.net/jamiesmith/q8aw51ry/ | |
Date.prototype.today = function () { | |
return ((this.getDate() < 10)?"0":"") + this.getDate() +"/"+(((this.getMonth()+1) < 10)?"0":"") + (this.getMonth()+1) +"/"+ this.getFullYear(); | |
} | |
Date.prototype.timeNow = function () { | |
return ((this.getHours() < 10)?"0":"") + this.getHours() +":"+ ((this.getMinutes() < 10)?"0":"") + this.getMinutes() | |
//+":"+ ((this.getSeconds() < 10)?"0":"") + this.getSeconds(); | |
} |
This file contains hidden or 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
'use strict' | |
const port = process.env.PORT || 8080 | |
const request = require('request') | |
//Be sure to change YOURAPPNAME | |
let keywordUrl = "http://svcs.ebay.com/services/search/FindingService/v1"; | |
keywordUrl += "?OPERATION-NAME=findItemsByKeywords"; | |
keywordUrl += "&SERVICE-VERSION=1.0.0"; | |
keywordUrl += "&SECURITY-APPNAME=YOURAPPNAME"; | |
keywordUrl += "&GLOBAL-ID=EBAY-US"; |
This file contains hidden or 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
'use strict'; | |
const gulp = require('gulp') | |
,watch = require('gulp-watch') | |
,dir = '/home/ubuntu/workspace/app' | |
,fnDir = '/home/ubuntu/workspace/functions' | |
,version = 'prod' | |
,useVersion = false | |
,comando = "firebase deploy " | |
,comandoParams = " -P " +version+ " " | |
,comandOnlyFnc = " --only functions " |
This file contains hidden or 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="Program__c" extensions="commProgramExt" showHeader="true" standardStylesheets="false"> | |
<head> | |
<apex:stylesheet value="{!URLFOR($Resource.sldsScoped, 'assets/styles/salesforce-lightning-design-system-vf.min.css')}" /> | |
<style> | |
html { | |
width: 98%; |
OlderNewer