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
#!/usr/local/bin/node | |
var fs=require('fs'); | |
var child_process=require('child_process'); | |
var username='keir.bowden@sfdx.deploy'; | |
var deployParams=['force:mdapi:deploy', '-d', 'src', | |
'-u', username, '--json']; |
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
#!/usr/local/bin/node | |
var fs=require('fs'); | |
var child_process=require('child_process'); | |
var username='keir.bowden@sfdx.deploy'; | |
var deployParams=['force:mdapi:deploy', '-d', 'src', | |
'-u', username, '--json']; |
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 applyHtmlTag="false" showheader="false" sidebar="false" controller="BarcodeSF1Ctrl"> | |
<head> | |
<title>BarcodeReader</title> | |
<apex:stylesheet value="{!URLFOR($Resource.alertify, 'alertify.js-0.3.11/themes/alertify.core.css')}"/> | |
<apex:stylesheet value="{!URLFOR($Resource.alertify, 'alertify.js-0.3.11/themes/alertify.default.css')}"/> | |
<apex:includeScript value="{!URLFOR($Resource.alertify, 'alertify.js-0.3.11/lib/alertify.min.js')}"/> | |
</head> | |
<body> | |
<div> | |
<img width="320" height="240" src="" id="picture" style="border:10px groove silver" /> |
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 with sharing class BarcodeSF1Ctrl | |
{ | |
@RemoteAction | |
public static String getRecordFromBarcode(String bcStr) | |
{ | |
String result; | |
List<String> eles=bcStr.split(':'); | |
String code=eles[1].trim(); | |
List<Account> accs=[select id, Barcode__c from Account where Barcode__c=:code]; |
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 > | |
<script type="text/javascript"> | |
var __sfdcSessionId = '{!GETSESSIONID()}'; | |
</script> | |
<script src="../../soap/ajax/40.0/connection.js" | |
type="text/javascript"></script> | |
<script type="text/javascript"> | |
function getMetrics() | |
{ |
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:component > | |
<apex:attribute name="topic" description="The topic name" type="String" required="true"/> | |
<apex:includeScript value="{!URLFOR($Resource.streaming, 'streaming/cometd.js')}"/> | |
<apex:includeScript value="{!URLFOR($Resource.streaming, 'streaming/jquery-1.5.1.js')}"/> | |
<apex:includeScript value="{!URLFOR($Resource.streaming, 'streaming/json2.js')}"/> | |
<apex:includeScript value="{!URLFOR($Resource.streaming, 'streaming/jquery.cometd.js')}"/> | |
<script type="text/javascript"> | |
(function($){ | |
$(document).ready(function() { | |
$.cometd.addListener("/meta/*", |
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
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,force:hasRecordId" access="global" controller="EinsteinVision_Admin"> | |
<aura:attribute name="initialised" type="boolean" default="false" /> | |
<aura:attribute name="files" type="Object[]"/> | |
<aura:attribute name="spinnerWaiting" type="Boolean" default="false"/> | |
<aura:attribute name="image" type="String" /> | |
<aura:attribute name="imagedata" type="String" /> | |
<aura:attribute name="result" type="String" default="Need a picture"/> | |
<aura:attribute name="showResult" type="Boolean" default="false" /> | |
<div class="slds-page-header"> |
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="Account" extensions="AddAttachmentExt"> | |
<apex:includeScript value="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js"/> | |
<apex:form> | |
<apex:sectionHeader title="{!Account.name} Attachments" /> | |
<apex:pageBlock mode="maindetail"> | |
<apex:pageBlockSection title="Existing Attachments" columns="1"> | |
<apex:PageBlockTable value="{!Account.Attachments}" var="attach"> | |
<apex:column value="{!attach.Name}" /> | |
<apex:column headerValue="Length (bytes)" value="{!attach.BodyLength}" /> | |
<apex:column headerValue="Owner" value="{!attach.Owner.Name}" /> |
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 with sharing class AddAttachmentExt | |
{ | |
private ApexPages.StandardController stdCtrl; | |
public Attachment att {get; set;} | |
public AddAttachmentExt(ApexPages.StandardController inStd) | |
{ | |
stdCtrl=inStd; | |
att=new Attachment(); | |
} |
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
<aura:component controller="UserFreezer"> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/> | |
<aura:attribute name="UserDetails" type="Object" /> | |
<aura:attribute name="Message" type="String" /> | |
<table> | |
<tr> | |
<th>First Name</th> | |
<th>Last Name</th> | |
<th>Username</th> |