- Domain (i.e. example.com)
- Subdomain(s): (i.e. www.example.com)
- Username
- App name
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
'use strict'; | |
/** | |
* This directive parses both 1.2 and 1,2 into a valid float number 1.2. | |
* Note that you can't use input type number here as HTML5 browsers would | |
* not allow the user to type what it would consider an invalid number such as 1,2. | |
* | |
* <input ng-model="{yourModel}" validate-float /> | |
*/ | |
angular.module('Library').directive('validateFloat', function () { |
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
export default class BaseDirective { | |
restrict: any; | |
scope: any; | |
template: any; | |
transclude: any; | |
require: any; | |
compile: any; | |
controller: any; | |
bindToController: any; | |
controllerAs: any; |
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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 Heap (compareFunc) { | |
var _self = this; | |
this.elements = []; | |
this.compareFunc = compareFunc; | |
_self.swap = function(aIdx, bIdx) { | |
var a = _self.elements[aIdx]; | |
var b = _self.elements[bIdx]; | |
var tmp = a; |