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
' ExpandAnimations | |
' Copyright 2010 Matthew Neeley. | |
' This program is free software: you can redistribute it and/or modify | |
' it under the terms of the GNU Lesser General Public License as published by | |
' the Free Software Foundation, either version 3 of the License, or | |
' (at your option) any later version. | |
' This program is distributed in the hope that it will be useful, |
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
// backend | |
$(document).ready(function() { | |
// the server sets parentUrl in the page it serves, based on the http-referer | |
var windowProxy = new Porthole.WindowProxy(window.parentUrl + "/proxy.html"); | |
function send(data) { | |
windowProxy.postMessage(JSON.stringify(data)); | |
} | |
windowProxy.addEventListener(function(event) { |
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
import sbt._ | |
import Keys._ | |
import PlayProject._ | |
object ApplicationBuild extends Build { | |
val emberOptions = SettingKey[Seq[String]]("ember-options") | |
val emberEntryPoints = SettingKey[PathFinder]("ember-entry-points") | |
def EmberCompiler(ember: String) = { |
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
import os | |
import subprocess | |
import tempfile | |
import numpy as np | |
def processMatrix(in_, funcStr): | |
"""Process the given matrix with MATLAB. | |
Uses temporary files to save the real and imaginary parts of the |
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
import contextlib, optparse, os, subprocess, sys, tempfile, time | |
from selenium import webdriver | |
# sauce labs browser and os names | |
# see https://saucelabs.com/docs/ondemand/browsers | |
SAUCE_BROWSER = { | |
'chrome': webdriver.DesiredCapabilities.CHROME, | |
'firefox': webdriver.DesiredCapabilities.FIREFOX, | |
'ie': webdriver.DesiredCapabilities.INTERNETEXPLORER, | |
'opera': webdriver.DesiredCapabilities.OPERA |
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
with contextlib.nested(jstd, sauce): | |
with contextlib.nested(*browsers) as browsers: | |
print "capturing browsers..." | |
for browser in browsers: | |
if hasattr(browser, 'get'): | |
print "capturing browser {0}...".format(browser) | |
browser.get(jstd.capture_url) | |
print "running tests from {config}...".format(config=o.jstd_config) | |
jstd.run_tests(o.jstd_config, o.jstd_tests, o.jstd_output) | |
print "done with tests." |
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
/** | |
* Copyright (C) 2013 Typesafe Inc. <http://www.typesafe.com> | |
*/ | |
package akka.util | |
import java.util.concurrent.atomic.AtomicReferenceArray | |
import scala.annotation.tailrec | |
import scala.concurrent.ExecutionContext |
