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
var eventHandler, mousePosition; | |
viewer.scene.screenSpaceCameraController.enableZoom = false; | |
eventHandler = new ScreenSpaceEventHandler(viewer.scene.canvas); | |
eventHandler.setInputAction(function (event) { | |
mousePosition = event.endPosition; | |
}, ScreenSpaceEventType.MOUSE_MOVE); | |
eventHandler.setInputAction(function (wheelZoomAmount) { |
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
var when = require('when'), | |
whenFn = require('when/function'); | |
function lazyPromise(work) { | |
var defer, started, resolver, promise, then; | |
defer = when.defer(); | |
started = false; | |
resolver = defer.resolver; |
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
String.prototype.toHulkCase = function(str) { | |
return 'HULK SMASH PUNY ' + str.toUpperCase() + ' ARRRRRRRRRRRRR'; | |
} |
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
buildscript { | |
repositories { | |
mavenCentral() | |
maven { url 'http://maven.springframework.org/milestone' } | |
} | |
dependencies { | |
classpath 'org.cloudfoundry:cloudfoundry-client-lib:0.7.1' | |
} | |
} |
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
// alias serv="node path/to/serv.js" | |
var http = require('http'), | |
express = require('express'), | |
path = process.env.PWD, | |
port = process.argv[2] || 8000, | |
app = express.createServer(); | |
app.configure(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
<c:url value="/" var="baseURL" /> |
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
<rule> | |
<from>^/flowers/(.*)$</from> | |
<to>/$1</to> | |
</rule> |
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
<repositories> | |
<repository> | |
<id>org.springframework.milestone</id> | |
<name>Spring Framework Milestone Repository</name> | |
<url>http://maven.springframework.org/milestone</url> | |
<snapshots> | |
<enabled>false</enabled> | |
</snapshots> | |
<releases> | |
<updatePolicy>never</updatePolicy> |
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
dojo.provide("dojox.charting.axis2d.Titled"); | |
dojo.require("dojox.charting.axis2d.Default"); | |
dojo.require("dojox.gfx"); | |
dojo.require("dojox.gfx.matrix"); | |
(function(){ | |
var dc = dojox.charting, | |
g = dojox.gfx, | |
m = dojox.gfx.matrix, |