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
:: archivers | |
choco install 7zip.install | |
:: messaging/collaboration | |
choco install skype | |
choco install teamviewer | |
:: iso/usb | |
choco install cdburnerxp | |
choco install poweriso |
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
// Example of creation new plugin based on this one. | |
(function ($) { | |
var pluginName = 'myBoilerplate'; | |
var parent = $.fn.boilerplate; | |
var defaults = {}; | |
var Constructor = function (element, options) { | |
this.element = element; | |
this._settings = $.extend({}, defaults, options); |
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 formatThousands = function (input, separator) { | |
var output = []; | |
input = String(input).split('').reverse(); | |
if (separator === void 0 || separator == null) { | |
separator = ','; | |
} | |
for (var i = 0, len = input.length, lastIndex = len - 1; i < len; i++) { |
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
/** | |
* Get position of given element in array or given sub-string in string | |
* | |
* @raram {String|Array} source | |
* @param {String|Number|Boolean} term | |
* | |
* @return {Number} Position of term in source or -1 | |
*/ | |
var indexOf = (function () { | |
var NEGATIVE = -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
getCleanTodayTimestamp = function () { | |
return new Date().setHours(0, 0, 0, 0); | |
} |
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 redirect = (function () { | |
var isFirefox = false; | |
var browser = window.navigator.userAgent; | |
var location = window.location; | |
var fixFirefoxHistory = function () { | |
var hash = window.location.hash; | |
var timestamp = Date.now(); | |
if (isFirefox) { |
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 extend = (function () { | |
var own = function (parent, child) { | |
return Object.prototype.hasOwnProperty.call(parent, child); | |
}; | |
return function (out) { | |
out = out || {}; | |
for (var i = 1, len = arguments.length; i < len; i++) { | |
if (!arguments[i]) { |
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
/** | |
* An easy way to realise event delegation jQuery in version-agnotic way | |
*/ | |
var easyEvents = (function () { | |
var easyEvents = function (bindings, jQuery) { | |
easyEvents._jq = window.jQuery || jQuery; | |
if (!easyEvents._jq) { | |
window.mmcore || (window.mmcore = {}); | |
window.mmcore.waitFor || (window.mmcore.waitFor = function () { return {then: function () {}}; }); | |
window.mmcore.waitFor(function () { |
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
type = (function(global) { | |
var re = /\s([a-z|A-Z]+)/; | |
return function(obj) { | |
if (obj === global) { | |
return 'global'; | |
} | |
return Object.prototype.toString.call(obj).match(re)[1].toLowerCase(); | |
} | |
})(window); |
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 bindNativeEvent = function (domElement, eventType, callback) { | |
if (!domElement || !eventType) { | |
return; | |
} | |
var eventMethod = window.addEventListener ? | |
['addEventListener', ''] : | |
['attachEvent', 'on']; | |
domElement[eventMethod[0]](eventMethod[1] + eventType, function (event) { |