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 stringPattern = /[A-Za-z]+/g; | |
var numberPattern = /\d+/g; | |
'This10Is200'.match(stringPattern); | |
// Returns ["This", "Is"] | |
'This10Is200'.match(numberPattern); | |
// Returns ["10", "200"] |
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
<html> | |
<head> | |
<title>SheetJs implementation</title> | |
</head> | |
<body> | |
<input type="file" id="inputFile" /> | |
<script src="http://oss.sheetjs.com/js-xlsx/jszip.js"></script> | |
<script src="http://oss.sheetjs.com/js-xlsx/ods.js"></script> |
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
Headers - Authorization: OAuth <YOUR_SESSION_ID> | |
Content-Type: text/xml | |
SOAPAction: createMetadata | |
URL - /services/Soap/m/35.0 | |
Body - | |
<?xml version="1.0" encoding="UTF-8"?> | |
<env:Envelope | |
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" |
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
1. Class selector - .<classname> | |
2. Id selector - #<id> | |
3. Scope selector - .<classname><space>.<dusra_classname> | |
4. Immediate child selector - .<classname>">".<child_classname> | |
5. Attribute selector - [<attributename>='<value>'] OR [<attributename>] | |
6. Tag selector - "<tagname>" | |
7. DOM element - Directly pass the element to jquery function | |
8. Multiple element - separate selectors using <comma> |
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 urlParamMap = {}; | |
(function () { | |
var urlParams = window.location.href.split("?"); | |
if (urlParams.length > 1) { | |
var paramArray = urlParams[1].split("?"); | |
for (var i = 0; i < paramArray.length; i++) { | |
var paramKeyValue = paramArray[i].split("="); | |
urlParamMap[paramKeyValue[0]] = paramKeyValue[1]; | |
} | |
} |
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 jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
setTimeout(function(){ | |
var jQ = jQuery.noConflict(); | |
jQ('input[type="checkbox"][title="Read Access"]').each(function(index,cb){jQ(cb).prop( "checked", true );}); | |
jQ('[type="submit"][title="Save"]').click(); | |
},3000); |