This file has been truncated, but you can view the full file.
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
/** | |
* @license AngularJS v1.2.20 | |
* (c) 2010-2014 Google, Inc. http://angularjs.org | |
* License: MIT | |
*/ | |
(function(window, document, undefined) {'use strict'; | |
/** | |
* @description | |
* |
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
angular.element(document.querySelector('[ng-app]').injector() | |
.invoke(function($rootScope){ | |
var per = performance.now(); | |
$rootScope.$apply(); | |
console.log(performance.now() - per); | |
}) | |
}); |
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> | |
<head> | |
<link href="//ajax.googleapis.com/ajax/libs/dojo/1.10.1/dijit/themes/claro/claro.css" rel="stylesheet" type="text/css" /> | |
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.10.1/dojo/dojo.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body class="claro" style="height:500px; width: 100%"> |
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
<?php | |
class Vinoth { | |
public $f; | |
} | |
class Kevin { | |
public $f; | |
} |
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
function CreditCardValidator() { | |
} | |
CreditCardValidator.prototype = { | |
isValid: function (identifier) { | |
var num, | |
sum = 0, | |
alt; | |
var myRegxp = /^([0-9]){13,19}$/; |
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
function BinarySearchTree() { | |
this._root = null; | |
} | |
BinarySearchTree.prototype = { | |
constructor: BinarySearchTree, | |
add: function (value) { |
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 MemoryClean = function() { | |
var _window; | |
/* | |
Here we make our "auto-release" pool. It's simply a window. | |
We hide it upon creation so it won't interfere with our view hierarchy. | |
5/3/2011: It seems that the window does not need to be a subcontext, just a regular window will do. | |
*/ | |
this.init = function() { | |
//_window = Ti.UI.createWindow(); |
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
function capturePictureDialog(opts) | |
{ | |
var dialogCallback=(typeof opts.callback=="undefined")?new Function(""):opts.callback; | |
var scribblingEnabled=(typeof opts.scribbling=="undefined")?false:opts.scribbling; | |
if(scribblingEnabled) | |
{ | |
Titanium.Paint = require('ti.paint'); | |
Ti.Paint = Titanium.Paint; |
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
function capturePictureDialog(opts) { | |
var dialogCallback = (typeof opts.callback == "undefined") ? new Function("") : opts.callback; | |
function cropImageBlob(image, cropRect) { | |
var h = image.height; | |
var w = image.width; | |
var toH = cropRect.height; | |
if (toH > h) { | |
toH = h; |
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 valdiate = (function() { | |
var _p={};//toss all private members into a single object. | |
_p.list=[]; | |
_p.init=function(){ | |
_p.list=[]; | |
}; | |
var noDigits = function() { |
NewerOlder