- Possible way to approach the requirements to frame right set of questions ?
- [ ] Which is the core domain problem system will be resolving or we will be automating ?
- Business Domain - Eg. Automating Sales Process
- Technical Domain - Eg. CTI Integration, Salesforce Sales Cloud Implementation
- What is the need of the system ?
- Who are the end users of the system ?
- Who are the super/admin users of the system ?
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
// Trim all whitespace characters | |
// It is a Unicode space character (SPACE_SEPARATOR, LINE_SEPARATOR, or PARAGRAPH_SEPARATOR) but is not also a non-breaking space ('\u00A0', '\u2007', '\u202F'). | |
// Reference : https://docs.oracle.com/javase/8/docs/api/java/lang/Character.html#isWhitespace-char- | |
public static String trim(String value){ | |
// first replace characters which are ignored by java to space. | |
char spaceChar = ' '; | |
return value == null ? null | |
: value.replace('\u00A0',spaceChar) | |
.replace('\u2007',spaceChar) | |
.replace('\u202F',spaceChar) |
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
<?php | |
define('MAILGUN_URL', 'https://api.mailgun.net/v3/DOMAIN_NAME'); | |
define('MAILGUN_KEY', 'KEY'); | |
function sendmailbymailgun($to,$toname,$mailfromnane,$mailfrom,$subject,$html,$text,$tag,$replyto){ | |
$array_data = array( | |
'from'=> $mailfromname .'<'.$mailfrom.'>', | |
'to'=>$toname.'<'.$to.'>', | |
'subject'=>$subject, | |
'html'=>$html, |
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
package com.eternussolutions; | |
import org.openqa.selenium.By; | |
import java.util.HashMap; | |
public class ElementData { | |
public String value; | |
public By selector; | |
public HashMap<String,By> selectors; | |
public String triggerEvent; |
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
var client = window.client = new WebTorrent({ | |
tracker: { | |
rtcConfig: rtcConfig | |
} | |
}) | |
client.on('warning', onWarning) | |
client.on('error', onError) | |
torrent = client.add(TORRENT, onTorrent) |
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
function getStringBetween(str, start,end){ | |
return str.substring( | |
str.indexOf(start) + start.length, | |
str.lastIndexOf(end) | |
); | |
} |
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
var providers = [ | |
{ | |
"provider" : {"name" : "Zaa"}, | |
"licenseStates" : ["TX"] | |
}, | |
{ | |
"provider" : {"name" : "Aaa"}, | |
"licenseStates" : ["CA"] | |
}, | |
{ |
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 inherited sharing virtual class ApexExtension { | |
public static String str(String input){ | |
return input == null ? '' : input; | |
} | |
public static String str(Object input){ | |
return str(String.valueOf(input)); | |
} |
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
List<Contact> contactsToUnDelete = new List<Contact>(); | |
for(Contact c : [Select Id, Name, IsDeleted from Contact LIMIT 50000 ALL ROWS]){ | |
if( c.IsDeleted == true ) { | |
System.debug('Undeleting Contact ='+c.Name+' : '+c.IsDeleted); | |
contactsToUnDelete.add(c); | |
} | |
} | |
if( contactsToUnDelete.size() > 0 ){ | |
System.debug('Undeleting In Total '+contactsToUnDelete.size()+' Contacts'); | |
undelete contactsToUnDelete; |
NewerOlder