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
svn log # then pick which revision | |
svn update -r rREVISIONNUMBER |
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
// weekly filter | |
db.getCollection('Dashboard_AllTime').aggregate([ | |
{ $project: { | |
EmployeeCode: "$emp_code", | |
EmployeeName: "$emp_name", | |
Date: "$time_date", | |
TimeHours: "$time_hours", | |
WeekDate: { $week: "$time_date" } | |
} }, |
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
1. several position is not showing up on timesheet | |
the position data that visible on dropdown filter, is aggregated from utilization data (result from utilization query). on there, there is no data with position 0.Admin, 0.New, or 0.Principal | |
2. | |
timesheet | |
- several position on timesheet data is unavailable on dropdown | |
- generate sample data with postcode | |
utilization | |
- jobhourrate, postarget show data |
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
function getIrisan(strLong, strShort) { | |
var doCheck = function (leftStr, rightStr) { | |
for (var i = 1; i <= leftStr.length; i++) { | |
var each = leftStr.slice(leftStr.length - i) | |
if (rightStr.indexOf(each) == 0) { | |
return each | |
} | |
} | |
return "" |
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
function whenInterceptDo($sel, callback) { | |
var left = $sel | |
var right = left.next() | |
var doJob = function () { | |
var leftFrame = left.find("text")[0].getBBox() | |
var rightFrame = right.find("text")[0].getBBox() | |
var xCasualties = ((leftFrame.x + leftFrame.width) >= rightFrame.x) | |
&& ((leftFrame.x + leftFrame.width) <= (rightFrame.x + rightFrame.width)) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>test pdf iframe</title> | |
<style> | |
html, body { | |
height: 100%; | |
width: 100%; | |
} | |
iframe { |
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
if (window._phantom) { | |
if (!HTMLElement.prototype.click) { | |
HTMLElement.prototype.click = function() { | |
var ev = document.createEvent('MouseEvent'); | |
ev.initMouseEvent( | |
'click', | |
/*bubble*/ | |
true, /*cancelable*/ true, | |
window, null, | |
0, 0, 0, 0, /*coordinates*/ |
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 comments = []; | |
var counter = 0; | |
var generateURLbyOffset = (offset) => `https://www.linkedin.com/hp/modules/ozfeed/get-comments?commenterNameTrk=hp-feed-commenter-name&count=7&actingAsUrn=&threadUrn=urn%3Ali%3Aactivity%3A6197753429654269952&activityUrn=urn%3Ali%3Aactivity%3A6206763628864110592&totalComments=3176&attributedActivityActorUrnOpt=&attributedActivityUrnOpt=urn%3Ali%3Aactivity%3A6197753429654269952&offset=${offset}&commenterPhotoTrk=hp-feed-commenter-photo&actorUrn=urn%3Ali%3Amember%3A340588865` | |
var interval = setInterval(() => { | |
$.get(generateURLbyOffset(counter), (response) => { | |
counter += response.blocks.length | |
if (response.blocks.length === 0) { | |
clearInterval(interval) |
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
[ | |
{ "category": "Fruits", "items": [ | |
{ "name": "Strawberry" }, | |
{ "name": "Melon" }, | |
{ "name": "Orange" }, | |
{ "name": "Blueberry" } | |
] }, | |
{ "category": "Vegetables", "items": [ | |
{ "name": "Carrot" }, | |
{ "name": "Spinach" }, |
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
<script type="text/javascript"> | |
Segmen = ko.observable('') | |
Distributor = ko.observable('') | |
AvgRDD = ko.observable('') | |
Vintage = ko.observable('') | |
distributormaxData = ko.observableArray([]) | |
function borrowerdetails(){ | |
Segmen(r.AllData().Data.AD[0].borrowerdetails.customersegmentclasification) |