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
d3=function(){function n(n){return null!=n&&!isNaN(n)}function t(n){return n.length}function e(n){for(var t=1;n*t%1;)t*=10;return t}function r(n,t){try{for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}catch(r){n.prototype=t}}function i(){}function u(){}function a(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function o(){}function c(n){function t(){for(var t,r=e,i=-1,u=r.length;++i<u;)(t=r[i].on)&&t.apply(this,arguments);return n}var e=[],r=new i;return t.on=function(t,i){var u,a=r.get(t);return arguments.length<2?a&&a.on:(a&&(a.on=null,e=e.slice(0,u=e.indexOf(a)).concat(e.slice(u+1)),r.remove(t)),i&&e.push(r.set(t,{on:i})),n)},t}function l(){aa.event.stopPropagation(),aa.event.preventDefault()}function f(){for(var n,t=aa.event;n=t.sourceEvent;)t=n;return t}function s(n){for(var t=new o,e=0,r=arguments.length;++e<r;)t[arguments[e]]=c(t);return t.of=function(e,r){return function(i){try{var u=i.sourceEvent=aa.event;i.target=n,aa.event=i,t[i.type].apply(e,r)} |
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
<!DOCTYPE html> | |
<html> | |
<meta charset="utf-8"> | |
<style> | |
svg { | |
border: 1px dashed gray; | |
} | |
.gpu { | |
-webkit-transform: translateZ(0); | |
-webkit-perspective: 1000; |
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
private void renderOffsetAxes() { | |
Axes axes = (Axes) shape; | |
boolean b = viewer.transformManager.getPerspectiveDepth(); | |
viewer.transformManager.setPerspectiveDepth2(false); | |
viewer.transformPoint(axes.originPoint, originScreen); | |
dx = originScreen.x - (viewer.dimScreen.width - OFFSET_DISTANCE); | |
dy = originScreen.y - (viewer.dimScreen.height - OFFSET_DISTANCE); | |
originScreen.x -= dx; | |
originScreen.y -= dy; | |
int originScreenZ; |
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
private void renderOffsetAxes() { | |
Axes axes = (Axes) shape; | |
boolean b = viewer.transformManager.getPerspectiveDepth(); | |
viewer.transformManager.setPerspectiveDepth2(false); | |
viewer.transformPoint(axes.originPoint, originScreen); | |
dx = originScreen.x - (viewer.dimScreen.width - OFFSET_DISTANCE); | |
dy = originScreen.y - (viewer.dimScreen.height - OFFSET_DISTANCE); | |
originScreen.x -= dx; | |
originScreen.y -= dy; | |
int originScreenZ; |
This file has been truncated, but you can view the full file.
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
Using worker: worker-linux-4-1.bb.travis-ci.org:travis-linux-7 | |
$ export DATA_GAMES_PROXY_PREFIX=DataGames/Games/concord/lab/ | |
$ export S3_ACCESS_KEY_ID=[secure] | |
$ export S3_SECRET_KEY=[secure] | |
$ export GA_ACCOUNT_ID=[secure] | |
Applying updates | |
$ git clone --depth=50 --branch=master git://github.com/concord-consortium/lab-interactives-site.git concord-consortium/lab-interactives-site | |
Cloning into 'concord-consortium/lab-interactives-site'... | |
remote: Counting objects: 10401, done. |
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
Failures: | |
1) Activity is run from the portal with a domain, external_id, and return url | |
Failure/Error: stub.should have_been_requested | |
The request POST http://portal.org/return/1234 with body "[{\"type\":\"open_response\",\"question_id\":\"1\",\"answer\":\"something\"}]" with headers {'Authorization'=>'Bearer token', 'Content-Type'=>'application/json'} was expected to execute 1 time but it executed 0 times | |
The following requests were made: | |
GET http://127.0.0.1:54627/__identify__ with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'} was made 7 times | |
POST http://portal.org/return/1234 with body '[{"type":"open_response","question_id":"14","answer":"something"}]' with headers {'Authorization'=>'Bearer token', 'Content-Type'=>'application/json'} was made 1 time |
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
(function() { | |
function Foo() { | |
this.bigData = new Array(5000000).join("XXXXX"); | |
this.smallData = "bla bla"; | |
} | |
Foo.prototype.m = function() { | |
var smallData = this.smallData; | |
$(window).on('click', 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
(function() { | |
function Foo() { | |
this.bigData = new Array(5000000).join("XXXXX"); | |
this.smallData = "bla bla"; | |
} | |
Foo.prototype.m = function() { | |
var smallData = this.smallData; | |
$(window).on('click', 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
(function() { | |
function Foo() { | |
this.bigData = new Array(5000000).join("XXXXX"); | |
this.smallData = "bla bla"; | |
} | |
Foo.prototype.m = function() { | |
var smallData = this.smallData; | |
$(window).on('click', 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
names_in_old_order = sequence_with_activities.activities.map { |a| a.name } | |
sequence_with_activities.activities[0].name.should == names_in_old_order[0] | |
sequence_with_activities.activities[1].name.should == names_in_old_order[1] | |
sequence_with_activities.activities[2].name.should == names_in_old_order[2] | |
sequence_with_activities.lightweight_activities_sequences[0].update_attributes!(position: 1) | |
sequence_with_activities.lightweight_activities_sequences[1].update_attributes!(position: 0) | |
sequence_with_activities.lightweight_activities_sequences[2].update_attributes!(position: 2) | |
sequence_with_activities.reload # sequence_with_activities.activities.reset | |
names_in_new_order = sequence_with_activities.activities.map { |a| a.name } | |
names_in_new_order[1].should == names_in_old_order[0] |