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
var $summaryCells = $("tr.issuerow > td:nth-child(3)"); | |
$summaryCells.each(function(i, e){ | |
var $summaryCell = $(e); | |
let $parentTicketEl = $summaryCell.find('a.parentIssue'); | |
var parentTicketTitle = $parentTicketEl.attr('title'); | |
if(parentTicketTitle){ | |
$parentTicketEl.text(parentTicketTitle) | |
} | |
}) |
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
package LoadBalancer; | |
import java.util.LinkedList; | |
public class JobData { | |
public static LinkedList<Job> get(){ | |
LinkedList<Job> list = new LinkedList<>(); | |
list.add(new Job("job1", 95, 83, 3, false)); | |
list.add(new Job("job2", 84, 36, 5, false)); | |
list.add(new Job("job3", 94, 41, 8, false)); |
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
// Make sure you begin on Page 1 | |
// It will output the table after it reaches the final page | |
(function () { | |
var regex = new RegExp('Total ([0-9]+?) components, Page ([0-9]+?) of ([0-9]+$)'); | |
var table = $('<table>'); | |
var waitIsPresent = false; | |
var maxCount = 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
sObject s = new OpportunityLineItem(); | |
Schema.DescribeSObjectResult dsr = s.getsObjectType().getDescribe(); | |
Map<String, Schema.SObjectField> FsMap = dsr.fields.getMap(); | |
system.debug(Logginglevel.INFO,dsr.fields.getMap()); | |
for (String key : FsMap.keySet()) { | |
system.debug(Logginglevel.INFO, '###key: '+key+ ' ###value: ' + FsMap.get(key).getDescribe().getName()); | |
} | |
system.debug(Logginglevel.INFO,'test'); | |
system.assert(true); |
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
find . -name "*.iml" -type f -delete | |
rm -rf .idea |
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
JAXBContext context = JAXBContext.newInstance(MyClass.class); | |
Marshaller marshaller = context.createMarshaller(); | |
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); | |
marshaller.marshal(new JAXBElement<MyClass>(new QName("uri","local"), MyClass.class, myClassInstance), System.out); | |
// Maxb object to string without root element | |
//http://stackoverflow.com/questions/819720/no-xmlrootelement-generated-by-jaxb |
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 crypto = require('crypto'); | |
const decipher = crypto.createDecipher('aes192', 'a password'); | |
const cipher = crypto.createCipher('aes192', 'a password'); | |
var secretMessgae = "James Is awesome!!!!"; | |
console.log("secretMessgae", secretMessgae); | |
// encrypt | |
var encrypted = cipher.update(secretMessgae, 'utf8', 'hex'); |
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 org.apache.log4j.Level | |
import com.pearson.successmaker.repo.web.scripts.export.AssessmentItemsExporter | |
import org.apache.log4j.LogManager | |
// | |
// | |
LogManager.getRootLogger().setLevel(Level.INFO); |
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
Show hidden characters
{ | |
"folders": | |
[ | |
{ | |
"follow_symlinks": true, | |
"path": "." | |
} | |
], | |
"build_systems": |
NewerOlder