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
You can use the "Replace" (or "Replace in Path" if you want to remove comments in multiple files) in the regular expression mode and then use this regular expression in the "Text to find" field: | |
(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/|[ \t]*//.*) | |
and replace it with an empty string. Then press "All" to apply this replacement to the entire file or all the selected files. This will remove all block comments and line comments from your file. If you want only block comments to be removed, use this regex instead: | |
(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/) | |
And if you want to just remove line comments, you can use this regex: | |
([ \t]*//.*) | |
However, I should warn that this works only %99.99 of times. You might have a string variable defined in your file like: |
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 args = new (function (search) { | |
if (search.length > 1) { | |
for (var aItKey, nKeyId = 0, aCouples = search.substr(1).split("&"); nKeyId < aCouples.length; nKeyId++) { | |
aItKey = aCouples[nKeyId].split("="); | |
if(aItKey.length > 1){ | |
var arg = decodeURIComponent(aItKey[1]); | |
this[decodeURIComponent(aItKey[0])] = isNaN(arg) ? arg : parseInt(arg); | |
} else { | |
this[decodeURIComponent(aItKey[0])] = true; | |
} |
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
CanvasRenderingContext2D.prototype.setImageSmoothing = function(enabled) { | |
this.mozImageSmoothingEnabled = enabled; | |
this.webkitImageSmoothingEnabled = enabled; | |
this.msImageSmoothingEnabled = enabled; | |
this.imageSmoothingEnabled = enabled; | |
}; | |
CanvasRenderingContext2D.prototype.isVisible = function(x, y, width, height) { | |
var visible = false; | |
if(x+width >= 0 && y+height >= 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
HTMLProgressElement.prototype.toString = function(){ | |
return Math.round(this.position*100).toString() + "%"; | |
}; | |
HTMLProgressElement.prototype.update = function(value){ | |
this.value = value; | |
var percentString = this.toString(); | |
this.innerHTML = percentString; | |
this.setAttribute("data-display", percentString); | |
}; |
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
HTMLCanvasElement.prototype.scaleToFit = function(width, height) { | |
var scaleX = width / this.width; | |
var scaleY = height / this.height; | |
this.style.transformOrigin = "0 0"; | |
this.style.transform = "scale(" + Math.min(scaleX, scaleY) + ")"; | |
}; | |
HTMLCanvasElement.prototype.scaleToCover = function(width, height) { | |
var scaleX = width / this.width; | |
var scaleY = height / this.height; |
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
/// <binding /> | |
/** | |
* @see http://webpack.github.io/docs/configuration.html | |
*/ | |
var path = require('path'); | |
var webpack = require('webpack'); | |
var webpackMerge = require('webpack-merge'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); |
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
interface UltimaStatic { | |
init(app: HTMLElement): void; | |
//_bindEvents(): void; | |
deactivateHorizontalMenu(): void; | |
activate(item: JQuery): void; | |
deactivate(item: JQuery): void; | |
deactivateItems(items: JQuery, animate: boolean): void; | |
enableModal(): void; | |
disableModal(): void; |
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
interface RioStatic { | |
init(): void; | |
bindEvents(): void; | |
isMobile(): boolean; | |
initRipple(): void; | |
} | |
/** | |
* PrimeNG Rio Layout |
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
import { Component, OnInit, ElementRef } from '@angular/core'; | |
@Component({ | |
template: ` | |
<!-- native element reference --> | |
<div id="source0" | |
style="background-color: red; height: 20px;" | |
draggable="true"> | |
</div> |
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
CKEDITOR.dialog.add('routerLinkDialog', function (editor) { | |
return { | |
// Basic properties of the dialog window: title, minimum size. | |
title: 'Router Link Properties', | |
minWidth: 200, | |
minHeight: 100, | |
// Dialog window content definition. | |
contents: [ | |
{ | |
// Definition of the Basic Settings dialog tab (page). |
OlderNewer