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
| /** | |
| * Filters an array of objects using custom predicates. | |
| * | |
| * @param {Array} array: the array to filter | |
| * @param {Object} filters: an object with the filter criteria | |
| * @return {Array} | |
| */ | |
| function filterArray(array, filters) { | |
| const filterKeys = Object.keys(filters); | |
| return array.filter(item => { |
mix3d asked for some help using this guide with windows so here we go. This was tested with Windows 10. Run all commands in Git Bash once it's installed.
Github will be the main account and bitbucket the secondary.
- Download and install Git for Windows
- In the installer, select everything but decide if you want a desktop icon (2nd step)
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
| /* | |
| The MIT License (MIT) | |
| Copyright (c) 2016 David Gomez-Urquiza | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
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: PDF save from GMAIL to Google Drive | |
| ** Script TYPE: Google Script | |
| ** Revision by: Dipak Raval | |
| ** Original Author: unknonw | |
| ******************************************************/ | |
| var GMAIL_LABEL = 'Salary_Slip'; /* Label name can be changed to yours */ | |
| var GDRIVE_FILE = 'MySalarySlips/$y/SalarySlip/$sublabel/$y-$m-$d_$domain_$mc_$ac.$ext'; /* File Path can be change to yours */ |
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
| /*! | |
| * jQuery Plugin | |
| * Name: drtabs | |
| */ | |
| (function ($) { | |
| $.fn.drtab = function ($element, options) { | |
| // Establish our default settings | |
| var settings = $.extend({ | |
| anchorClass: "tabLink", | |
| activeClass: "active" |
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 name: fullpage | |
| * Params: | |
| * >> elem: element id or class stirng eg: ".someClass", ""#someID"" | |
| */ | |
| function fullpage(elem, headerClass) { | |
| $(elem).each(function (i, v) { | |
| var that = this; | |
| var winH = $(window).height(); | |
| var winW = $(window).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
| /* | |
| * function name: read URL | |
| * Params: | |
| * >> input: input tag id or class, >> >> previewElclassName: class name where to show file name, >> imgFlag: true if uploading profile image OR Optional | |
| */ | |
| function readURL(input, previewElclassName, imgFlag) { | |
| if (imgFlag == undefined) { | |
| imgFlag = false; | |
| } | |
| if (input.files && input.files[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
| /*************************************************************************************** | |
| * OWL CAROUSAL START | |
| ***************************************************************************************/ | |
| /* | |
| * function Name: carousalSYNC | |
| * Params<types string>: | |
| * fCarousel >> first carousel ID string or class string hear with dot(.) or (#) | |
| * sCarousel >> second carousel ID string or class string hear with dot(.) or (#) | |
| * limit >> number for thumbnail view | |
| * Desc: This function find and check two Carousel and sync each other. |
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
| $.fn.customAlertFade = function () { | |
| var that = this; | |
| if (!that.html() == "") { | |
| that.fadeIn("slow").delay(3000).addClass("in"); | |
| setTimeout(function () { that.fadeOut("slow").delay(5000).removeClass("in"); }, 5500); | |
| setTimeout(function () { that.html(""); }, 6000); | |
| } | |
| }; |