Skip to content

Instantly share code, notes, and snippets.

💭
http://www.0to1code.com/

Vishnu Kumar TheVishnuKumar

💭
http://www.0to1code.com/
Block or report user

Report or block TheVishnuKumar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Generate QR Code for Salesforce sObject
IMAGE('https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=https://YourDomain.salesforce.com/'& 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
-->
<style>
.convertToLSD{
opacity: 0;
}
</style>
<script>
View ConvertPageMessages.page
<apex:page controller="ConvertPageMessagesController" >
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<apex:slds />
<style>
.msgIcon {
display: none!important
}
.customMessage * {
color: #fff!important
}
View StarWarProbability.page
<apex:page standardController="opportunity" showHeader="false" sidebar="false" standardStylesheets="false">
<style>
.starWar{
border-radius: 0px 2px 2px 0px;
display: block;
width: 0%;
background-color: #fff;
height: 8px;
width: {!opportunity.Probability}%;
font-size:8px;
View VoiceRecognition.page
<apex:page>
<h1>Click on search bar...</h1>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<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
@isTest
public class BlockChainTest{
//Testing Blockchain
@isTest
public static void testBlockChain(){
/**Data Setup**/
//Creating Instance of Blockchain
BlockChain bChain = new BlockChain();
View WhatsApp Click to Chat in Salesforce
https://wa.me/{!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="https://rawgit.com/vishnuvaishnav/TrailheadWidget/master/Trailblazer.js" type="text/javascript"></script>
</div>
You can’t perform that action at this time.