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
const fs = require('fs') | |
,converter = require('json-2-csv') | |
,request = require('request') | |
//REPLACE WITH WANTED URL | |
,url = 'https:// [YOUR CREDS @ YOUR STORE] .myshopify.com/admin/products.json' | |
; | |
request(url, (error, response, body) => { | |
if(response.statusCode === 200){ |
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
const startTime = new Date().getTime() | |
const fs = require('fs') | |
,util = require('util') | |
,converter = require('json-2-csv') | |
,request = require('request') | |
,shopifyAPI = require('shopify-node-api') | |
,setTimeoutPromise = util.promisify(setTimeout) | |
; |
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> | |
<meta charset="utf-8"> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="generator" content="Read Example"> | |
<meta name="application-name" content="Read Example"> | |
<title>SmithsIO.com</title> |
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
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"plugins": ["react"], | |
"ecmaFeatures": { |
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
//page | |
function Buyer_Prospect__c(u, rec){ | |
this.Id = rec | |
this.Responsible_Broker__c = u | |
} | |
Visualforce.remoting.Manager.invokeAction( | |
'{!$RemoteAction.BuyerProspectList_ext.getUsers}', | |
(res, err) => { | |
if(err.status){ |
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
{ | |
"0": "http://feeds.gimletmedia.com/hearreplyall", | |
"1": "http://rss.earwolf.com/improv4humans", | |
"2": "http://feeds.wnyc.org/radiolab", | |
"3": "https://feed.pippa.io/public/shows/harmontown", | |
"4": "http://rss.earwolf.com/never-not-funny", | |
"5": "http://feeds.99percentinvisible.org/99percentinvisible", | |
"6": "http://houndtall.nerdistind.libsynpro.com/rss", | |
"7": "http://rss.earwolf.com/how-did-this-get-made", | |
"8": "http://rss.earwolf.com/spontaneanation-with-paul-f-tompkins", |
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 CONTROLLER CODE | |
public class QuickPix { | |
public String parentId {get;set;} | |
public String sessionId {get;set;} | |
public QuickPix(){ | |
parentId = ApexPages.currentPage().getParameters().get('id'); | |
sessionId = UserInfo.getSessionId(); | |
} |
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
<!-- Example of controller | |
public class QuickPix { | |
public String parentId {get;set;} | |
public String sessionId {get;set;} | |
public QuickPix(){ | |
parentId = ApexPages.currentPage().getParameters().get('id');//Use param as attachments parent uid; | |
sessionId = UserInfo.getSessionId(); | |
} |
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
// #REVISION FOR SF1 / MOBILE / SHRUNK SIZE | |
// <div class="toaster"></div> --Add to where you want to display toast, like top of a VF page or <table> | |
// Then to use call: mkToast('Hey there!', 'success') anywhere in JS | |
const clearToast = () => document.querySelector('.toaster').innerHTML = '' | |
const mkToast = (msg, type) => { | |
// toast type may be success || warning || info || error | |
const cont = document.createElement('div') | |
const toaster = document.querySelector('.toaster') |
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
public class Location { | |
@InvocableMethod | |
public static void getLatLong(List<Id> Ids){ | |
//Get opp | |
Opportunity opp = [ | |
SELECT Id, jamiesmith__Location__Latitude__s, jamiesmith__Location__Longitude__s, jamiesmith__Street__c, jamiesmith__City__c, jamiesmith__State__c | |
FROM Opportunity | |
WHERE Id IN :Ids |