Skip to content

Instantly share code, notes, and snippets.

View TheVishnuKumar's full-sized avatar
💭
http://www.0to1code.com/

Vishnu Kumar TheVishnuKumar

💭
http://www.0to1code.com/
View GitHub Profile
@isTest
public class BlockChainTest{
//Testing Blockchain
@isTest
public static void testBlockChain(){
/**Data Setup**/
//Creating Instance of Blockchain
BlockChain bChain = new BlockChain();
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')
<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) {
<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;
<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
}
<!--
Description: The main script to convert select list/radio from classic to lightning UI.
Author: Vishnu Kumar
-->
<style>
.convertToLSD{
opacity: 0;
}
</style>
<script>
IMAGE('https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=https://YourDomain.salesforce.com/'& Id ,
'Scan QR code to open record in mobile.')