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 textToSpeech = (text) => { | |
const speech = new SpeechSynthesisUtterance(text); | |
[speech.voice] = speechSynthesis.getVoices(); | |
// sp.rate = ?; //speed of the voice. Default value is 1. lowest = 0.1 and highest = 10 | |
// sp.pitch = ?; //pitch of the voice. Default value is 1. lowest = 0 and highest = 2 | |
speechSynthesis.speak(speech); | |
}; | |
textToSpeech('Hello TalkJS!'); |
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
import sys | |
def isVowel(char): | |
return char.lower() in 'aeiou'; | |
def characterFreq(string): | |
v = {} | |
c = {} | |
out_dict = {} | |
vowel_num = 0 |
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
<?php | |
add_action('admin_menu', 'excel2post_plugin_setup_menu'); | |
function excel2post_plugin_setup_menu(){ | |
add_menu_page('Shoppers Mag CSV Import Page', 'Shoppers Mag CSV Import', 'manage_options', 'csv-import', 'e2p', "dashicons-image-rotate-right", 2); | |
} | |
function e2p(){ |
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:page standardController="Opportunity"> | |
<apex:pageBlock title="Opportunity Details"> | |
<apex:pageBlockSection> | |
<apex:outputField value="{! Opportunity.Name }"/> | |
<apex:outputField value="{! Opportunity.Amount }"/> | |
<apex:outputField value="{! Opportunity.CloseDate }"/> | |
<apex:outputField value="{! Opportunity.Account.Name }"/> | |
</apex:pageBlockSection> | |
</apex:pageBlock> | |
</apex:page> |
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:page standardController="Contact"> | |
<apex:pageBlock title="Contact Info"> | |
<apex:pageBlockSection > | |
First Name: {! Contact.FirstName } <br/> | |
Last Name: {! Contact.LastName } <br/> | |
Owner Email: {! Contact.Owner.Email } <br/> | |
</apex:pageBlockSection> |
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:page > | |
<apex:pageBlock > | |
<apex:pageBlockSection > | |
{! $User.FirstName } | |
</apex:pageBlockSection> | |
</apex:pageBlock> | |
</apex:page> |
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:page showHeader="false"> | |
<apex:pageBlock > | |
<apex:pageBlockSection columns="2"> | |
<apex:pageblocksectionitem > | |
{! $User.FirstName } {! $User.LastName } | |
({! $User.Username }) | |
</apex:pageblocksectionitem> | |
<apex:pageblocksectionitem > | |
<apex:image url="https://developer.salesforce.com/files/salesforce-developer-network-logo.png"/> |
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
trigger ClosedOpportunityTrigger on Opportunity(after insert, after update) { | |
List<Task> oppList = new List<Task>(); | |
for (Opportunity a : [SELECT Id,StageName,(SELECT WhatId,Subject FROM Tasks) FROM Opportunity | |
WHERE Id IN :Trigger.New AND StageName LIKE '%Closed Won%']) { | |
oppList.add(new Task( WhatId=a.Id, Subject='Follow Up Test Task')); | |
} | |
if (oppList.size() > 0) { |
NewerOlder