Skip to content

Instantly share code, notes, and snippets.


Vishnu Kumar TheVishnuKumar

View GitHub Profile
View Generate QR Code for Salesforce sObject
IMAGE(''& Id ,
'Scan QR code to open record in mobile.')
View Convert Visualforce Checkboxes And Radio Buttons in Lightning Design System
Description: The main script to convert select list/radio from classic to lightning UI.
Author: Vishnu Kumar
opacity: 0;
<apex:page controller="ConvertPageMessagesController" >
<script src=""></script>
<apex:slds />
.msgIcon {
display: none!important
.customMessage * {
color: #fff!important
<apex:page standardController="opportunity" showHeader="false" sidebar="false" standardStylesheets="false">
border-radius: 0px 2px 2px 0px;
display: block;
width: 0%;
background-color: #fff;
height: 8px;
width: {!opportunity.Probability}%;
<h1>Click on search bar...</h1>
<script src=""></script>
(function() {
'use strict';
if (! ('webkitSpeechRecognition' in window) ) return;
var talkMsg = 'Speak now';
var patience = 6;
function capitalize(str) {
View Skype URI in Salesforce Formula Field
HYPERLINK("skype:"& vish1993__Skype_ID__c & "?chat", 'Chat','_top') &" "&
HYPERLINK("skype:"& vish1993__Skype_ID__c & "?call", 'Call','_top') &" "&
HYPERLINK("skype:"& vish1993__Skype_ID__c & "?call&video=true", 'Video Call','_top')
View BlockChainTest.cls
public class BlockChainTest{
//Testing Blockchain
public static void testBlockChain(){
/**Data Setup**/
//Creating Instance of Blockchain
BlockChain bChain = new BlockChain();
View WhatsApp Click to Chat in Salesforce{!Contact.Phone}?text={!JSENCODE("Hi "& Contact.Name &", We are from XYZ Corp. Want to connect with you regarding a new offering.")}
View ApexSpeedExperiment_1.cls
Speed Test - Does System.Debug() cost CPU limit?
Author: 0to1Code.Com
public class ApexSpeedExperiment_1{
//Experiment 1 : Without Debugs
public static void runExperiment1(){
List<Lead> leadLst = [select id,name,company, Address, Industry, AnnualRevenue from lead limit 2000];
View Trailhead Widget
<div id="trailblazerWidget" trailblazerid="YOUR_TRAILBLAZER_ID">
<script src="" type="text/javascript"></script>