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
| # simple script | |
| from selenium import webdriver | |
| caps = {} | |
| caps['name'] = 'tony-20140417' | |
| caps['build'] = '1.0' | |
| caps['browser_api_name'] = 'FF28' | |
| caps['screen_resolution'] = '1024x768' |
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
| local myShader = nil | |
| local time | |
| function love.load() | |
| time = 0 | |
| myShader = love.graphics.newShader[[ | |
| extern number iGlobalTime; |
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
| <html> | |
| <head> | |
| <script src="jquery-1.11.1.js"></script> | |
| <script src="swirly.js"></script> | |
| </head> | |
| <body> | |
| <div id="target"></div> | |
| <script> |
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
| from selenium import webdriver | |
| from selenium.webdriver.common.keys import Keys | |
| driver = webdriver.Firefox() | |
| driver.get("http://www.python.org") | |
| assert "Python" in driver.title | |
| elem = driver.find_element_by_name("q") | |
| elem.send_keys("selenium") | |
| elem.send_keys(Keys.RETURN) | |
| driver.close() |
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 mk_array1() | |
| -- standard way here | |
| local mt = {} | |
| for i=0,10 do | |
| mt[i] = {} | |
| for j=0,10 do | |
| mt[i][j] = 0 | |
| end | |
| end | |
| return mt |
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
| from selenium import webdriver | |
| from selenium.webdriver.chrome.options import Options | |
| opts = Options() | |
| opts.add_argument("--test-type") | |
| CHROME_DRIVER_PATH="c:\\projects\\2014\\sep\\chromedriver\\chromedriver.exe" | |
| driver = webdriver.Chrome(executable_path=CHROME_DRIVER_PATH,chrome_options=opts) | |
| driver.get("http://yahoo.com") | |
| driver.quit() |
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
| exports.config = { | |
| // change this to your USERNAME and AUTHKEY | |
| seleniumAddress: 'http://USERNAME:[email protected]:80/wd/hub', | |
| capabilities : { | |
| name : 'protractor test', // this will show up in the UI | |
| // these are important :) |
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
| local tween = require("tween") | |
| local t={} | |
| local tw = {} | |
| function love.load() | |
| end | |
| function love.draw() | |
| for k,v in pairs(t) do |
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
| local flux= require("flux") | |
| local t={} | |
| function love.load() | |
| end | |
| function love.draw() | |
| for k,v in pairs(t) do | |
| love.graphics.setColor(255,0,0,v.op) | |
| love.graphics.print(v.val, v.x, v.y) |
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 org.openqa.selenium.By; | |
| import org.openqa.selenium.Platform; | |
| import org.openqa.selenium.WebDriver; | |
| import org.openqa.selenium.WebElement; | |
| import org.openqa.selenium.remote.DesiredCapabilities; | |
| import org.openqa.selenium.remote.RemoteWebDriver; | |
| import java.net.URL; | |
| import java.io.File; | |
| import org.openqa.selenium.OutputType; |