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
// list of calls... | |
var callList = { | |
google: 'http://www.google.com/calendar/feeds/developer-calendar@google.com/public/full?alt=json', | |
github: 'https://jobs.github.com/positions.json?description=dojo' | |
}; | |
app.get('/aggview', function(request, response) { | |
var Executer = function(url) { | |
return function(callback) { | |
rest.get(url).on('complete', function(data, response) { |
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 fs = require('fs'); | |
var async = require('async'); | |
var getFileList = function(callback) { | |
fs.readdir(dirName, function(err, files) { | |
if(err) { | |
console.log("an error reading dir"); | |
callback("an error reading dir"); | |
} | |
else { |
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
'use strict'; | |
dojo.require("xxx.highcharts.HighchartsDemoUtils"); | |
describe('HighchartsUtils', function() { | |
it("clickEvent generates pub/sub event", function() { | |
var received = {ok: false}; | |
// subscribe | |
dojo.subscribe("xxx/chart/plotOptions/point/click/1", received, 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
'use strict'; | |
dojo.require("xxx.comment.CommentList"); | |
describe('CommentList', function() { | |
var containerId= null; | |
beforeEach(function() { | |
var html = '<div id ="comment_container_' + this.id + '"></div>'; | |
setFixtures(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
<build> | |
<finalName>MyName</finalName> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-resources-plugin</artifactId> | |
<version>2.5</version> | |
<executions> | |
<execution> |
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
// CVS data | |
var bytes =[] | |
//populate bytes... | |
var data = dojox.encoding.base64.encode(bytes); | |
// export | |
var filename = filename + "_" + dojo.date.locale.format(new Date(), | |
{datePattern: "MM_dd_yyyy",timePattern: "HH_mm_ss"}); | |
dojo.byId("exportbutton").href='data:application/vnd.ms-excel;base64,' +data; | |
dojo.byId("exportbutton").download= filename + ".csv"; |
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
// CVS data | |
var bytes =[] | |
//populate bytes... | |
var data = dojox.encoding.base64.encode(bytes); | |
// export | |
var filename = filename + "_" + dojo.date.locale.format(new Date(), | |
{datePattern: "MM_dd_yyyy",timePattern: "HH_mm_ss"}); | |
dojo.byId("exportbutton").href='data:application/vnd.ms-excel;base64,' +data; | |
dojo.byId("exportbutton").download= filename + ".csv"; |
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 clazz = "dojo class name"; | |
dojo["require"](clazz); | |
var ctor = dojo.getObject(clazz); | |
var widget = new ctor(artts); |
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 standby = new dojox.widget.Standby({target: id}); | |
document.body.appendChild(standby.domNode); | |
standby.startup(); | |
standby.show(); |
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
beforeEach(function() { | |
this.addMatchers({ | |
toBeDate: function(expected) { | |
return (new Date(expected) instanceof Date); | |
} | |
}); | |
}); |
OlderNewer