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
[req] | |
default_bits = 2048 | |
prompt = no | |
default_md = sha256 | |
x509_extensions = v3_req | |
distinguished_name = dn | |
[dn] | |
C = IN | |
ST = India |
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
// Karma configuration | |
// Generated on Thu Oct 18 2018 18:22:53 GMT+0530 (India Standard Time) | |
module.exports = function(config) { | |
config.set({ | |
// base path that will be used to resolve all patterns (eg. files, exclude) | |
basePath: '', | |
reporters: ['progress', 'html'], | |
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 left_left = $filter('filter')(objects, { | |
id : "LEGLEFT" | |
}); |
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
_transformObject: function(e) { | |
this.renderAll(); | |
transform.target._renderTransformDetail(transform); | |
} | |
fabric.Object = fabric.util.createClass({}); | |
transformDetailOffset: 30, | |
showTransformDetails: 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
//service | |
app.service('MyService', function () { | |
this.sayHello = function () { | |
console.log('hello'); | |
}; | |
}); | |
//factory | |
app.factory('MyService', function () { | |
return { |
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
Array.prototype.chunk = function ( n ) { | |
if ( !this.length ) { | |
return []; | |
} | |
return [ this.slice( 0, n ) ].concat( this.slice(n).chunk(n) ); | |
}; |
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
<div ng-controller="MyCtrl"> | |
<h2>Parent Scope</h2> | |
<input ng-model="foo"> <i>// Update to see how parent scope interacts with component scope</i> | |
<br><br> | |
<!-- attribute-foo binds to a DOM attribute which is always | |
a string. That is why we are wrapping it in curly braces so | |
that it can be interpolated. | |
--> | |
<my-component attribute-foo="{{foo}}" binding-foo="foo" | |
isolated-expression-foo="updateFoo(newFoo)" > |
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
/*Return only difference array*/ | |
[1,2].filter(function(i){ | |
return [3,1].indexOf(i) < 0 | |
}) | |
/*Return concat difference array*/ | |
[1,2].filter(function(i){ | |
return [3,1].indexOf(i) < 0 | |
}).concat([3,1].filter(function(i){ | |
return [1,2].indexOf(i) < 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
<div id="one"> | |
</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
<!DOCTYPE html> | |
<html> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> | |
<body> | |
<div ng-app="myApp" ng-controller="myCtrl"> | |
{{data.time}} | |
<br/> | |
<button ng-click="updateTime()">update time - ng-click</button> | |
<button id="updateTimeButton" >update time</button> | |
</div> |
NewerOlder