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
angular.element(document.querySelector('[ng-app]').injector() | |
.invoke(function($rootScope){ | |
var per = performance.now(); | |
$rootScope.$apply(); | |
console.log(performance.now() - per); | |
}) | |
}); |
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
<script type="text/javascript"> | |
onerror = function (a, b, c) { | |
alert([a, b, c]); | |
}; | |
</script> | |
<script type="text/javascript"> | |
var x = { | |
"JsonResult": { | |
"List": [{ | |
"Subject": "My book report on J. K. Rowling's <u>Harry Potter</u> series.", |
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
//sortable-2d-array.js | |
exports = module.exports = sortable2DArray; | |
function sortable2DArray(data) { | |
this.data = data; | |
} | |
sortable2DArray.prototype.sortBy = function (o) { | |
var fields = o.fields || []; |
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 JSONCall = function(url,data, onLoad, onError){ | |
this.url = url; | |
this.data = data; | |
this.onLoad = onLoad; | |
this.onError = onError; | |
}; | |
JSONCall.prototype = { | |
call: function(){ | |
if(typeof JsonClient==='undefined'){ | |
JsonClient = Titanium.Network.createHTTPClient(); |
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> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
<title>15 Puzzle</title> | |
<style type="text/css"> | |
body{color:black;background:white;font-family:Arial,Helvetica,sans-serif;font-size:20px;margin:0;} | |
table tr td{text-align:center;} |
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() { |
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
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; |
OlderNewer